Skip to content
Snippets Groups Projects
Commit 630d6022 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Clone CRI_XCBC repository before executing Ansible playbook

- Added 'git clone' command to fetch the CRI_XCBC repository to the root directory
- Removed git clone block from user_data
parent 449947b9
No related branches found
No related tags found
No related merge requests found
Pipeline #10076 failed with stages
in 30 seconds
...@@ -133,12 +133,15 @@ resource "null_resource" "ops" { ...@@ -133,12 +133,15 @@ resource "null_resource" "ops" {
} }
# compute node registration on ohpc # compute node registration on ohpc
# provisioner "remote-exec" { provisioner "remote-exec" {
# inline = [ inline = [
# for node, net in module.nodes.network: # Git clone command to clone the repository to the root directory
# "ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'cod_deploy':'false', 'compute_nodes':[{'name':'${node}', 'ip':'${net[0].fixed_ip_v4}', 'mac':'${net[0].mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v" "git clone https://github.com/jprorama/CRI_XCBC.git /",
# ]
# } for node, net in module.nodes.network:
"ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e \"{'cod_deploy':'false', 'compute_nodes':[{'name':'${node}', 'ip':'${net[0].fixed_ip_v4}', 'mac':'${net[0].mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v"
]
}
# ood node # ood node
# provisioner "remote-exec" { # provisioner "remote-exec" {
......
...@@ -43,10 +43,6 @@ resource "openstack_compute_instance_v2" "ohpc" { ...@@ -43,10 +43,6 @@ resource "openstack_compute_instance_v2" "ohpc" {
owner: centos:centos owner: centos:centos
path: /etc/hosts path: /etc/hosts
permissions: 0644 permissions: 0644
- content: |
git clone https://github.com/jprorama/CRI_XCBC.git /
path: /
permissions: '0755'
EOF EOF
# defines the networks of the instance # defines the networks of the instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment