6 Commits

Author SHA1 Message Date
Ryan Peck
a83f74c18e Add optional templating to register_site
Add optional templating for the register site aspect of a pillar.

User can specify keys to be included as defaults, otherwise it is
treated as a normal managed file.
2015-03-18 13:36:19 -04:00
Ryan Peck
993e836f60 Fix case where state != enabled caused error
When using the register_site state, if the `state` for the
site in the apache pillar did not equal "enabled" the error

```
Cannot extend ID 'a2ensite <name>' in 'base:apache.register_site'. It is not part of the high state.
```

If statements were there to build out the `a2ensite` or `a2dissite` ID
appropiately, but the next state for managing the config always
assumed that the `a2ensite` id would be there.

Addressed by making a Jinja variable that will be the appropiate ID,
probably could use a better name.
2015-03-10 16:52:24 -04:00
Vincent Fretin
541360a0ce use test -f instead of ls in register_site.sls too 2014-08-01 15:39:32 +02:00
Michal Galet
a3299dc1eb States for apache-reload and apache-restart using module.wait not working 2014-01-04 11:59:39 +00:00
Seth House
effba317fd Updated Debian-family formula to work on all Debian-family OSes 2013-08-13 15:03:42 -06:00
Joseph Hall
ccb8fb6306 Move sls files into correct directory structure, fixes #7 2013-07-30 10:42:02 -06:00