Collection of Ansible playbooks to bring up an OpenStack Infra
Go to file
Ricardo Carrillo Cruz f859b1e47f Make services optional
Some users will use infra-ansible for 3rd party, some others
will want a minimal infra with Gerrit.
Moreover, some services are going away with the advent of
Zuul v3.
As such, make the services definitions optional, so users can
really define what they want for the deploy.
Also, reworked the services to be a list, to be more easily
loopable with Ansible with_subelements.

Change-Id: I0097bf4d90350fbe53b94e27b2036d4b8083263a
2016-06-17 10:48:36 +00:00
group_vars Remove dependency from system-config 2015-08-12 11:11:06 +02:00
roles Make services optional 2016-06-17 10:48:36 +00:00
.gitignore Add infra_config.yml to .gitignore 2016-06-08 11:50:57 +02:00
.gitreview Add a .gitreview 2015-08-27 17:36:51 -05:00
README.md Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
Vagrantfile Reworked setup_env.sh to support Debian & Darwin/OSX 2016-03-12 23:10:46 +00:00
ansible.cfg Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
bootstrap_gerrit.yml Change the old meta gerrit group to the expected 'gerrit' group 2016-06-07 14:53:18 +00:00
bootstrap_jjb.yml Change the old meta jenkins group to the expected 'jenkins' group 2016-06-07 15:12:06 +00:00
bootstrap_puppet_infra_nodes.yml Change the old meta puppetmaster group to the expected 'puppetmaster' group 2016-06-07 14:45:31 +00:00
bootstrap_puppetmaster.yml Change the old meta puppetmaster group to the expected 'puppetmaster' group 2016-06-07 14:45:31 +00:00
common.yml Fix sudo/become deprecation warnings 2016-06-06 15:12:49 +00:00
generate_infra_dynamic_groups.yml Add generate infra dynamic inventory playbook/role 2016-06-07 13:36:37 +00:00
hosts Use virtualenv python binary 2016-01-15 09:15:19 +01:00
infra_config.yml.sample Make services optional 2016-06-17 10:48:36 +00:00
requirements.txt Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
requirements.yml Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
resources.yml.sample Provide more realistic resources.yml.sample 2016-06-09 12:35:17 +00:00
run.sh Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
run_puppet_on_gerrit.yml Change the old meta gerrit group to the expected 'gerrit' group 2016-06-07 14:53:18 +00:00
run_puppet_on_jenkins.yml Change the old meta jenkins group to the expected 'jenkins' group 2016-06-07 15:12:06 +00:00
run_puppet_on_zuul.yml Change the old meta zuul group to the expected 'zuul' group 2016-06-07 14:56:51 +00:00
set_hostnames.yml Fix sudo/become deprecation warnings 2016-06-06 15:12:49 +00:00
set_resolv_conf.yml Set resolv.conf on nodes before bootstrap 2016-06-09 12:15:40 +00:00
setup_env.sh Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
setup_openstack_resources.yml Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
site.yml Set resolv.conf on nodes before bootstrap 2016-06-09 12:15:40 +00:00
tox.ini Switch the provisioning step to the cloud launcher role 2016-06-07 13:35:47 +00:00
wait_for_servers.yml Wait for server to be ssh reachable before bootstrap/configuration 2016-06-08 14:54:16 +00:00

README.md

Instructions

  1. Run source setup_env.sh
  2. Source your OpenStack cloud environment variables rc file
  3. Run cp resources.yml.sample resources.yml
  4. Edit resources.yml and put your environment values
  5. Run bash run.sh

Notes

In resources.yml you may specify public key file instead of public key content, in the following way:

keypairs:
  - name: my_key_file
    public_key_file: /home/<my_user>/.ssh/<key_file>

Do not specify both 'public_key' and 'public_key_file', as they are mutual exclusive variables in Ansible.