Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version, add OS support, bugfixes and more #1

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

boltronics
Copy link

This includes the following changes:

  • Bumps the initial installation version from 2.284.0 to 2.321.0.
  • Adds the possibility to deploy GitHub Runner on any operating system or architecture it supports (although I have only tested GNU/Linux on ARM64, YMMV).
  • Fixes various bugs, such as syntax errors and undefined variable references that otherwise make it impossible to work.
  • Creates a ghrunner user and group for unprivileged execution.
  • Adds support for setting labels and/or a runnergroup.
  • Improves the information in the pillar example, such as documenting how to set a token and eliminating the need for setting the script_suffix.

You could consider this a breaking change, but it was already not working to begin with.

One other thing to note is that the token appears to be one-time use, so if the plan is to run this state on a bunch of hosts, the user would need to find a way to generate tokens on-demand. However, a token is only used for the initial setup of a host and never looked at again. If just two runners were required, one could set the token in pillar, launch one, change the token in pillar, then launch the second. This isn't great, but it's an option.

Having said that, the way the token works isn't new to this PR; it's just that now we have repo_token documented in the pillar.

I'm not sure there is a use-case for this being optional at this point
(since the hashes are already supplied for the default version), but
it seems that the intent was always to allow this to be optional.
* The `file: svc.sh`-type requirement was invalid since it did not
  reference a state.
* Redundant requirements specified.
* Ordering of cmd and service is now more logical (and alphabetical!).
* Use `creates` instead of `watch` to check if needed.
* Fetch the service name from the generated .service file.
The .service file won't exist at the time the template is rendered on
the first run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant