Skip to content

Commit

Permalink
feat(files): new option to clean residual conf files in services.d fo…
Browse files Browse the repository at this point in the history
…lder
  • Loading branch information
campof committed May 29, 2024
1 parent 8bd88d5 commit 6dd8d78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ stunnel:
log_dir: /var/log/stunnel
pid: /var/run/stunnel.pid
debug: notice
# Setting this to true will make it so that everytime you run
# the formula, it will start by making sure that there is no
# residual configuration file. However, by doing so, you will
# also remove any manual configuration you set outside of using
# salt
clean_services_dir: false
# Set certificates_auto_config to false if you do not want to use
# the automated certificates configuration from this formula.
# Also, this will unset verifyChain and verifyPeer.
Expand Down
1 change: 1 addition & 0 deletions stunnel/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
stunnel:
root_user: root
root_group: root
clean_services_dir: false
3 changes: 3 additions & 0 deletions stunnel/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ stunnel_package:
- user: {{ stunnel.root_user }}
- group: {{ stunnel.group }}
- mode: 750
{%- if stunnel.clean_services_dir %}
- clean: True
{%- endif %}
{{ stunnel.conf_dir }}/tls:
file.directory:
Expand Down

0 comments on commit 6dd8d78

Please sign in to comment.