diff --git a/cloud-config b/cloud-config index c53883ab..6165c96c 100644 --- a/cloud-config +++ b/cloud-config @@ -4,10 +4,11 @@ users: - name: exouser shell: /bin/bash groups: sudo, admin - sudo: ['ALL=(ALL) NOPASSWD:ALL']{ssh-authorized-keys} + sudo: ['ALL=(ALL) NOPASSWD:ALL'] + # {ssh-authorized-keys} ssh_pwauth: true package_update: true -package_upgrade: {install-os-updates} +package_upgrade: true # {install-os-updates} packages: - git{write-files} runcmd: @@ -16,7 +17,7 @@ runcmd: - >- echo '{"status":"running", "epoch": '$(date '+%s')'000}' | tee --append /dev/console > /dev/kmsg || true - chmod 640 /var/log/cloud-init-output.log - - {create-cluster-command} +# - {create-cluster-command} - (which apt-get && apt-get install -y python3-venv) # Install python3-venv on Debian-based platforms - (which yum && yum install -y python3) # Install python3 on RHEL-based platforms - |- @@ -24,12 +25,15 @@ runcmd: . /opt/ansible-venv/bin/activate pip install --upgrade pip pip install ansible-core + # --url "{instance-config-mgt-repo-url}" + # --checkout "{instance-config-mgt-repo-checkout}" + # -e "{ansible-extra-vars}" ansible-pull \ - --url "{instance-config-mgt-repo-url}" \ - --checkout "{instance-config-mgt-repo-checkout}" \ + --url "https://gitlab.com/exosphere/exosphere.git" \ + --checkout "master" \ --directory /opt/instance-config-mgt \ -i /opt/instance-config-mgt/ansible/hosts \ - -e "{ansible-extra-vars}" \ + -e "{\"guac_enabled\":true,\"gui_enabled\":true}" \ /opt/instance-config-mgt/ansible/playbook.yml - ANSIBLE_RETURN_CODE=$? - if [ $ANSIBLE_RETURN_CODE -eq 0 ]; then STATUS="complete"; else STATUS="error"; fi