blob: b1acd65504f1be1cabd3401979e0641e68a6779d [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001#! /bin/bash
2
3source cmi-settings.sh
4
5echo "[ssh_connection]" > cmi.conf
6echo "ssh_args = -o \"ProxyCommand ssh -q -i $NODE_KEY -o StrictHostKeyChecking=no root@$COMPUTE_NODE nc $MGMT_IP 22\"" >> cmi.conf
7echo "scp_if_ssh = True" >> cmi.conf
8echo "pipelining = True" >> cmi.conf
9echo >> cmi.conf
10echo "[defaults]" >> cmi.conf
11echo "host_key_checking = False" >> cmi.conf
12
13echo "cmi ansible_ssh_private_key_file=$VM_KEY" > cmi.hosts
14
15export ANSIBLE_CONFIG=cmi.conf
16export ANSIBLE_HOSTS=cmi.hosts
17
18ansible-playbook -v --step cmi-logicalinterfaces.yaml