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

Commit

Permalink
Merge pull request #42 from LDaneliukas/autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarsj authored Jun 1, 2022
2 parents 397b12f + 7bc73dc commit bc72e6f
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 67 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ You can find latest versions [here](https://github.com/actions/runner/releases)
**Example**:

```
2.272.0
2.292.0
```

##### `repository_url`
Expand Down
2 changes: 1 addition & 1 deletion data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
github_actions_runner::ensure: present
github_actions_runner::base_dir_name: '/some_dir/actions-runner'
github_actions_runner::package_name: 'actions-runner-linux-x64'
github_actions_runner::package_ensure: '2.272.0'
github_actions_runner::package_ensure: '2.292.0'
github_actions_runner::repository_url: 'https://github.com/actions/runner/releases/download'
github_actions_runner::personal_access_token: 'PAT'
github_actions_runner::user: 'root'
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
# * no_proxy
# 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
#
# * disable_update
# Optional[Boolean], toggle for disabling automatic runner updates.
#
# * path
# Optional[Array[String]], List of paths to be used as PATH env in the instance runner.
# If not defined, file ".path" will be kept as created by the runner scripts. Default value: undef
Expand All @@ -81,6 +84,7 @@
Optional[String[1]] $http_proxy = undef,
Optional[String[1]] $https_proxy = undef,
Optional[String[1]] $no_proxy = undef,
Optional[Boolean] $disable_update = false,
Optional[Array[String]] $path = undef,
Optional[Hash[String, String]] $env = undef,
) {
Expand Down
5 changes: 5 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
# * no_proxy
# 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
#
# * disable_update
# Optional[Boolean], toggle for disabling automatic runner updates.
#
# * repo_name
# Optional[String], actions runner repository name.
#
Expand Down Expand Up @@ -62,6 +65,7 @@
Optional[String[1]] $http_proxy = $github_actions_runner::http_proxy,
Optional[String[1]] $https_proxy = $github_actions_runner::https_proxy,
Optional[String[1]] $no_proxy = $github_actions_runner::no_proxy,
Optional[Boolean] $disable_update = $github_actions_runner::disable_update,
Optional[Array[String[1]]] $labels = undef,
Optional[String[1]] $enterprise_name = $github_actions_runner::enterprise_name,
Optional[String[1]] $org_name = $github_actions_runner::org_name,
Expand Down Expand Up @@ -135,6 +139,7 @@
url => $url,
hostname => $hostname,
assured_labels => $assured_labels,
disable_update => $disable_update,
}),
notify => Exec["${instance_name}-run_configure_install_runner.sh"],
require => Archive["${instance_name}-${archive_name}"],
Expand Down
Loading

0 comments on commit bc72e6f

Please sign in to comment.