diff options
-rw-r--r-- | modules/apache/manifests/config.pp | 7 | ||||
-rw-r--r-- | modules/apache/manifests/init.pp | 9 |
2 files changed, 7 insertions, 9 deletions
diff --git a/modules/apache/manifests/config.pp b/modules/apache/manifests/config.pp new file mode 100644 index 00000000..90f0cba6 --- /dev/null +++ b/modules/apache/manifests/config.pp @@ -0,0 +1,7 @@ +define apache::config($content) { + file { $name: + content => $content, + require => Package['apache-conf'], + notify => Exec['service httpd configtest'], + } +} diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index b41c03a5..8485d97e 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -1,13 +1,4 @@ class apache { - - define config($content) { - file { $name: - content => $content, - require => Package["apache-conf"], - notify => Exec['service httpd configtest'], - } - } - class base { # number of time the log file are rotated before being removed |