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:
enabled: true
config:
config:

View File

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

View File

@ -1,4 +1,4 @@
---
nftables:
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') %}
{%- if repo['enabled'] %}

View File

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

View File

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

View File

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