Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322685
letsencrypt.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
letsencrypt.pp
View Options
# Base configuration for Let's Encrypt
class
profile
::
letsencrypt
{
contain
::
profile
::
letsencrypt
::
apt_config
contain
::
profile
::
letsencrypt
::
gandi_livedns_hook
class
{
'letsencrypt'
:
config
=>
{
email
=>
lookup
(
'letsencrypt::account_email'
),
server
=>
lookup
(
'letsencrypt::server'
),
},
}
$certificates
=
lookup
(
'letsencrypt::certificates'
,
Hash
)
$certificates.each
|
$key,
$settings|
{
$domains
=
$settings
[
'domains'
]
$deploy_hook
=
pick
(
$settings
[
'deploy_hook'
],
'puppet_export'
)
contain
"::profile::letsencrypt::${deploy_hook}_hook"
$deploy_hook_path
=
getvar
(
"profile::letsencrypt::${deploy_hook}_hook::hook_path"
)
$deploy_hook_extra_opts
=
getvar
(
"profile::letsencrypt::${deploy_hook}_hook::hook_extra_opts"
)
File
[
$deploy_hook_path]
->
::
letsencrypt
::
certonly
{
$key:
*
=>
deep_merge
({
domains
=>
$domains,
custom_plugin
=>
true
,
additional_args
=>
[
'--authenticator manual'
,
'--preferred-challenges dns'
,
'--manual-public-ip-logging-ok'
,
"--manual-auth-hook '${::profile::letsencrypt::gandi_livedns_hook::hook_path} auth'"
,
"--manual-cleanup-hook '${::profile::letsencrypt::gandi_livedns_hook::hook_path} cleanup'"
,
"--deploy-hook '${deploy_hook_path}'"
,
],
},
$deploy_hook_extra_opts),
}
}
Letsencrypt
::
Certonly
<|
|>
->
Profile
::
Letsencrypt
::
Certificate
<|
|>
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 3, 7:42 AM (3 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3239249
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment