added k3s groups and initial state

This commit is contained in:
= 2020-12-24 13:11:31 +01:00
parent b317dfc652
commit ab5a894780
6 changed files with 15 additions and 4 deletions

View File

@ -26,6 +26,7 @@ ff02::3 ipv6-allhosts
10.2.0.15 cumin
10.2.0.16 curry
10.2.0.17 chervil
10.2.0.18 basil
10.2.0.101 salt
10.2.0.102 pepper
# MetalLB

7
k3s/firewalld.sls Normal file
View File

@ -0,0 +1,7 @@
Stop firewalld if running:
service.dead:
- name: firewalld
Disable firewalld:
service.disabled:
- name: firewalld

3
k3s/init.sls Normal file
View File

@ -0,0 +1,3 @@
include:
- k3s.firewalld
- k3s.network

View File

@ -1,7 +1,7 @@
configure /etc/sysconfig/network/config:
file.managed:
- name: /etc/sysconfig/network/config
- source: salt://common/files/etc/sysconfig/network/config
- source: salt://k3s/files/etc/sysconfig/network/config
- user: root
- group: root
- mode: "0644"

View File

@ -2,7 +2,6 @@ base:
'*':
- common.groups
- common.users
- common.network
- sudo
- ssh
@ -12,5 +11,6 @@ base:
'salt.rre.nu':
- dnsmasq
'N@master or N@workers':
- k3s.dns
'k3s':
- match: nodegroup
- k3s