up2date
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
{% set defaults = {
|
||||
'packages': [
|
||||
'iftop',
|
||||
'iotop',
|
||||
'nano',
|
||||
'screen',
|
||||
|
||||
28
galera/init.sls
Normal file
28
galera/init.sls
Normal file
@@ -0,0 +1,28 @@
|
||||
mariadb:
|
||||
pkgrepo.managed:
|
||||
- name: mariadb
|
||||
- humanname: MariaDB
|
||||
- baseurl: https://rpm.mariadb.org/10.6/rhel/$releasever/$basearch
|
||||
- gpgkey: https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
|
||||
- gpgcheck: 1
|
||||
|
||||
galera:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- MariaDB-server
|
||||
- MariaDB-client
|
||||
- galera-4
|
||||
- require:
|
||||
- pkgrepo: mariadb
|
||||
|
||||
mariadb_service:
|
||||
service.running:
|
||||
- name: mariadb
|
||||
- enable: true
|
||||
|
||||
/root/.my.cnf:
|
||||
file.managed:
|
||||
- replace: false
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 600
|
||||
@@ -6,7 +6,7 @@ After=network.target
|
||||
LimitNOFILE=100000
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
ExecStart=/usr/local/bin/salt-master
|
||||
ExecStart=/opt/salt/bin/salt-master
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -7,7 +7,7 @@ KillMode=process
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
LimitNOFILE=8192
|
||||
ExecStart=/usr/local/bin/salt-minion
|
||||
ExecStart=/opt/salt/bin/salt-minion
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -29,4 +29,6 @@ salt-master:
|
||||
- require:
|
||||
- file: /lib/systemd/system/salt-minion.service
|
||||
- cmd: systemd reload for salt-master
|
||||
- watch:
|
||||
- pip: salt
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ salt-minion:
|
||||
- require:
|
||||
- file: /lib/systemd/system/salt-minion.service
|
||||
- module: systemd reload for salt-minion
|
||||
- watch:
|
||||
- pip: salt
|
||||
|
||||
/etc/salt/minion:
|
||||
file.managed:
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
#salt:
|
||||
# pip.installed:
|
||||
# - user: root
|
||||
# - upgrade: true
|
||||
pip:
|
||||
pip.installed:
|
||||
- pip_bin: /opt/salt/bin/pip3
|
||||
- user: root
|
||||
- upgrade: true
|
||||
|
||||
salt:
|
||||
pip.installed:
|
||||
- name: salt == 3005.1
|
||||
- pip_bin: /opt/salt/bin/pip3
|
||||
- user: root
|
||||
- require:
|
||||
- pip: pip
|
||||
|
||||
Reference in New Issue
Block a user