David K. Bainbridge | 0820cab | 2016-06-02 17:43:32 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | ID=$1 | ||||
4 | HOSTNAME=$2 | ||||
5 | IP=$3 | ||||
6 | MAC=$4 | ||||
7 | ROLE=$5 | ||||
8 | |||||
9 | echo "PROVISION $ID $HOSTNAME $IP $MAC $ROLE" >> /etc/maas/ansible/logs/$ID.log | ||||
10 | |||||
11 | ANSIBLE_ROLES_PATH=/etc/maas/ansible/roles ansible-playbook --private-key=/etc/maas/ansible/id_rsa -i $IP, /etc/maas/ansible/compute-node.yml --skip-tags=interface_config >> /etc/maas/ansible/logs/$ID.out |