diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-15 13:52:24 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-15 13:52:24 +0000 |
commit | 705ff403473c363337aa22fa33c63c98a96ac323 (patch) | |
tree | 6a48e98edbfe8b3ef6f6d6b25528eb7b7a94570a /modules | |
parent | 944dec22966aa87d3f539a7c4c0cd8bdabb7517c (diff) | |
download | puppet-705ff403473c363337aa22fa33c63c98a96ac323.tar puppet-705ff403473c363337aa22fa33c63c98a96ac323.tar.gz puppet-705ff403473c363337aa22fa33c63c98a96ac323.tar.bz2 puppet-705ff403473c363337aa22fa33c63c98a96ac323.tar.xz puppet-705ff403473c363337aa22fa33c63c98a96ac323.zip |
split config in a file, to make puppet-lint happy
Diffstat (limited to 'modules')
-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 |