Skip to content
Snippets Groups Projects
Commit 36a30b15 authored by debora.benedetto@hpe.com's avatar debora.benedetto@hpe.com
Browse files

add template for ssh_key ansible generation, bugfix template replacement

parent f0b255e9
No related branches found
No related tags found
No related merge requests found
......@@ -23,23 +23,6 @@ resource "openstack_compute_instance_v2" "{{ infra_element_name }}" {
network {
port = openstack_networking_port_v2.{{ i1.belongsTo }}.id
}
## AGENTS TO ADD
# this is subject to be moved to IEM as part of its baseline
provisioner "local-exec" {
command = "ansible-galaxy collection install community.general"
}
# this is subject to be moved to IEM as part of its baseline
provisioner "local-exec" {
command = "ansible-playbook ansible/playbooks/pma/site_requirements.yaml"
}
# secrets can be taken from environment variables at IEM but these security issues I will leave them to y2, the user can also be problematic ubuntu/root/centos/...
provisioner "local-exec" {
command = "ansible-playbook -u root -i '${openstack_networking_floatingip_v2.{{ infra_element_name ~ "_floating_ip"}}.address},' ansible/playbooks/pma/site.yaml --extra-vars '{\"pma_deployment_id\": \"123e4567-e89b-12d3-a456-426614174002\", \"pma_influxdb_bucket\": \"bucket\", \"pma_influxdb_token\": \"piacerePassword\", \"pma_influxdb_org\": \"piacere\", \"pma_influxdb_addr\": \"https://influxdb.pm.ci.piacere.digital.tecnalia.dev\" }'"
}
}
# Create floating ip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment