Skip to content

Commit

Permalink
add letsencrypt support
Browse files Browse the repository at this point in the history
  • Loading branch information
jjackzhn committed Jun 5, 2024
1 parent f7871b9 commit 8ef4c23
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
--- {}

letsencrypt::renew_additional_args:
- "--standalone"
letsencrypt::renew_pre_hook_commands:
- "systemctl stop httpd"
letsencrypt::renew_post_hook_commands:
- "systemctl start httpd"
letsencrypt::certonly_additional_args:
- "--standalone"
letsencrypt::certonly_pre_hook_commands:
- "systemctl stop httpd"
letsencrypt::certonly_post_hook_commands:
- "systemctl start httpd"
12 changes: 12 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
include apache::mod::alias
include apache::mod::authn_core
include apache::mod::authz_user
include letsencrypt
include openondemand

include profile_ondemand::xdmod_export
Expand Down Expand Up @@ -61,4 +62,15 @@
$crons.each | $k, $v | {
cron { $k: * => $v }
}

letsencrypt::certonly { $facts['networking']['fqdn']:
plugin => 'webroot',
webroot_paths => [
"/var/www/ood/public/",
],
require => [
Class['apache::service'],
Class['openondemand'],
],
}
}

0 comments on commit 8ef4c23

Please sign in to comment.