forked from camptocamp/puppet-apache_c2c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfd.pp
35 lines (28 loc) · 938 Bytes
/
confd.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
== Definition: apache::confd
Convenient wrapper around apache::conf definition to put configuration snippets in
${apache::params::conf}/conf.d directory
Parameters:
- *ensure*: present/absent.
- *configuration*: apache configuration(s) to be applied
- *filename*: basename of the file in which the configuration(s) will be put.
Useful in the case configuration order matters: apache reads the files in conf.d/
in alphabetical order.
Requires:
- Class["apache"]
Example usage:
apache::confd { "example 1":
ensure => present,
configuration => "WSGIPythonEggs /var/cache/python-eggs",
}
*/
define apache::confd($ensure=present, $configuration, $filename="") {
include apache::params
apache::conf {$name:
ensure => $ensure,
path => "${apache::params::conf}/conf.d",
filename => $filename,
configuration => $configuration,
notify => Service["apache"],
}
}