up2date
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
{% set defaults = {
|
{% set defaults = {
|
||||||
'packages': [
|
'packages': [
|
||||||
'iftop',
|
|
||||||
'iotop',
|
'iotop',
|
||||||
'nano',
|
'nano',
|
||||||
'screen',
|
'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
|
LimitNOFILE=100000
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
ExecStart=/usr/local/bin/salt-master
|
ExecStart=/opt/salt/bin/salt-master
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ KillMode=process
|
|||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
LimitNOFILE=8192
|
LimitNOFILE=8192
|
||||||
ExecStart=/usr/local/bin/salt-minion
|
ExecStart=/opt/salt/bin/salt-minion
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -29,4 +29,6 @@ salt-master:
|
|||||||
- require:
|
- require:
|
||||||
- file: /lib/systemd/system/salt-minion.service
|
- file: /lib/systemd/system/salt-minion.service
|
||||||
- cmd: systemd reload for salt-master
|
- cmd: systemd reload for salt-master
|
||||||
|
- watch:
|
||||||
|
- pip: salt
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ salt-minion:
|
|||||||
- require:
|
- require:
|
||||||
- file: /lib/systemd/system/salt-minion.service
|
- file: /lib/systemd/system/salt-minion.service
|
||||||
- module: systemd reload for salt-minion
|
- module: systemd reload for salt-minion
|
||||||
|
- watch:
|
||||||
|
- pip: salt
|
||||||
|
|
||||||
/etc/salt/minion:
|
/etc/salt/minion:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
#salt:
|
pip:
|
||||||
# pip.installed:
|
pip.installed:
|
||||||
# - user: root
|
- pip_bin: /opt/salt/bin/pip3
|
||||||
# - upgrade: true
|
- 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