This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 141141 refreshonly => true
142142 }
143143
144+ $active_service = $ensure ? {
145+ ' present' => true ,
146+ ' absent' => false ,
147+ }
148+
149+ $enable_service = $ensure ? {
150+ ' present' => true ,
151+ ' absent' => false ,
152+ }
153+
144154 systemd::unit_file { "github-actions-runner.${instance_name}.service" :
145155 ensure => $ensure ,
156+ enable => $enable_service ,
157+ active => $active_service ,
146158 content => epp(' github_actions_runner/github-actions-runner.service.epp' , {
147159 instance_name => $instance_name ,
148160 root_dir => $github_actions_runner::root_dir ,
154166 }),
155167 require => [File [" ${github_actions_runner::root_dir} /${instance_name} /configure_install_runner.sh" ],
156168 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' ],
174169 }
175170
176171}
Original file line number Diff line number Diff line change 1414 },
1515 {
1616 "name" : " camptocamp/systemd" ,
17- "version_requirement" : " >= 1.1.1 < 3.0.0"
17+ "version_requirement" : " >= 2.7.0 < 3.0.0"
1818 },
1919 {
2020 "name" : " puppet-archive" ,
You can’t perform that action at this time.
0 commit comments