Select Git revision
pillar.example
-
Tobias Jungel authored
Allow to configure user/group/mode of networkd configuration files to set e.g. systemd-networkd or a specific mode for sensitive configuration.
Tobias Jungel authoredAllow to configure user/group/mode of networkd configuration files to set e.g. systemd-networkd or a specific mode for sensitive configuration.
pillar.example 4.81 KiB
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
systemd:
## tofs pattern
tofs:
# The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern
# doc for more info.
# Note: Any value not evaluated by `config.get` will be used literally.
# This can be used to set custom paths, as many levels deep as required.
files_switch:
- any/path/can/be/used/here
- id
- osfinger
- os
- os_family
# All aspects of path/file resolution are customisable using the options below.
# This is unnecessary in most cases; there are sensible defaults.
# dirs:
# files: files_alt
# default: default_alt
source_files:
networkd:
- 'alt_network'
resolved:
- 'alt_resolved.conf'
timesyncd:
- 'alt_timesyncd.conf'
## units
# The valid units type are listed in
# https://github.com/saltstack-formulas/systemd-formula/blob/master/systemd/units/unittypes.yaml
service:
syncthing-someuser:
# these two parameters are passed to systemctl to manage the unit status
# (enabled / disabled) and (running / stopped) and are not passed to the
# service file contents.
# Default to
# enabled: true
# status: stop
# to be backward compatible
enabled: true
status: stop
Unit:
Description: Syncthing P2P sync service for someuser
After: network.target
Service:
ExecStart: /usr/bin/syncthing
User: someuser
Group: someuser
Environment: STNORESTART=yes HOME=/home/someuser
Install:
WantedBy: multi-user.target
rsync:
status: start
Unit:
Description: fast remote file copy program daemon
Documentation: 'man:rsync(1) man:rsyncd.conf(5)'
ConditionPathExists:
- /etc/rsyncd.conf
- /etc/passwd
After: network.target
Service:
ExecStart: /usr/bin/rsync --daemon --no-detach
Install:
WantedBy: multi-user.target