reversing steps to create cert
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## cd_nagios::certbot::config.pp
|
## cd_nagios::certbot::certs.pp
|
||||||
# Module name: cd_nagios
|
# Module name: cd_nagios
|
||||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||||
# # License:
|
# # License:
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# @summary Class manages all configuration files required for cd_nagios.
|
# @summary Class manages all configuration files required for cd_nagios.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class cd_nagios::certbot::config (
|
class cd_nagios::certbot::certs (
|
||||||
|
|
||||||
) inherits cd_nagios::params {
|
) inherits cd_nagios::params {
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ class cd_nagios::certbot::config (
|
|||||||
if $ng_enable_certbot == true {
|
if $ng_enable_certbot == true {
|
||||||
|
|
||||||
require cd_certbot
|
require cd_certbot
|
||||||
|
require cd_apache
|
||||||
|
|
||||||
# ensure there is no forward vhost file
|
# ensure there is no forward vhost file
|
||||||
|
|
||||||
@@ -28,14 +28,18 @@ class cd_nagios::main::config (
|
|||||||
# manage server configuration
|
# manage server configuration
|
||||||
|
|
||||||
if $::fqdn == $ng_nagios_server {
|
if $::fqdn == $ng_nagios_server {
|
||||||
include cd_nagios::server::service
|
# include cd_nagios::server::service
|
||||||
|
|
||||||
if $ng_include_fw == true {
|
# if $ng_include_fw == true {
|
||||||
include cd_nagios::firewall::iptables
|
# include cd_nagios::firewall::iptables
|
||||||
}
|
# }
|
||||||
|
|
||||||
if $ng_use_selinux_tools == true {
|
# if $ng_use_selinux_tools == true {
|
||||||
include cd_nagios::selinux::config
|
# include cd_nagios::selinux::config
|
||||||
|
# }
|
||||||
|
|
||||||
|
if $ng_enable_certbot == true {
|
||||||
|
require cd_nagios::certbot::certs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user