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'
1010github_actions_runner::instances : {}
1111github_actions_runner::github_domain : " https://github.com"
1212github_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 7575 Optional[String[1]] $http_proxy = undef ,
7676 Optional[String[1]] $https_proxy = undef ,
7777 Optional[String[1]] $no_proxy = undef ,
78- Optional[Array[String]] $path,
78+ Optional[Array[String]] $path = undef ,
7979) {
8080
8181 $root_dir = " ${github_actions_runner::base_dir_name} -${github_actions_runner::package_ensure} "
Original file line number Diff line number Diff line change 163163 onlyif => " test -d ${github_actions_runner::root_dir} /${instance_name} "
164164 }
165165
166+ $content_path = $path ? {
167+ undef => undef ,
168+ default => epp(' github_actions_runner/path.epp' , {
169+ paths => $path ,
170+ })
171+ }
172+
166173 file { "${github_actions_runner::root_dir}/${name}/.path" :
167174 ensure => $ensure ,
168175 mode => ' 0644' ,
169176 owner => $user ,
170177 group => $group ,
171- content => epp(' github_actions_runner/path.epp' , {
172- paths => $path ,
173- }),
178+ content => $content_path ,
174179 require => [Archive[" ${instance_name} -${archive_name} " ],
175180 Exec[" ${instance_name} -run_configure_install_runner.sh" ],
176181 ],
Original file line number Diff line number Diff line change 365365 'owner' => 'root' ,
366366 'group' => 'root' ,
367367 'mode' => '0755' ,
368- 'content' => "/usr/local/bin:/usr/bin:/bin \n " ,
368+ 'content' => undef ,
369369 )
370370 end
371371 end
You can’t perform that action at this time.
0 commit comments