Skip to content

Commit

Permalink
Merge pull request #314 from freyes/create-local-share
Browse files Browse the repository at this point in the history
Create ~/.local/share/juju directory before running juju
  • Loading branch information
ajkavanagh authored Feb 9, 2024
2 parents eb05cf5 + 27bfff2 commit df389b4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions playbooks/juju/pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
src: "/home/ubuntu/{{ zuul.project.src_dir }}/"
dest: "/home/ubuntu/{{ zuul.project.src_dir | replace('charm-', '') }}"
remote_src: yes
# NOTE(freyes): fixes the error below when running `juju` in a fresh
# environment.
# ERROR cannot create juju home directory: mkdir /home/ubuntu/.local/share: permission denied
# WARNING Installing Juju in a strictly confined Snap. To ensure correct operation, create the ~/.local/share/juju directory manually.
- name: Create ~/.local/share/juju directory to run Juju snap in strict mode
ansible.builtin.file:
path: /home/ubuntu/.local/share/juju
state: directory
owner: ubuntu
group: ubuntu
mode: '0700'
- name: 'install crashdump'
become: true
snap:
Expand Down

0 comments on commit df389b4

Please sign in to comment.