1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'manifests/googleconfig.pp', line 1
class wal_e::googleconfig(
$gs_prefix = undef,
$google_applcation_credentials = undef,
) {
validate_string($gs_prefix)
validate_absolute_path($google_applcation_credentials)
if $gs_prefix {
file { "${::wal_e::env_dir}/env/WALE_GS_PREFIX":
ensure => present,
owner => $wal_e::user,
group => $wal_e::group,
content => $gs_prefix,
mode => '0440'
}
}
if $google_applcation_credentials {
#it is a json file
validate_absolute_path($google_applcation_credentials)
file { "${::wal_e::env_dir}/env/GOOGLE_APPLCATION_CREDENTIALS":
ensure => present,
owner => $wal_e::user,
group => $wal_e::group,
content => $gs_prefix,
mode => '0440'
}
}
}
|