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
Problem: Pulp 2 stops working after installing Pulp 3 #128
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 |
|---|---|---|
|
|
@@ -41,28 +41,54 @@ | |
| check_mode: False | ||
| register: result | ||
|
|
||
| - name: Make sure {{ pulp_group }} group exists | ||
|
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. I don't if Ansible properly interpolates here or if you need to quote. Still a bit of magic to me. |
||
| group: | ||
| name: '{{ pulp_group }}' | ||
| gid: '{{ pulp_group_id }}' | ||
| state: present | ||
| system: true | ||
|
|
||
| - name: Create user {{ pulp_user }} | ||
| user: | ||
| name: '{{ pulp_user }}' | ||
| uid: '{{ pulp_user_id }}' | ||
| shell: '{{ result.stdout.strip() }}' | ||
| home: '{{ pulp_user_home }}' | ||
| system: true | ||
| when: developer_user is not defined | ||
|
|
||
| - name: Add user {{ pulp_user }} to {{ pulp_group }} group | ||
| user: | ||
| name: '{{ pulp_user }}' | ||
| groups: | ||
| - '{{ pulp_group }}' | ||
| append: true | ||
|
|
||
| - name: Add user {{ developer_user }} to {{ pulp_group }} group | ||
| user: | ||
| name: '{{ developer_user }}' | ||
| groups: | ||
| - '{{ pulp_group }}' | ||
| append: true | ||
| when: developer_user is defined | ||
|
|
||
| - name: Reset ssh conn to allow user changes to affect when ssh user and pulp user are the same | ||
|
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. Should this have a 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. I tried that, but got a warning saying that it is not allowed with the 'reset_connection' metatask. |
||
| meta: reset_connection | ||
|
|
||
| - name: Create cache dir for Pulp | ||
| file: | ||
| path: '{{ pulp_cache_dir }}' | ||
| state: directory | ||
| owner: '{{ pulp_user }}' | ||
| group: '{{ pulp_user }}' | ||
| group: '{{ pulp_group }}' | ||
| mode: 0775 | ||
|
|
||
| - name: Create pulp install dir | ||
| file: | ||
| path: '{{ pulp_install_dir }}' | ||
| state: directory | ||
| owner: '{{ pulp_user }}' | ||
| group: '{{ pulp_user }}' | ||
| group: '{{ pulp_group }}' | ||
|
|
||
| - name: Install packages needed for source install | ||
| package: | ||
|
|
||
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.
Please add these to the role README.
Also, what is the behavior when blank like this?
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 behavior is that the operating system assigns the UID. However, if it is provided, that number will be used. unless it's taken and tehn an error will occur.