aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/config.pp
blob: 553b0f74c57500f4c3875de418a6d248361b6894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define phpbb::config($key, $value, $database) {
    exec { "phpbb_apply ${name}":
        command     => "/usr/local/bin/phpbb_apply_config.pl ${key}",
        user        => 'root',
        environment => ["PGDATABASE=${database}",
                        "PGUSER=${phpbb::base::user}",
                        "PGPASSWORD=${phpbb::base::pgsql_password}",
                        "PGHOST=pgsql.${::domain}",
                        "VALUE=${value}"],
        require     => File['/usr/local/bin/phpbb_apply_config.pl'],
    }
}