Skip to content

Commit

Permalink
fix(dhparams): make sure the config dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jan 2, 2024
1 parent 148f0ae commit 9f908c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openvpn/dhparams.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
{#- Some distributions use /etc/openvpn/{client,server} as their working directory #}
{%- set config_dir = map.get("server", {}).get("conf_dir", map.conf_dir) %}
{%- for dh in map.dh_files %}
{%- if loop.first %}
openvpn_dh_config_dir:
file.directory:
- name: {{ config_dir }}
- makedirs: True
{%- endif %}
{%- set dh_file = config_dir ~ "/dh" ~ dh ~ ".pem" %}
openvpn_create_dh_{{ dh }}:
cmd.run:
Expand Down

0 comments on commit 9f908c2

Please sign in to comment.