changed config to use variables, added parameters

This commit is contained in:
Arne Teuke
2017-07-21 15:51:28 +01:00
parent e6b974ad08
commit 3923a4adc5
3 changed files with 12 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ class cd_nagios::certbot::config (
# create cert
exec { 'create_cert':
command => template('cd_nagios/certbot/get_cert.erb'),
command => template($ng_get_cert_erb),
cwd => '/tmp',
path => ['/bin','/usr/bin'],
provider => 'shell',
@@ -49,7 +49,7 @@ class cd_nagios::certbot::config (
path => ['/bin','/usr/bin','/opt/'],
provider => 'shell',
notify => Service['httpd'],
unless => template('cd_nagios/certbot/unless_renew_cert.erb'),
unless => template($ng_unless_renew_erb),
}
}
}