Created
March 20, 2017 12:55
-
-
Save q1x/2d713f277caa030238827a8d15f38bf8 to your computer and use it in GitHub Desktop.
Conditional mysql-server install via mysql-formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup the mysql client | |
include: | |
- mysql.client | |
# Only setup mysql server if a root password has been set | |
{% if salt['pillar.get']('mysql:server:root_password',false) %} | |
- mysql.server | |
- mysql.remove_test_database | |
{% else %} | |
Mysql root password is not set, skipping Mysql installation: | |
test.fail_without_changes | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not setting root pwd in pillar will trigger this response: