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

Commit bc72e6f

Browse files
authored
Merge pull request #42 from LDaneliukas/autoupdate
2 parents 397b12f + 7bc73dc commit bc72e6f

File tree

6 files changed

+90
-67
lines changed

6 files changed

+90
-67
lines changed

REFERENCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ You can find latest versions [here](https://github.com/actions/runner/releases)
8383
**Example**:
8484

8585
```
86-
2.272.0
86+
2.292.0
8787
```
8888

8989
##### `repository_url`

data/common.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
github_actions_runner::ensure: present
33
github_actions_runner::base_dir_name: '/some_dir/actions-runner'
44
github_actions_runner::package_name: 'actions-runner-linux-x64'
5-
github_actions_runner::package_ensure: '2.272.0'
5+
github_actions_runner::package_ensure: '2.292.0'
66
github_actions_runner::repository_url: 'https://github.com/actions/runner/releases/download'
77
github_actions_runner::personal_access_token: 'PAT'
88
github_actions_runner::user: 'root'

manifests/init.pp

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
# * no_proxy
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
#
58+
# * disable_update
59+
# Optional[Boolean], toggle for disabling automatic runner updates.
60+
#
5861
# * path
5962
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner.
6063
# If not defined, file ".path" will be kept as created by the runner scripts. Default value: undef
@@ -81,6 +84,7 @@
8184
Optional[String[1]] $http_proxy = undef,
8285
Optional[String[1]] $https_proxy = undef,
8386
Optional[String[1]] $no_proxy = undef,
87+
Optional[Boolean] $disable_update = false,
8488
Optional[Array[String]] $path = undef,
8589
Optional[Hash[String, String]] $env = undef,
8690
) {

manifests/instance.pp

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
# * no_proxy
3636
# 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
3737
#
38+
# * disable_update
39+
# Optional[Boolean], toggle for disabling automatic runner updates.
40+
#
3841
# * repo_name
3942
# Optional[String], actions runner repository name.
4043
#
@@ -62,6 +65,7 @@
6265
Optional[String[1]] $http_proxy = $github_actions_runner::http_proxy,
6366
Optional[String[1]] $https_proxy = $github_actions_runner::https_proxy,
6467
Optional[String[1]] $no_proxy = $github_actions_runner::no_proxy,
68+
Optional[Boolean] $disable_update = $github_actions_runner::disable_update,
6569
Optional[Array[String[1]]] $labels = undef,
6670
Optional[String[1]] $enterprise_name = $github_actions_runner::enterprise_name,
6771
Optional[String[1]] $org_name = $github_actions_runner::org_name,
@@ -135,6 +139,7 @@
135139
url => $url,
136140
hostname => $hostname,
137141
assured_labels => $assured_labels,
142+
disable_update => $disable_update,
138143
}),
139144
notify => Exec["${instance_name}-run_configure_install_runner.sh"],
140145
require => Archive["${instance_name}-${archive_name}"],

0 commit comments

Comments
 (0)