From b8481f2561b8de21892e3f4b1914193d54ac4c93 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 15 Feb 2011 00:48:24 +0000 Subject: add a define to manage part of the phpbb config from puppet by directly changing the configuration in the db --- modules/phpbb/manifests/init.pp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'modules/phpbb/manifests/init.pp') 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 -- cgit v1.2.1