You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create users dir not created by the formula#{% for id, site in salt['pillar.get']('apache:sites', {}).items() %}{% set logdir = site.get('LogDir') %}{{ id }}-logdir:file.directory:
- unless: test -d {{ logdir }}
- name: {{ logdir }}
- makedirs: True
- allow_symlink: True{% endfor %}
The text was updated successfully, but these errors were encountered:
I would like to create some extra dir for
apache:sites
, managed throughapache.vhosts.standard
state.I would like to add
log_dir
creation before apache is restarted, dir are created by an external statecreate_dir.sls
But when running
state.highstate
, apache is complaining that error reloading, becausea2ensite
is launchingapache-reload
before LogDir are created.What would be the way to add LogDir creation before vhosts?
I don't necessarily need to alter the formula, I just want to introduce my own step.
pillar
top.sls
I added a
LogDir
key for that purpose (could bedirname
calculated, but that's another story)auto/webconfig.sls
state
top.sls
webserver/create_dir.sls
The text was updated successfully, but these errors were encountered: