Merge "Adds ! defined() guards around a2mod declarations"
This commit is contained in:
commit
d776f77f91
@ -51,14 +51,20 @@ class jenkins::master(
|
||||
template => 'jenkins/jenkins.vhost.erb',
|
||||
ssl => true,
|
||||
}
|
||||
a2mod { 'rewrite':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['rewrite']) {
|
||||
a2mod { 'rewrite':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
a2mod { 'proxy':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['proxy']) {
|
||||
a2mod { 'proxy':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
a2mod { 'proxy_http':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['proxy_http']) {
|
||||
a2mod { 'proxy_http':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
if $ssl_cert_file_contents != '' {
|
||||
|
@ -231,13 +231,19 @@ class zuul (
|
||||
priority => '50',
|
||||
template => 'zuul/zuul.vhost.erb',
|
||||
}
|
||||
a2mod { 'rewrite':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['rewrite']) {
|
||||
a2mod { 'rewrite':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
a2mod { 'proxy':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['proxy']) {
|
||||
a2mod { 'proxy':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
a2mod { 'proxy_http':
|
||||
ensure => present,
|
||||
if ! defined(A2mod['proxy_http']) {
|
||||
a2mod { 'proxy_http':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user