various updates in states

This commit is contained in:
Paul 2021-05-15 12:31:59 +02:00
parent 504be5dde6
commit e71dbe3fff
7 changed files with 19 additions and 14 deletions

View File

@ -1,4 +1,4 @@
--- ---
apparmor: apparmor:
enabled: true enabled: true
config: config:

View File

@ -6,5 +6,5 @@ cron:
command: /bin/bash command: /bin/bash
MAILTO: MAILTO:
name: MAILTO name: MAILTO
command: {{ salt['pillar.get']('syscontact') }} command: me@ac.me
tasks: tasks:

View File

@ -1,4 +1,4 @@
--- ---
nftables: nftables:
enabled: true enabled: true
networks: {{ salt['pillar.get']('networks') }} networks:

View File

@ -1,4 +1,8 @@
--- ---
repo-require:
cmd.run:
- name: apt install -y python3-apt
{%- for repo in pillar.get('repos') %} {%- for repo in pillar.get('repos') %}
{%- if repo['enabled'] %} {%- if repo['enabled'] %}

View File

@ -11,18 +11,18 @@ sensu:
enabled: false enabled: false
config: config:
backend-url: [] backend-url: []
name: {{ salt['grains.get']('fqdn') }} name: hostname
subscriptions: subscriptions:
- {{ salt['grains.get']('type') }} - common
- {{ salt['grains.get']('country') }} - france
- {{ salt['grains.get']('location') }} - paris
- {% filter lower %}{{ salt['grains.get']('os') }}{% endfilter %} - linux
user: "admin" user: "admin"
password: "P@ssw0rd!" password: "P@ssw0rd!"
labels: labels:
arch: {% filter lower %}{{ salt['grains.get']('osarch') }}{% endfilter %} arch: arm64
check_load_warning: "3,2,1" check_load_warning: "3,2,1"
check_load_critical: "5,3,2" check_load_critical: "5,3,2"
goarch: {% filter lower %}{{ salt['grains.get']('osarch') }}{% endfilter %} goarch: arm64
goos: {% filter lower %}{{ salt['grains.get']('kernel') }}{% endfilter %} goos: linux
kernel: {% filter lower %}{{ salt['grains.get']('kernel') }}{% endfilter %} kernel: Linux

View File

@ -1,5 +1,6 @@
--- ---
include: include:
- pkg
- .install - .install
- .config - .config
- .plugins - .plugins

View File

@ -21,7 +21,7 @@ zabbix:
#- zabbix-get #- zabbix-get
#- zabbix-sender #- zabbix-sender
config: config:
Hostname: {{ salt["grains.get"]("fqdn") }} Hostname: localhost
Include: "/etc/zabbix/zabbix_agentd.conf.d/*.conf" Include: "/etc/zabbix/zabbix_agentd.conf.d/*.conf"
LogFile: /var/log/zabbix/zabbix_agentd.log LogFile: /var/log/zabbix/zabbix_agentd.log
LogFileSize: 0 LogFileSize: 0