# Infra Playbooks
Playbooks in this [directory](https://github.com/rdo-infra/ci-config/tree/master/ci-scripts/infra-setup/) are used to setup infrastructure around
tripleo-ci. These playbooks have different tasks for setup and teardown infrastructure.
`ansible-playbook`
## Deployment process
Use [full-run.yml](https://github.com/rdo-infra/ci-config/blob/master/ci-scripts/infra-setup/full-run.yml) to setup infrastructure. It removes all running instances from Openstack, and creates new ones.
WARNING: `full-run.yml` will destroy all vms in the openstack instance.
Infrastructure setup/teardown playbooks use Ansible roles which are defined in the `roles/` directory.
Hosts
=====
`server_provision` role will provision three VMs in cloud.
- Promoter VM: For running promoter server.
- Toolbox VM: For running Tripleo CI related scripts. Ex. OVB cleanup scripts.
- RRCockpit VM: For Grafana dashboard.
Note: Modify `tenant_vars/infra-tripleo/servers.yml` to add more VMs.
Roles
=====
- _ensure_credentials: Export credentials for promoter server.
- _ensure_staging: Setup promoter staging environments for promoter.
- general_teardown: To remove all networks/keypairs/images from openstack.
- promoter: To setup promoter server.
- artifact_promoter: Role to promote file artifacts for a given candidate and target label.
- servers_teardown: To delete machines in openstack.
- setup_docker_compose: Setup docker compose on remote host