aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/config.pp
blob: 7d84ff540cf4a8c38e917ca925c78811797f2b16 (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'],
    }
}