Skip to content

Instantly share code, notes, and snippets.

@skylerberg
Created September 3, 2014 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skylerberg/5206d7de0993cd618998 to your computer and use it in GitHub Desktop.
Save skylerberg/5206d7de0993cd618998 to your computer and use it in GitHub Desktop.
The strange case of requiring an sls
include:
- mysql
wget:
pkg.installed:
- require:
- sls: mysql
salt-testing-3560690f-5743-49c8-9815-61f069abfeea:
----------
ID: mysql_debconf
Function: debconf.set
Name: mysql-server
Result: True
Comment:
Changes:
----------
mysql-server/root_password:
(password hidden)
mysql-server/root_password_again:
(password hidden)
mysql-server/start_on_boot:
true
----------
ID: mysqld
Function: pkg.installed
Name: mysql-server
Result: True
Comment: The following packages were installed/updated: mysql-server.
Changes:
----------
libdbd-mysql-perl:
----------
new:
4.020-1build2
old:
libdbi-perl:
----------
new:
1.616-1build2
old:
libhtml-template-perl:
----------
new:
2.10-1
old:
libmysqlclient18:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
libnet-daemon-perl:
----------
new:
0.48-1
old:
libplrpc-perl:
----------
new:
0.2020-2
old:
libterm-readkey-perl:
----------
new:
2.30-4build3
old:
mysql-client-5.5:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
mysql-client-core-5.5:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
mysql-common:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
mysql-server:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
mysql-server-5.5:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
mysql-server-core-5.5:
----------
new:
5.5.38-0ubuntu0.12.04.1
old:
----------
ID: mysql_config
Function: file.managed
Name: /etc/mysql/my.cnf
Result: True
Comment: File /etc/mysql/my.cnf updated
Changes:
----------
diff:
---
+++
@@ -1,3 +1,4 @@
+# This file managed by Salt, do not edit by hand!!
#
# The MySQL database server configuration file.
#
----------
ID: mysqld
Function: service.running
Name: mysql
Result: True
Comment: Service restarted
Changes:
----------
mysql:
True
----------
ID: mysql_python
Function: pkg.installed
Name: python-mysqldb
Result: True
Comment: The following packages were installed/updated: python-mysqldb.
Changes:
----------
python-mysqldb:
----------
new:
1.2.3-1ubuntu0.1
old:
----------
ID: wget
Function: pkg.installed
Result: False
Comment: The following requisites were not found:
require:
sls: mysql
Changes:
Summary
------------
Succeeded: 5
Failed: 1
------------
Total: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment