Skip to content

Commit e415623

Browse files
authored
Do not manage maintenance.enable if undef (#174)
1 parent 48390b5 commit e415623

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

manifests/config.pp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@
100100
$maintenance_enable_ensure = 'absent'
101101
}
102102

103-
file { '/etc/ood/maintenance.enable':
104-
ensure => $maintenance_enable_ensure,
105-
owner => 'root',
106-
group => 'root',
107-
mode => '0644',
103+
if $openondemand::maintenance_enabled =~ NotUndef {
104+
file { '/etc/ood/maintenance.enable':
105+
ensure => $maintenance_enable_ensure,
106+
owner => 'root',
107+
group => 'root',
108+
mode => '0644',
109+
}
108110
}
109111

110112
file { '/etc/ood/config':

0 commit comments

Comments
 (0)