Selaa lähdekoodia

Add initial pillar for single node deployment

Change-Id: I70f258509b38b2a616be34913c7345d93c2b50ad
master
Petr Michalec 6 vuotta sitten
vanhempi
commit
bafff1b94d
No account linked to committer's email address
2 muutettua tiedostoa jossa 94 lisäystä ja 0 poistoa
  1. +47
    -0
      metadata/service/master/single.yml
  2. +47
    -0
      tests/pillar/single.sls

+ 47
- 0
metadata/service/master/single.yml Näytä tiedosto

@@ -0,0 +1,47 @@
applications:
- galera
classes:
- service.galera.support
parameters:
_param:
galera_server_cluster_name: galeracluster
galera_server_bind_address: ${_param:single_address}
galera_server_bind_port: 3306
galera_server_admin_user: root
galera_max_connections: 20000
galera_innodb_buffer_pool_size: 3138M
galera_innodb_read_io_threads: 8
galera_innodb_write_io_threads: 8
galera_wsrep_slave_threads: 8
galera_xtrabackup_parallel: 4
galera_error_log_enabled: false
galera:
master:
enabled: true
name: ${_param:galera_server_cluster_name}
bind:
address: ${_param:galera_server_bind_address}
port: ${_param:galera_server_bind_port}
maintenance_password: ${_param:galera_server_maintenance_password}
admin:
user: ${_param:galera_server_admin_user}
password: ${_param:galera_server_admin_password}
members:
- host: ${_param:single_address}
port: 4567
max_connections: ${_param:galera_max_connections}
innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size}
innodb_read_io_threads: ${_param:galera_innodb_read_io_threads}
innodb_write_io_threads: ${_param:galera_innodb_write_io_threads}
wsrep_slave_threads: ${_param:galera_wsrep_slave_threads}
xtrabackup_parallel: ${_param:galera_xtrabackup_parallel}
error_log_enabled: ${_param:galera_error_log_enabled}
mysql:
server:
users:
- name: haproxy
host: localhost
- name: haproxy
host: '%'
- name: haproxy
host: ${_param:single_address}

+ 47
- 0
tests/pillar/single.sls Näytä tiedosto

@@ -0,0 +1,47 @@
galera:
master:
enabled: true
name: galeracluster
bind:
address: 127.0.0.1
port: 3306
maintenance_password: password
admin:
user: root
password: password
members:
- host: 127.0.0.1
port: 4567
clustercheck:
enabled: False
mysql:
server:
enabled: true
bind:
address: 0.0.0.0
port: 3306
protocol: tcp
database:
mydb:
encoding: 'utf8'
users:
- name: haproxy
host: localhost
- name: haproxy
host: '%'
- name: haproxy
host: 127.0.0.1
- name: clustercheck
#host: localhost
password: password
database: '*.*'
grants: PROCESS
- name: inspector
host: 127.0.0.1
password: password
databases:
- database: mydb
table: mytable
grant_option: True
grants:
- all privileges

Loading…
Peruuta
Tallenna