manage the nodegroups

This commit is contained in:
= 2021-01-27 15:12:21 +01:00
parent e83f4798ff
commit c18389b3c5
3 changed files with 25 additions and 6 deletions

View 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

View File

@ -1,2 +1,3 @@
include:
- salt-master.nodegroups
- salt-master.reactors

View File

@ -6,12 +6,6 @@ Create reactors master configuration:
- group: root
- mode: "0644"
restart master:
service.running:
- name: salt-master
- onchanges:
- file: Create reactors master configuration
Create reactors directory:
file.directory:
- name: /srv/reactor
@ -26,3 +20,9 @@ Create rfxcom reactor:
- user: root
- group: root
- mode: "0644"
#restart master to load reactors:
# service.running:
# - name: salt-master
# - onchanges:
# - file: Create reactors master configuration