Adding variable to config.

This commit is contained in:
Emiliano Vavassori 2022-08-20 00:48:20 +02:00
parent 5ee69d1f94
commit b5bce9cb17
2 changed files with 2 additions and 0 deletions

View File

@ -6,4 +6,5 @@ To quickly set up your pulumi deployment, configure the following settings:
$ pulumi config set image_url --plaintext "https://cdimage.debian.org/images/cloud/bullseye-backports/20220711-1073/debian-11-backports-generic-amd64-20220711-1073.qcow2" $ pulumi config set image_url --plaintext "https://cdimage.debian.org/images/cloud/bullseye-backports/20220711-1073/debian-11-backports-generic-amd64-20220711-1073.qcow2"
$ pulumi config set disksize --plaintext 20 $ pulumi config set disksize --plaintext 20
$ pulumi config set memory --plaintext 2048 $ pulumi config set memory --plaintext 2048
$ pulumi config set ansible_playbook --plaintext deploy.yml

View File

@ -65,6 +65,7 @@ inventory = command.local.Command("a-inventory",
) )
# Applying the command # Applying the command
ansible_playbook = config.require("ansible_playbook")
execute_ansible = command.local.Command("a-deploy", execute_ansible = command.local.Command("a-deploy",
create = f"ansible-playbook {ansible_playbook}", create = f"ansible-playbook {ansible_playbook}",
delete = "rm -f ./ansible.log", delete = "rm -f ./ansible.log",