adding selinux control
This commit is contained in:
@@ -49,6 +49,13 @@ class cd_nagios::certbot::config (
|
||||
require => Exec['remove_nagios_conf'],
|
||||
}
|
||||
|
||||
exec { 'disable_selinux_temporarily':
|
||||
command => 'setenforce 0'
|
||||
path => ['/usr/sbin'],
|
||||
creates => '/etc/httpd/conf.d/.cert_created',
|
||||
require => Exec['remove_index_html'],
|
||||
}
|
||||
|
||||
# create cert
|
||||
|
||||
exec { 'create_cert':
|
||||
@@ -61,6 +68,13 @@ class cd_nagios::certbot::config (
|
||||
creates => '/etc/httpd/conf.d/.cert_created',
|
||||
}
|
||||
|
||||
exec { 'enable_selinux':
|
||||
command => 'setenforce 1'
|
||||
path => ['/usr/sbin'],
|
||||
creates => '/etc/httpd/conf.d/.cert_created',
|
||||
require => Exec['create_cert'],
|
||||
}
|
||||
|
||||
# renew certs
|
||||
|
||||
exec { 'renew_cert':
|
||||
|
||||
Reference in New Issue
Block a user