Skip to content

Commit

Permalink
Merge pull request #3 from canonical/fix-create-admin
Browse files Browse the repository at this point in the history
fix: create maas admin prior to wait
  • Loading branch information
petermakowski authored Jan 23, 2024
2 parents 73f250b + 867e992 commit 51d3dab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ runs:
run: |
set -x
sudo maas init region+rack --maas-url=${{inputs.maas-url}} --database-uri maas-test-db:///
- name: Create MAAS administrator
shell: bash
run: |
sudo maas createadmin --username=administrator --password=test [email protected]
export API_KEY=`sudo maas apikey --username=administrator`
maas login administrator http://localhost:5240/MAAS $API_KEY
- name: Wait for MAAS boot resources
shell: bash
run: while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished"
run: while [ $(maas administrator boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished"

0 comments on commit 51d3dab

Please sign in to comment.