Add file_roots config

This commit is contained in:
LinuxSquare 2023-05-02 21:32:30 +02:00
parent f2d0b6597d
commit 900662239a
3 changed files with 6 additions and 7 deletions

View file

@ -1,5 +0,0 @@
# Set the file client. The client defaults to looking on the master server for
# files, but can be directed to look at the local file directory setting
# defined below by setting it to "local". Setting a local file_client runs the
# minion in masterless mode.
file_client: local

View file

@ -0,0 +1,4 @@
file_client: local
file_roots:
base:
- /srv/salt/salt-statetree

View file

@ -3,8 +3,8 @@ include:
services_salt_file_client_local:
file.managed:
- name: /etc/salt/minion.d/salt_file_client_local
- source: salt://{{ tpldir }}/files/salt_file_client_local
- name: /etc/salt/minion.d/noveria.conf
- source: salt://{{ tpldir }}/files/noveria.conf
- user: root
- group: root
- mode: 640