updated systemd state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-09-25 21:21:55 +02:00
parent 8898573dd1
commit 530f1f4009
4 changed files with 27 additions and 0 deletions

View File

@ -10,3 +10,6 @@ systemd:
networkd:
Network:
SpeedMeter: "yes"
presets:
ssh:
- enable ssh

View File

@ -22,3 +22,22 @@ systemd-service-{{ module }}:
- watch:
- file: systemd-configfile-{{ module }}
{% endfor %}
system-preset-main-dir:
file.directory:
- name: {{ systemd.confdir }}/system-preset
{% for name, preset in systemd.presets.items() %}
systemd-preset-{{ name }}:
file.managed:
- name: {{ systemd.confdir }}/system-preset/00-{{ name }}.preset
- source: salt://systemd/templates/preset.j2
- template: jinja
- user: root
- group: root
- mode: 0644
- context:
preset: {{ preset }}
- require:
- file: {{ systemd.confdir }}/system-preset
{% endfor %}

View File

@ -0,0 +1,4 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{% for rule in preset -%}
{{ rule }}
{%- endfor %}

View File

@ -1,3 +1,4 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{% for module, setting in settings.items() -%}
[{{ module }}]
{%- for key, value in setting.items() %}