-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
There was a problem hiding this 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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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? :(
There was a problem hiding this comment.
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' { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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}": |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
No description provided.