Skip to content
Snippets Groups Projects

Remove remote-exec provisioners in Terraform script

Compare and
2 files
+ 17
30
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
1
@@ -43,7 +43,17 @@ resource "openstack_compute_instance_v2" "ohpc" {
@@ -43,7 +43,17 @@ resource "openstack_compute_instance_v2" "ohpc" {
owner: centos:centos
owner: centos:centos
path: /etc/hosts
path: /etc/hosts
permissions: 0644
permissions: 0644
EOF
 
# Clone CRI_XCBC repository
 
- git clone https://github.com/jprorama/CRI_XCBC.git /CRI_XCBC
 
 
# Clone CRI_Cluster_Monitor repository
 
- git clone https://github.com/eesaanatluri/CRI_Cluster_Monitor.git /CRI_Cluster_Monitor
 
 
# Run Ansible playbook
 
runcmd:
 
- ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e "{'cod_deploy':'false', 'compute_nodes':[{'name':'${var.ohpc_instance_name}', 'ip':'${var.internal_ip}', 'mac':'${mac_address}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}" /CRI_XCBC/site-ops.yaml -b -v
 
EOF
# defines the networks of the instance
# defines the networks of the instance
network {
network {
Loading