Skip to content

Commit

Permalink
Fixed formatting in maintenance.enable file resource
Browse files Browse the repository at this point in the history
  • Loading branch information
abujeda committed Jan 9, 2025
1 parent 3cf9adf commit ef587e6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,17 @@
}

if $openondemand::maintenance_enabled != undef {
file { "/etc/ood/maintenance.enable":
ensure => $openondemand::maintenance_enabled ? { true => 'file', false => 'absent' },
owner => 'root',
group => 'root',
mode => '0644',
if $openondemand::maintenance_enabled {
$maintenance_enable_ensure = 'file'
} else {
$maintenance_enable_ensure = 'absent'
}

file { '/etc/ood/maintenance.enable':
ensure => $openondemand::maintenance_enabled,
owner => 'root',
group => 'root',
mode => '0644',
}
}

Expand Down

0 comments on commit ef587e6

Please sign in to comment.