This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,3 @@ github_actions_runner::group: 'root'
10
10
github_actions_runner::instances : {}
11
11
github_actions_runner::github_domain : " https://github.com"
12
12
github_actions_runner::github_api : " https://api.github.com"
13
- github_actions_runner::path :
14
- - ' /usr/local/bin'
15
- - ' /usr/bin'
16
- - ' /bin'
Original file line number Diff line number Diff line change 75
75
Optional[String[1]] $http_proxy = undef ,
76
76
Optional[String[1]] $https_proxy = undef ,
77
77
Optional[String[1]] $no_proxy = undef ,
78
- Optional[Array[String]] $path,
78
+ Optional[Array[String]] $path = undef ,
79
79
) {
80
80
81
81
$root_dir = " ${github_actions_runner::base_dir_name} -${github_actions_runner::package_ensure} "
Original file line number Diff line number Diff line change 163
163
onlyif => " test -d ${github_actions_runner::root_dir} /${instance_name} "
164
164
}
165
165
166
+ $content_path = $path ? {
167
+ undef => undef ,
168
+ default => epp(' github_actions_runner/path.epp' , {
169
+ paths => $path ,
170
+ })
171
+ }
172
+
166
173
file { "${github_actions_runner::root_dir}/${name}/.path" :
167
174
ensure => $ensure ,
168
175
mode => ' 0644' ,
169
176
owner => $user ,
170
177
group => $group ,
171
- content => epp(' github_actions_runner/path.epp' , {
172
- paths => $path ,
173
- }),
178
+ content => $content_path ,
174
179
require => [Archive[" ${instance_name} -${archive_name} " ],
175
180
Exec[" ${instance_name} -run_configure_install_runner.sh" ],
176
181
],
Original file line number Diff line number Diff line change 365
365
'owner' => 'root' ,
366
366
'group' => 'root' ,
367
367
'mode' => '0755' ,
368
- 'content' => "/usr/local/bin:/usr/bin:/bin \n " ,
368
+ 'content' => undef ,
369
369
)
370
370
end
371
371
end
You can’t perform that action at this time.
0 commit comments