17 |
$pgsql_db = 'youri_check' |
$pgsql_db = 'youri_check' |
18 |
$pgsql_user = 'youri' |
$pgsql_user = 'youri' |
19 |
$pgsql_password = extlookup('youri_pgsql','x') |
$pgsql_password = extlookup('youri_pgsql','x') |
20 |
postgresql::remote_user { $pgsql_user: |
|
|
password => $pgsql_password, |
|
|
} |
|
|
postgresql::remote_database { $pgsql_db: |
|
|
description => "Youri Check results", |
|
|
user => $pgsql_user, |
|
|
} |
|
|
|
|
21 |
file { "$config": |
file { "$config": |
22 |
ensure => present, |
ensure => present, |
23 |
owner => $user, |
owner => $user, |
47 |
mode => 755 |
mode => 755 |
48 |
} |
} |
49 |
|
|
50 |
|
postgresql::remote_user { $pgsql_user: |
51 |
|
password => $pgsql_password, |
52 |
|
} |
53 |
|
|
54 |
|
postgresql::remote_database { $pgsql_db: |
55 |
|
description => "Youri Check results", |
56 |
|
user => $pgsql_user, |
57 |
|
} |
58 |
|
|
59 |
package { ['youri-check', 'perl-DBD-Pg'] : |
package { ['youri-check', 'perl-DBD-Pg'] : |
60 |
ensure => installed |
ensure => installed |
61 |
} |
} |