Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit cff7fc5

Browse files
committed
allow to just keep the same values created by the scripts
1 parent 2ec1195 commit cff7fc5

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

data/common.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ github_actions_runner::group: 'root'
1010
github_actions_runner::instances: {}
1111
github_actions_runner::github_domain: "https://github.com"
1212
github_actions_runner::github_api: "https://api.github.com"
13-
github_actions_runner::path:
14-
- '/usr/local/bin'
15-
- '/usr/bin'
16-
- '/bin'

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
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}"

manifests/instance.pp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,19 @@
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
],

spec/classes/github_actions_runner_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
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

0 commit comments

Comments
 (0)