Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Change pulp users group from users to pulp
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Sep 2, 2020
1 parent 788f7df commit 30c58be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/7173.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed pulp users main group from 'users' to '{{ pulp_group }}'.
5 changes: 5 additions & 0 deletions molecule/scenario_resources/tests/test_default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
its('owner') { should eq 'root' }
end

describe directory('/var/lib/pulp/') do
its('owner') { should eq 'pulp' }
its('group') { should eq 'pulp' }
end

['pulpcore-api','pulpcore-content','pulpcore-resource-manager', 'pulpcore-worker@1', 'pulpcore-worker@2'].each do |pservice|
describe service(pservice) do
it { should be_running }
Expand Down
9 changes: 9 additions & 0 deletions roles/pulp_common/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
shell: '{{ result.stdout.strip() }}'
home: '{{ pulp_user_home }}'
system: true
group: '{{ pulp_group }}'
groups:
- '{{ pulp_group }}'
append: true
Expand Down Expand Up @@ -132,6 +133,14 @@

when: pulp_user_home_stat.stat.pw_name == "apache"

- name: Set group on all files in '{{ pulp_user_home }}'
file:
path: '{{ pulp_user_home }}'
state: directory
group: '{{ pulp_group }}'
recurse: true
follow: false

- name: Install packages needed for source install
package:
name:
Expand Down

0 comments on commit 30c58be

Please sign in to comment.