File tree Expand file tree Collapse file tree 1 file changed +20
-12
lines changed
site/profile/manifests/core Expand file tree Collapse file tree 1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change 17
17
# @param foreman_global_parameter
18
18
# `foreman_global_parameter` resources to create.
19
19
#
20
+ # @param manage_smee
21
+ # Make smee installation opt-out
22
+ #
20
23
class profile::core::foreman (
21
- Stdlib::HTTPSUrl $smee_url,
24
+ Optional[ Stdlib::HTTPSUrl] $smee_url = undef ,
22
25
Boolean $enable_puppetdb = false ,
23
26
Optional[Hash[String, Hash]] $foreman_config = undef ,
24
27
Optional[Hash[String, Hash]] $foreman_hostgroup = undef ,
25
28
Optional[Hash[String, Hash]] $foreman_global_parameter = undef ,
29
+ Boolean $manage_smee = true ,
26
30
) {
27
31
include cron
28
32
include foreman
81
85
}
82
86
}
83
87
84
- class { 'smee' :
85
- url => $smee_url ,
86
- path => ' /payload' ,
87
- port => 8088,
88
+ # smee has some startup problems due to too new (?) nodejs on EL8
89
+ # https://gist.github.com/bastelfreak/6d0d3bc324633f04c5b1fc432e871192
90
+ if $manage_smee {
91
+ assert_type(Stdlib::HTTPSUrl, $smee_url )
92
+ class { 'smee' :
93
+ url => $smee_url ,
94
+ path => ' /payload' ,
95
+ port => 8088,
96
+ }
97
+ cron { 'smee' :
98
+ command => ' /usr/bin/systemctl restart smee > /dev/null 2>&1' ,
99
+ user => ' root' ,
100
+ hour => 4,
101
+ minute => 42,
102
+ }
88
103
}
89
104
90
105
# el7 systemd is too old to support periodic graceful restarts of a service unit.
97
112
minute => 42,
98
113
}
99
114
100
- cron { 'smee' :
101
- command => ' /usr/bin/systemctl restart smee > /dev/null 2>&1' ,
102
- user => ' root' ,
103
- hour => 4,
104
- minute => 42,
105
- }
106
-
107
115
package { 'hiera-eyaml' :
108
116
provider => ' puppetserver_gem' ,
109
117
}
You can’t perform that action at this time.
0 commit comments