mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Merge pull request #262 from noelmcloughlin/pycent7
fix(centos7): add correct pymysql package on cent7/saltpy3
This commit is contained in:
commit
8ebc96ce1e
4 changed files with 11 additions and 7 deletions
|
@ -22,6 +22,7 @@ ignore: |
|
||||||
.kitchen/
|
.kitchen/
|
||||||
kitchen.vagrant.yml
|
kitchen.vagrant.yml
|
||||||
mysql/supported_sections.yaml
|
mysql/supported_sections.yaml
|
||||||
|
mysql/osfingermap.yaml
|
||||||
|
|
||||||
yaml-files:
|
yaml-files:
|
||||||
# Default settings
|
# Default settings
|
||||||
|
|
|
@ -71,7 +71,11 @@ CentOS-6:
|
||||||
pythonpkg: MySQL-python
|
pythonpkg: MySQL-python
|
||||||
CentOS Linux-7:
|
CentOS Linux-7:
|
||||||
# https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
|
# https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
|
||||||
|
{%- if 'pythonversion' in grains and grains.pythonversion[0]|int == 3 %}
|
||||||
|
pythonpkg: python36-PyMySQL # python36-mysql works too
|
||||||
|
{%- else %}
|
||||||
pythonpkg: MySQL-python
|
pythonpkg: MySQL-python
|
||||||
|
{%- endif %}
|
||||||
serverpkg: mariadb-server
|
serverpkg: mariadb-server
|
||||||
service: mariadb
|
service: mariadb
|
||||||
clientpkg: mariadb
|
clientpkg: mariadb
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Override by OS
|
# Override by OS.
|
||||||
package_name = 'mariadb-server'
|
package_name = 'mariadb-server'
|
||||||
if (os[:name] == 'suse') || (os[:name] == 'opensuse')
|
if (os[:name] == 'suse') || (os[:name] == 'opensuse')
|
||||||
package_name = 'mariadb'
|
package_name = 'mariadb'
|
||||||
elsif (os[:name] == 'debian') && os[:release].start_with?('8')
|
elsif os[:release].start_with?('8') && %w[debian centos].include?(os[:name])
|
||||||
package_name = 'mysql-server'
|
package_name = 'mysql-server'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,10 @@ mysql:
|
||||||
mysqld:
|
mysqld:
|
||||||
# you can use either underscore or hyphen in param names
|
# you can use either underscore or hyphen in param names
|
||||||
bind-address: 0.0.0.0
|
bind-address: 0.0.0.0
|
||||||
log_bin: /var/log/mysql/mysql-bin.log
|
# log_bin: /var/log/mysql/mysql-bin.log
|
||||||
datadir: /var/lib/mysql
|
datadir: /var/lib/mysql
|
||||||
port: 3307
|
# port: 3307
|
||||||
|
# plugin-load-add: auth_socket.so
|
||||||
binlog_do_db: foo
|
binlog_do_db: foo
|
||||||
auto_increment_increment: 5
|
auto_increment_increment: 5
|
||||||
binlog-ignore-db:
|
binlog-ignore-db:
|
||||||
|
@ -112,8 +113,6 @@ mysql:
|
||||||
- database: foo
|
- database: foo
|
||||||
grants: ['select', 'insert', 'update']
|
grants: ['select', 'insert', 'update']
|
||||||
escape: true
|
escape: true
|
||||||
- database: bar
|
|
||||||
grants: ['all privileges']
|
|
||||||
# bob:
|
# bob:
|
||||||
# password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
|
# password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
|
||||||
# host: '%' # Any host
|
# host: '%' # Any host
|
||||||
|
@ -136,7 +135,7 @@ mysql:
|
||||||
# grants: ['select', 'insert', 'update', 'delete']
|
# grants: ['select', 'insert', 'update', 'delete']
|
||||||
nopassuser:
|
nopassuser:
|
||||||
password: ~
|
password: ~
|
||||||
host: localhost
|
# host: localhost # requires unix_socket plugin
|
||||||
databases: []
|
databases: []
|
||||||
application:
|
application:
|
||||||
password: 'somepass'
|
password: 'somepass'
|
||||||
|
|
Loading…
Add table
Reference in a new issue