Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pulp_common: Ensure artifacts dir is precreated like cache dir
[noissue]
  • Loading branch information
Spredzy committed Oct 27, 2020
1 parent ba4b60b commit 505ab08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/pulp_common/defaults/main.yml
Expand Up @@ -21,6 +21,7 @@ pulp_user_id:
pulp_group: pulp
pulp_group_id:
pulp_user_home: '/var/lib/pulp'
__pulp_artifact_dir: "{{ pulp_user_home | regex_replace('\\/$', '') }}/artifact"
pulp_pip_editable: yes
pulp_use_system_wide_pkgs: false
prereq_pip_packages:
Expand Down
8 changes: 8 additions & 0 deletions roles/pulp_common/tasks/install.yml
Expand Up @@ -77,6 +77,14 @@
owner: '{{ pulp_user }}'
group: '{{ pulp_group }}'

- name: Create artifact dir for Pulp
file:
path: '{{ __pulp_artifact_dir }}'
state: directory
owner: '{{ pulp_user }}'
group: '{{ pulp_group }}'
mode: "u+rwx,g+rwx,o+rx"

- name: Create cache dir for Pulp
file:
path: '{{ pulp_cache_dir }}'
Expand Down

0 comments on commit 505ab08

Please sign in to comment.