added index file
This commit is contained in:
@@ -30,31 +30,6 @@ class cd_nagios::certbot::config (
|
||||
|
||||
require cd_certbot
|
||||
|
||||
# ensure there is no forward vhost file
|
||||
|
||||
exec { 'remove_forward_vhost':
|
||||
command => "rm -Rf ${ng_forward_conf}",
|
||||
creates => '/etc/httpd/conf.d/.cert_created',
|
||||
}
|
||||
|
||||
exec { 'remove_nagios_conf':
|
||||
command => "rm -Rf ${ng_nagios_conf}",
|
||||
creates => '/etc/httpd/conf.d/.cert_created',
|
||||
require => Exec['remove_forward_vhost'],
|
||||
}
|
||||
|
||||
# create temp vhost file
|
||||
|
||||
exec { 'create_temp_vhost':
|
||||
command => template('cd_nagios/certbot/create_tempfile.erb'),
|
||||
cwd => '/tmp',
|
||||
path => ['/bin','/usr/bin'],
|
||||
provider => 'shell',
|
||||
creates => '/etc/httpd/conf.d/.created',
|
||||
notify => Service['httpd'],
|
||||
require => Exec['remove_nagios_conf'],
|
||||
}
|
||||
|
||||
# create cert
|
||||
|
||||
exec { 'create_cert':
|
||||
@@ -68,18 +43,6 @@ class cd_nagios::certbot::config (
|
||||
require => Exec['create_temp_vhost'],
|
||||
}
|
||||
|
||||
# remove temp_vhost
|
||||
|
||||
exec { 'remove_temp_vhost':
|
||||
command => "rm -Rf ${ng_certbot_temp_file}",
|
||||
cwd => '/tmp',
|
||||
path => ['/bin','/usr/bin'],
|
||||
provider => 'shell',
|
||||
notify => Service['httpd'],
|
||||
require => Exec['create_cert'],
|
||||
creates => "/etc/letsencrypt/live/${ng_nagios_server}/cert.pem",
|
||||
}
|
||||
|
||||
# renew certs
|
||||
|
||||
exec { 'renew_cert':
|
||||
|
||||
Reference in New Issue
Block a user