diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:24 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:24 +0000 |
commit | b8481f2561b8de21892e3f4b1914193d54ac4c93 (patch) | |
tree | 243999b9f406e1a89fd7b7e76b66d18fb9e93e1c /modules/phpbb/manifests | |
parent | 116df2e39ac697b55b11021985555b8f889d5110 (diff) | |
download | puppet-b8481f2561b8de21892e3f4b1914193d54ac4c93.tar puppet-b8481f2561b8de21892e3f4b1914193d54ac4c93.tar.gz puppet-b8481f2561b8de21892e3f4b1914193d54ac4c93.tar.bz2 puppet-b8481f2561b8de21892e3f4b1914193d54ac4c93.tar.xz puppet-b8481f2561b8de21892e3f4b1914193d54ac4c93.zip |
add a define to manage part of the phpbb config from puppet by directly changing the configuration in the db
Diffstat (limited to 'modules/phpbb/manifests')
-rw-r--r-- | modules/phpbb/manifests/init.pp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index 533a4304..1d4bfbe5 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -11,7 +11,27 @@ class phpbb { # TODO ldap account configuration - # TODO apache setup + file { "/usr/local/bin/phpbb_apply_config.pl": + ensure => present, + owner => root, + group => root, + mode => 755, + source => 'puppet:///modules/phpbb/phpbb_apply_config.pl', + } + + # TODO ldap account configuration + # ldap_user + # ldap_server + # ldap_password ldap_base_dn cookie_domain + # board_contact + # + define phpbb_config($value) { + exec { "/usr/local/bin/phpbb_apply_config.pl $name": + user => root, + environment => "PGDATABASE=$database PGUSER=$user PGPASSWORD=$password PGHOST=pgsql.$domain VALUE=$value", + require => File["/usr/local/bin/phpbb_apply_config.pl"], + } + } # TODO git checkout |