Trying to deploy maas via ci workflow.
Down to last task but can’t figure out a few details on how it deploys with jinja and python etc.
Shell will have variables:
env_lz1_password=G@odPassword!
Task:
- name: Initialize MAAS with database URI
command: >
timeout 5m maas init region+rack --database-uri “postgres://mass_db_admin:{{ lookup(‘ansible.builtin.env’, ‘env_lz1_password’) }}@{{ inventory_hostname }}/maas_db”
register: maas_init_output
ignore_errors: yes
Two Questions:
-
It prompts for user to add " AAS URL [default=http://10.89.135.5:5240/MAAS]: " which I need to pass as part of command but see no documentation on how to pass this
-
Password with @ keeps catching it up. I tried postgres note on encoding https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS but this just gets different error Ex: Password set to "G%40odPassword!
Spent hours trying to pass / correct these two issues… HOping forum has shaved this yak before.