mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
debian: debconf key in pillar
Allow debconf keys to be changed via pillars. Useful when using non-standard packages that use different debconf keys to set their passwords.
This commit is contained in:
parent
ec3ae803bf
commit
afae4c54b7
2 changed files with 6 additions and 2 deletions
|
@ -9,6 +9,8 @@ Ubuntu:
|
|||
service: mysql
|
||||
python: python-mysqldb
|
||||
debconf_utils: debconf-utils
|
||||
debconf_root_password: mysql-server/root_password
|
||||
debconf_root_password_again: mysql-server/root_password_again
|
||||
dev: libmysqlclient-dev
|
||||
config:
|
||||
file: /etc/mysql/my.cnf
|
||||
|
@ -61,6 +63,8 @@ Debian:
|
|||
client: {{ mysql_engine }}-client
|
||||
python: python-mysqldb
|
||||
debconf_utils: debconf-utils
|
||||
debconf_root_password: mysql-server/root_password
|
||||
debconf_root_password_again: mysql-server/root_password_again
|
||||
dev: lib{{ mysql_engine }}client-dev
|
||||
config:
|
||||
file: /etc/mysql/my.cnf
|
||||
|
|
|
@ -35,8 +35,8 @@ mysql_password_debconf:
|
|||
debconf.set:
|
||||
- name: mysql-server
|
||||
- data:
|
||||
'mysql-server/root_password': {'type': 'password', 'value': '{{ mysql_root_password }}'}
|
||||
'mysql-server/root_password_again': {'type': 'password', 'value': '{{ mysql_root_password }}'}
|
||||
{{mysql.debconf_root_password}}: {'type': 'password', 'value': '{{ mysql_root_password }}'}
|
||||
{{mysql.debconf_root_password_again}}: {'type': 'password', 'value': '{{ mysql_root_password }}'}
|
||||
- require_in:
|
||||
- pkg: {{ mysql.server }}
|
||||
- require:
|
||||
|
|
Loading…
Add table
Reference in a new issue