working with certbot still
This commit is contained in:
@@ -30,6 +30,25 @@ class cd_nagios::certbot::config (
|
|||||||
|
|
||||||
require cd_certbot
|
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'],
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { 'remove_index_html':
|
||||||
|
command => "rm -Rf ${ng_index_html_file}",
|
||||||
|
creates => '/etc/httpd/conf.d/.cert_created',
|
||||||
|
require => Exec['remove_nagios_conf'],
|
||||||
|
}
|
||||||
|
|
||||||
# create cert
|
# create cert
|
||||||
|
|
||||||
exec { 'create_cert':
|
exec { 'create_cert':
|
||||||
|
|||||||
Reference in New Issue
Block a user