Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install a configured mysql community edition server directly from mysql repos on Debian Stable
mysql-apt-config-debconf:
debconf.set:
- name: mysql-apt-config
- data:
'mysql-apt-config/select-server': {'type': 'string', 'value': 'mysql-5.6'}
'mysql-apt-config/select-utilities': {'type': 'string', 'value': 'utilities-1.5'}
'mysql-apt-config/select-connector-python': {'type': 'string', 'value': 'connector-python-2.0'}
mysql-apt-config:
pkg.installed:
- require:
- debconf: mysql-apt-config-debconf
- sources:
- mysql-apt-config: http://dev.mysql.com/get/mysql-apt-config_0.3.2-1debian7_all.deb
mysql-community-server-debconf:
debconf.set:
- name: mysql-community-server
- data:
'mysql-community-server/root-pass': {'type': 'password', 'value': 'unsecure'}
'mysql-community-server/re-root-pass': {'type': 'password', 'value': 'unsecure'}
'mysql-community-server/remove-test-db': {'type': 'boolean', 'value': 'true'}
mysql-community-server:
pkg.latest:
- require:
- pkg: mysql-apt-config
- debconf: mysql-community-server-debconf
- refresh: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment