This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 141
141
refreshonly => true
142
142
}
143
143
144
+ $active_service = $ensure ? {
145
+ ' present' => true ,
146
+ ' absent' => false ,
147
+ }
148
+
149
+ $enable_service = $ensure ? {
150
+ ' present' => true ,
151
+ ' absent' => false ,
152
+ }
153
+
144
154
systemd::unit_file { "github-actions-runner.${instance_name}.service" :
145
155
ensure => $ensure ,
156
+ enable => $enable_service ,
157
+ active => $active_service ,
146
158
content => epp(' github_actions_runner/github-actions-runner.service.epp' , {
147
159
instance_name => $instance_name ,
148
160
root_dir => $github_actions_runner::root_dir ,
154
166
}),
155
167
require => [File [" ${github_actions_runner::root_dir} /${instance_name} /configure_install_runner.sh" ],
156
168
Exec[" ${instance_name} -run_configure_install_runner.sh" ]],
157
- notify => Service[" github-actions-runner.${instance_name} .service" ],
158
- }
159
-
160
- $ensure_service = $ensure ? {
161
- ' present' => running ,
162
- ' absent' => stopped,
163
- }
164
-
165
- $enable_service = $ensure ? {
166
- ' present' => true ,
167
- ' absent' => false ,
168
- }
169
-
170
- service { "github-actions-runner.${instance_name}.service" :
171
- ensure => $ensure_service ,
172
- enable => $enable_service ,
173
- require => Class[' systemd::systemctl::daemon_reload' ],
174
169
}
175
170
176
171
}
Original file line number Diff line number Diff line change 14
14
},
15
15
{
16
16
"name" : " camptocamp/systemd" ,
17
- "version_requirement" : " >= 1.1.1 < 3.0.0"
17
+ "version_requirement" : " >= 2.7.0 < 3.0.0"
18
18
},
19
19
{
20
20
"name" : " puppet-archive" ,
You can’t perform that action at this time.
0 commit comments