File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 9494 mode => ' 0755' ,
9595 }
9696
97+ if $openondemand::maintenance_enabled {
98+ $maintenance_enable_ensure = ' file'
99+ } else {
100+ $maintenance_enable_ensure = ' absent'
101+ }
102+
103+ file { '/etc/ood/maintenance.enable' :
104+ ensure => $maintenance_enable_ensure ,
105+ owner => ' root' ,
106+ group => ' root' ,
107+ mode => ' 0644' ,
108+ }
109+
97110 file { '/etc/ood/config' :
98111 ensure => ' directory' ,
99112 owner => ' root' ,
Original file line number Diff line number Diff line change 6666# Source for maintenance index.html
6767# @param maintenance_content
6868# Content for maintenance index.html
69+ # @param maintenance_enabled
70+ # Enable maintenance mode in OOD
6971# @param security_csp_frame_ancestors
7072# ood_portal.yml security_csp_frame_ancestors
7173# @param security_strict_transport
286288 Array $maintenance_ip_allowlist = [],
287289 Optional[String] $maintenance_source = undef ,
288290 Optional[String] $maintenance_content = undef ,
291+ Optional[Boolean] $maintenance_enabled = undef ,
289292 Optional[Variant[String, Boolean]] $security_csp_frame_ancestors = undef ,
290293 Boolean $security_strict_transport = true ,
291294 String $lua_root = ' /opt/ood/mod_ood_proxy/lib' ,
You can’t perform that action at this time.
0 commit comments