diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-17 21:18:55 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-17 21:18:55 +0000 |
commit | c398fb1b893702b5caaa65e342d061e481e26f41 (patch) | |
tree | 9e0e422d99956e9dea3cf03173d67ac3ebcaed69 /modules | |
parent | d397e44c781725d8b7a98c58a097d2a91cc7edb1 (diff) | |
download | puppet-c398fb1b893702b5caaa65e342d061e481e26f41.tar puppet-c398fb1b893702b5caaa65e342d061e481e26f41.tar.gz puppet-c398fb1b893702b5caaa65e342d061e481e26f41.tar.bz2 puppet-c398fb1b893702b5caaa65e342d061e481e26f41.tar.xz puppet-c398fb1b893702b5caaa65e342d061e481e26f41.zip |
split config in a separate file
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mediawiki/manifests/config.pp | 9 | ||||
-rw-r--r-- | modules/mediawiki/manifests/init.pp | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/modules/mediawiki/manifests/config.pp b/modules/mediawiki/manifests/config.pp new file mode 100644 index 00000000..2ef7f766 --- /dev/null +++ b/modules/mediawiki/manifests/config.pp @@ -0,0 +1,9 @@ +# the class is just here to handle global configuration +# a smart variation of the method exposed on +# http://puppetlabs.com/blog/the-problem-with-separating-data-from-puppet-code/ +class mediawiki::config( + $pgsql_password, + $secretkey, + $ldap_password, + $vhost = "wiki.$::domain", + $root = '/srv/wiki/') {} diff --git a/modules/mediawiki/manifests/init.pp b/modules/mediawiki/manifests/init.pp index a46bf419..60d932b1 100644 --- a/modules/mediawiki/manifests/init.pp +++ b/modules/mediawiki/manifests/init.pp @@ -1,12 +1,4 @@ class mediawiki { - class config( - $pgsql_password, - $secretkey, - $ldap_password, - $vhost = "wiki.$domain", - $root = "/srv/wiki/" - ) { } - class base inherits config { include apache::mod_php |