Skip to content
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

feat: extend prepare-node-script to include Juju wiring #15

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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