-
Notifications
You must be signed in to change notification settings - Fork 136
/
params.pp
25 lines (24 loc) · 876 Bytes
/
params.pp
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
class letsencrypt::params {
$agree_tos = true
$unsafe_registration = false
$manage_config = true
$manage_install = true
$manage_dependencies = true
$configure_epel = false
$config_file = '/etc/letsencrypt/cli.ini'
$path = '/opt/letsencrypt'
$repo = 'git://github.com/letsencrypt/letsencrypt.git'
$version = 'v0.1.0'
$config = {
'server' => 'https://acme-v01.api.letsencrypt.org/directory',
}
if $::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0 {
$install_method = 'package'
} elsif $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '16.04') >= 0 {
$install_method = 'package'
} elsif $::osfamily == 'RedHat' {
$install_method = 'package'
} else {
$install_method = 'vcs'
}
}