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

Add basic SuSE support #194

Merged
merged 8 commits into from
Jun 17, 2024
Merged

Add basic SuSE support #194

merged 8 commits into from
Jun 17, 2024

Conversation

tuxmea
Copy link
Member

@tuxmea tuxmea commented May 28, 2024

No description provided.

@tuxmea tuxmea marked this pull request as draft May 28, 2024 13:11
@tuxmea tuxmea marked this pull request as ready for review May 28, 2024 14:16
Copy link
Member

@rwaffen rwaffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -89,6 +101,12 @@
Optional[String] $sentry_dsn = undef,
Optional[Pattern[/.*:.+/]] $listen_address = undef,
Optional[Gitlab_ci_runner::Session_server] $session_server = undef,
Enum['repo', 'binary'] $install_method = 'repo',
Stdlib::HTTPUrl $binary_source = 'https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/binaries/gitlab-runner-linux-amd64',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Stdlib::HTTPUrl $binary_source = 'https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/binaries/gitlab-runner-linux-amd64',
Stdlib::HTTPSUrl $binary_source = 'https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/binaries/gitlab-runner-linux-amd64',

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about people with local http server without https? The idea is to let people override the url.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to support plaintext HTTP in 2024? :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Customer insists on using an internal HTTP only server. :-(

@@ -7,6 +7,11 @@
) {
assert_private()

if $facts['os']['family'] == 'Suse' {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it Suse for suse opensoure and enterprise? does the code work on both systems?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both. Or even better: this method works for any OS! I am about to implement the any OS usage in a next PR

@@ -7,6 +7,11 @@
) {
assert_private()

if $facts['os']['family'] == 'Suse' {
exec { "${gitlab_ci_runner::binary_path} install -u ${gitlab_ci_runner::user}":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to notify the exec when there's an update for the runner? Do we need to run systemctl daemon-reload before the service resource?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. My test installation did not require a separate systemctl daemon-reload

@tuxmea tuxmea requested review from bastelfreak and rwaffen May 29, 2024 11:54
@bastelfreak bastelfreak added the enhancement New feature or request label Jun 15, 2024
README.md Show resolved Hide resolved
@tuxmea tuxmea requested review from bastelfreak and rwaffen June 17, 2024 08:42
@tuxmea tuxmea merged commit 26cf666 into voxpupuli:master Jun 17, 2024
24 checks passed
@tuxmea tuxmea deleted the sles branch June 17, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants