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

Commit 7bf249c

Browse files
committed
update doc
1 parent dd1f35b commit 7bf249c

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

README.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This module will setup all of the files and configuration needed for GitHub Acti
1818

1919
### hiera configuration examples
2020

21-
This module supports configuration through hiera.
21+
This module supports configuration through hiera.
2222

2323
#### Creating an organization level Actions runner
2424

@@ -53,7 +53,7 @@ github_actions_runner::instances:
5353
```
5454

5555
Note, your `personal_access_token` has to contain the `repo` permission.
56-
56+
5757
#### Instance level overwrites
5858
```yaml
5959
github_actions_runner::instances:
@@ -88,7 +88,7 @@ github_actions_runner::github_domain: "https://git.example.com"
8888
github_actions_runner::github_api: "https://git.example.com/api/v3"
8989
```
9090

91-
In addition to the runner configuration examples above, you can also configure runners
91+
In addition to the runner configuration examples above, you can also configure runners
9292
on the enterprise level by setting a value for `enterprise_name`, for example:
9393
```yaml
9494
github_actions_runner::ensure: present
@@ -105,6 +105,35 @@ github_actions_runner::instances:
105105

106106
Note, your `personal_access_token` has to contain the `admin:enterprise` permission.
107107

108+
### Update PATH used by Github Runners
109+
110+
By default, puppet will not modify the values that the runner scripts create when
111+
the runner is set.
112+
113+
In case you need to use another value of paths in the environment variable PATH,
114+
you can define through hiera. For example:
115+
116+
- For all runners defined:
117+
```yaml
118+
github_actions_runner::path:
119+
- /usr/local/bin
120+
- /usr/bin
121+
- /bin
122+
- /my/own/path
123+
```
124+
- For just a specific runner:
125+
```yaml
126+
github_actions_runner::instances:
127+
example_org_instance:
128+
path:
129+
- /usr/local/bin
130+
- /usr/bin
131+
- /bin
132+
- /my/own/path
133+
labels:
134+
- self-hosted-custom
135+
```
136+
108137
## Limitations
109138

110139
Tested on Debian 9 (stretch), Debian 10 (buster) and CentOS7 hosts.

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# Optional[String], Comma separated list of hosts that should not use a proxy. More information at https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners
5757
#
5858
# * path
59-
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner.
59+
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner. If not defined, this file will be kept as created by the runner scripts. Default value: undef
6060
#
6161
class github_actions_runner (
6262
Enum['present', 'absent'] $ensure,

manifests/instance.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
# Optional[Array[String]], A list of costum lables to add to a runner.
4343
#
4444
# * path
45-
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner.
45+
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner. If not defined, this file will be kept as created
46+
# by the runner scripts. (Default: Value set by github_actions_runner Class)
4647
#
4748
define github_actions_runner::instance (
4849
Enum['present', 'absent'] $ensure = 'present',

0 commit comments

Comments
 (0)