Skip to content

Commit

Permalink
feat: extend prepare-node-script to include Juju wiring (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis authored Jun 4, 2024
1 parent c3d83f1 commit 6fce041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ jobs:
export COLUMNS=256
sudo snap install ${{ needs.build-amd64.outputs.snap }} --dangerous
maas-anvil prepare-node-script | bash -x
sudo snap connect maas-anvil:juju-bin juju:juju-bin
sudo snap connect maas-anvil:dot-local-share-juju
sg snap_daemon "maas-anvil -v cluster bootstrap --role database --role region --role agent --role haproxy --accept-defaults"
- name: Collect juju status
if: always()
Expand Down Expand Up @@ -96,8 +94,6 @@ jobs:
# export COLUMNS=256
# sudo snap install ${{ needs.build-arm64.outputs.snap }} --dangerous
# maas-anvil prepare-node-script | bash -x
# sudo snap connect maas-anvil:juju-bin juju:juju-bin
# sudo snap connect maas-anvil:dot-local-share-juju
# sg snap_daemon "maas-anvil -v cluster bootstrap --role database --role region --role agent --role haproxy --accept-defaults"
# - name: Collect juju status
# if: always()
Expand Down
6 changes: 6 additions & 0 deletions anvil-python/anvil/commands/prepare_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
# Workaround a bug between snapd and juju
mkdir -p $HOME/.local/share
mkdir -p $HOME/.config/anvil
# Connect snap to the Juju snap interface and provide access to Juju directory.
# These actions will allow anvil bootstrap Juju controller and manage the
# Juju model.
sudo snap connect maas-anvil:juju-bin juju:juju-bin
sudo snap connect maas-anvil:dot-local-share-juju
"""


Expand Down

0 comments on commit 6fce041

Please sign in to comment.