manage the nodegroups
This commit is contained in:
parent
e83f4798ff
commit
c18389b3c5
18
salt-master/files/etc/salt/master.d/nodegroups.conf
Normal file
18
salt-master/files/etc/salt/master.d/nodegroups.conf
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
nodegroups:
|
||||||
|
masters:
|
||||||
|
- cumin.rre.nu
|
||||||
|
- chervil.rre.nu
|
||||||
|
- curry.rre.nu
|
||||||
|
|
||||||
|
workers:
|
||||||
|
- parsley.rre.nu
|
||||||
|
- basil.rre.nu
|
||||||
|
- habanero.rre.nu
|
||||||
|
|
||||||
|
k3s:
|
||||||
|
- cumin.rre.nu
|
||||||
|
- chervil.rre.nu
|
||||||
|
- curry.rre.nu
|
||||||
|
- parsley.rre.nu
|
||||||
|
- basil.rre.nu
|
||||||
|
- habanero.rre.nu
|
@ -1,2 +1,3 @@
|
|||||||
include:
|
include:
|
||||||
|
- salt-master.nodegroups
|
||||||
- salt-master.reactors
|
- salt-master.reactors
|
||||||
|
@ -6,12 +6,6 @@ Create reactors master configuration:
|
|||||||
- group: root
|
- group: root
|
||||||
- mode: "0644"
|
- mode: "0644"
|
||||||
|
|
||||||
restart master:
|
|
||||||
service.running:
|
|
||||||
- name: salt-master
|
|
||||||
- onchanges:
|
|
||||||
- file: Create reactors master configuration
|
|
||||||
|
|
||||||
Create reactors directory:
|
Create reactors directory:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /srv/reactor
|
- name: /srv/reactor
|
||||||
@ -26,3 +20,9 @@ Create rfxcom reactor:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: "0644"
|
- mode: "0644"
|
||||||
|
|
||||||
|
#restart master to load reactors:
|
||||||
|
# service.running:
|
||||||
|
# - name: salt-master
|
||||||
|
# - onchanges:
|
||||||
|
# - file: Create reactors master configuration
|
||||||
|
Reference in New Issue
Block a user