summaryrefslogtreecommitdiffstats
path: root/modules/certbot/manifests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-19 23:15:14 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-19 23:15:14 -0400
commit8317b706d7a0a91c67c46950be07d40168705b6c (patch)
tree0dbba9df21c01deb1ed165fda1dce43dbdd8e2d5 /modules/certbot/manifests
parentd0ef063b3d2cf7b4c2eba540a0773dae3afc26ef (diff)
downloadpuppet-tozt-8317b706d7a0a91c67c46950be07d40168705b6c.tar.gz
puppet-tozt-8317b706d7a0a91c67c46950be07d40168705b6c.zip
rename modules dir
Diffstat (limited to 'modules/certbot/manifests')
-rw-r--r--modules/certbot/manifests/init.pp54
1 files changed, 0 insertions, 54 deletions
diff --git a/modules/certbot/manifests/init.pp b/modules/certbot/manifests/init.pp
deleted file mode 100644
index 27d59a6..0000000
--- a/modules/certbot/manifests/init.pp
+++ /dev/null
@@ -1,54 +0,0 @@
-class certbot($config_dir=undef) {
- if $config_dir {
- $_config_dir = $config_dir
- }
- else {
- $_config_dir = "/etc/letsencrypt"
- }
-
- include cron
- include nginx
-
- package {
- [
- 'certbot',
- 'certbot-nginx',
- ]:
- ensure => installed;
- }
-
- file {
- '/etc/cron.daily/certbot':
- content => template('certbot/certbot'),
- mode => '0755',
- require => [
- Package['certbot'],
- Class['cron'],
- ];
- "${_config_dir}/renewal-hooks":
- ensure => directory,
- require => Package['certbot'];
- "${_config_dir}/renewal-hooks/deploy":
- ensure => directory,
- require => File["${_config_dir}/renewal-hooks"];
- "${_config_dir}/renewal-hooks/deploy/reload-cert":
- source => 'puppet:///modules/certbot/reload-cert',
- require => File["${_config_dir}/renewal-hooks/deploy"];
- "/usr/local/bin/bootstrap-certbot":
- source => 'puppet:///modules/certbot/bootstrap-certbot',
- mode => '0755';
- }
-
- exec { "initial certbot run":
- provider => shell,
- command => "/usr/local/bin/bootstrap-certbot ${config_dir}",
- creates => "${_config_dir}/live",
- require => [
- Package["certbot"],
- # not Class["nginx"], because of circular dependencies with nginx::site
- Package["nginx"],
- Package["certbot-nginx"],
- File['/usr/local/bin/bootstrap-certbot'],
- ],
- }
-}