class phpbb { include apache::mod_php include mysql package { ["php-gd","php-xml","php-zlib","php-ftp","php-magickwand" ] : ensure => installed } # TODO ldap account configuration # TODO apache setup # TODO git checkout $pgsql_password = extlookup("phpbb_pgsql",'x') @@postgresql::user { 'phpbb': password => $pgsql_password, } @@postgresql::database { 'phpbb': description => "Phpbb database", user => "phpbb", require => Postgresql::User['phpbb'] } }