Skip to content

Commit

Permalink
improve README
Browse files Browse the repository at this point in the history
- update to latest MAAS release (3.3)
- add instructions to install Ansible on Jammy
- add note about DB data preserved in the nodes after a teardown
  • Loading branch information
alexsander-souza authored and SK1Y101 committed Jun 9, 2023
1 parent 3395006 commit 3686cee
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ This playbook has been tested with Ansible version 5.10.0 and above. We recommen

## Install

On systems running the latest Ubuntu LTS version (Jammy), run the following commands to install Ansible:

```
sudo apt-get install ansible
ansible-galaxy collection install ansible.utils
```

Finally, download the playbook from Github using git

```
git clone [email protected]:maas/maas-ansible-playbook
```
Expand Down Expand Up @@ -191,7 +200,7 @@ The following variables are only required when using HA Postgres:

```
ansible-playbook -i ./hosts\
--extra-vars="maas_version=3.2 maas_postgres_password=example maas_installation_type=deb maas_url=http://example.com:5240/MAAS"\
--extra-vars="maas_version=3.3 maas_postgres_password=example maas_installation_type=deb maas_url=http://example.com:5240/MAAS"\
./site.yaml
```
Expand All @@ -215,6 +224,8 @@ ansible-playbook -i ./hosts \
ansible-playbook -i ./hosts ./teardown.yaml
```
> Note: this action teardowns only the services, the MAAS database is preserved in the `maas_postgres_*` nodes. You must remove these files manually before attempting to redeploy the stack.
### Backup the MAAS stack
Backup MAAS requires the `maas_backup_download_path` variable to be set, it will designate a path local to where the playbook is being run to download backup archives. This path must exist prior to running the playbook. `maas_installation_type` is also required.
Expand Down

0 comments on commit 3686cee

Please sign in to comment.