-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Clone git repository as $user #352
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,10 @@ | ||||||||||||||||||
# frozen_string_literal: true | ||||||||||||||||||
|
||||||||||||||||||
def has_puppetdb | ||||||||||||||||||
case host_inventory['facter']['os']['name'] | ||||||||||||||||||
when 'Debian' | ||||||||||||||||||
return false if ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet6' && host_inventory['facter']['os']['release']['major'] == '11' | ||||||||||||||||||
end | ||||||||||||||||||
|
||||||||||||||||||
true | ||||||||||||||||||
Comment on lines
+6
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can consider this style as well.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||||||||||||||
end | ||||||||||||||||||
smortex marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if $facts['os']['name'] == 'Ubuntu' { | ||
# Needed for facter to fetch facts used by the postgresql module | ||
if versioncmp($facts['facterversion'], '4.0.0') <= 0 { | ||
package{ 'lsb-release': | ||
ensure => present, | ||
} | ||
} | ||
} |
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.
will that break existing installations? was that maybe setup like that on purpose, so the user that runs it has no permissions / less permissions?
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.
The only case I can see is if the user cannot traverse one of the parent directories.
Because of #349 (review) I would also want to change this user to root:root by default, but this will be a breaking change.