Skip to content

Testing contrail ansible changes on a cluster provisioned using SM SM Lite

Deepinder Setia edited this page May 19, 2017 · 9 revisions

1 Provision your cluster using any of the methods mentioned in Server Manager Wiki

2 Once the provision is complete, execute the following commands

     server-manager display image
     server-manager display cluster

3 Now you can find the contrail-ansible playbook corresponding to the contrail-cloud-docker image you used to provision your cluster in the following directory:

     /opt/contrail/server_manager/ansible/playbooks/<image_id>/playbooks

where <image_id> is the image_id returned in the "server-manager display image" command above.

4 You can now make your changes to the contrail-ansible playbooks from the directory mentioned in the previous step.

5 To test the changes done to the playbooks, execute the following command:

    cd /opt/contrail/server_manager/ansible/playbooks/<image_id>/playbooks
    ansible-playbook -i inventory/<cluster_id>.inv site.yml

Note:

* <image_id> is the image id returned from "server-manager display image" command
* <cluster_id> is the cluster id returned from "server-manager display cluster" 
  command 
* inventory<cluster_id>.inv is the Ansible inventory file generated by 
  server-manager based on the cluster and server JSON files. Change the 
  inventory to pass any new parameters required by the changes done to playbook 
  if required.
Clone this wiki locally