Compare commits

...

4 Commits

Author SHA1 Message Date
45b53f8392
salt.master: add firewalld rules
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-29 15:50:11 +01:00
e395f7f0a3
Manage common firewalld rules
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-29 15:49:48 +01:00
e62080ae5b
Manage firewalld
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-29 15:30:37 +01:00
1660fb099e
Merge lists on test minions
Reflect production setting, allow pillar to merge from different roles.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-29 15:29:30 +01:00
5 changed files with 25 additions and 1 deletions

View File

@ -15,7 +15,7 @@ mypwd = os.getcwd()
formulasfile = 'formulas.yaml'
formulasdir = '/srv/formulas'
configdata = {'file_roots': {'production': ['/srv/salt']}}
configdata = {'file_roots': {'production': ['/srv/salt']}, 'pillar_merge_lists': True}
grainsdata = {'roles': roles}
with open(grainsfile, mode='w') as grainsfh:

View File

@ -11,6 +11,14 @@ managed_header_pound: |
{%- if grains['os'] == 'SUSE' %}
zypper:
refreshdb_force: False
firewalld:
zones:
internal:
ports:
- comment: node_exporter
port: 9200
protocol: tcp
{%- endif %}
mine_functions:

View File

@ -30,3 +30,8 @@ sshd_config:
Subsystem: sftp /usr/lib/ssh/sftp-server
Banner: /etc/ssh/banner
firewalld:
zones:
internal:
services:
- ssh

View File

@ -79,3 +79,13 @@ salt:
auth.ldap.binddn: ${'secret_salt:master:auth.ldap.binddn'}
auth.ldap.bindpw: ${'secret_salt:master:auth.ldap.bindpw'}
auth.ldap.filter: ${'secret_salt:master:auth.ldap.filter'}
firewalld:
zones:
internal:
services:
- salt-master
ports:
- comment: salt-api
port: 4550
protocol: tcp

View File

@ -1,4 +1,5 @@
include:
- firewalld
- profile.seccheck
- profile.zypp
- profile.node_exporter