-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Fix acceptance tests & run on vagrant_libvirt #392
base: master
Are you sure you want to change the base?
Conversation
2512cb8
to
3e86777
Compare
1ad49a5
to
2e1be74
Compare
2e1be74
to
5d4e809
Compare
Fixes: 28bc41b ("migrater to beaker_puppet_helpers")
5d4e809
to
795761e
Compare
<<-EOS | ||
class { 'selinux': mode => 'disabled' } | ||
EOS | ||
end | ||
|
||
context 'before reboot' do | ||
before(:all) do | ||
# Tag vagrant user to an administrative group | ||
shell('semanage login -a -s staff_u vagrant') |
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 this okay for running elsewhere and the vagrant user might not exist ?
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.
I don't know enough about it. I think the vagrant user is default for vagrant boxes?
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.
There's host['user']
so I think this would ensure the correct user is used:
shell('semanage login -a -s staff_u vagrant') | |
block_on hosts do |host| | |
on host, "semanage login -a -s staff_u #{host['user']}" | |
end |
I get the impression the rest is all single node, so this is probably the equivalent
shell('semanage login -a -s staff_u vagrant') | |
shell("semanage login -a -s staff_u #{default['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.
The vagrant user should be in every vagrant box published, vagrant docs. I am happy either way, if a more general fix works we can do that, or any box published should have that user.
this is a resubmission of #390 but with voxpupuli/gha-puppet#60