Skip to content

Commit a03cf71

Browse files
authored
Merge pull request #287 from opus-codium/ensure-safe-registration
Fix registration after an unsafe one
2 parents c15411e + 42cb163 commit a03cf71

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

manifests/config.pp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
$_config = $config
3030
}
3131

32+
ini_setting { "${config_file} register-unsafely-without-email true":
33+
ensure => bool2str($unsafe_registration, 'present', 'absent'),
34+
path => $config_file,
35+
section => '',
36+
setting => 'register-unsafely-without-email',
37+
value => true,
38+
}
39+
3240
unless 'email' in $_config {
3341
if $unsafe_registration {
3442
warning('No email address specified for the letsencrypt class! Registering unsafely!')
35-
ini_setting { "${config_file} register-unsafely-without-email true":
36-
ensure => present,
37-
path => $config_file,
38-
section => '',
39-
setting => 'register-unsafely-without-email',
40-
value => true,
41-
require => File[$config_dir],
42-
}
4343
} else {
4444
fail("Please specify an email address to register with Let's Encrypt using the \$email parameter on the letsencrypt class")
4545
}

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"name": "puppetlabs/inifile",
83-
"version_requirement": ">= 2.0.0 < 6.0.0"
83+
"version_requirement": ">= 2.5.0 < 6.0.0"
8484
},
8585
{
8686
"name": "puppet/epel",

0 commit comments

Comments
 (0)