Commit Graph

11 Commits

Author SHA1 Message Date
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
Ricardo Carrillo Cruz 563123d788 Add generate infra dynamic inventory playbook/role
Some clouds may not have metadata enabled, or even have it but is
not reliable.
Force the user to define in infra_config.yml the services that make
up the OpenStack Infra cloud. This will be in a dict named 'services',
which will contain an entry for each OpenStack Infra service
(puppetmaster, zuul, nodepool, etc).

Change-Id: I9e3fe34684cd31bf1750ad8cf72e7e9090bfe087
2016-06-07 13:36:37 +00:00
Ricardo Carrillo Cruz efd0234300 Switch the provisioning step to the cloud launcher role
I've been slowly decoupling the provisioning role from infra-ansible
into its own role:

http://git.openstack.org/cgit/openstack/ansible-role-cloud-launcher

Now that it has feature parity and it is gating in OpenStack CI,
just use it and remove setup_openstack_resources roles.

Change-Id: I4810d0bdb57cf1f069f20fb133f5f2afe15e4e87
2016-06-07 13:35:47 +00:00
Arie Bregman 1dedd44700 Add keypairs to infra_config sample and option to use key file
At the moment 'keypairs' isn't defined anywhere. It was added
to infra_config.yml.sample to help users define it.

Also, key_public_file variable was added to 'Create keypairs'
task, to allow users specify key_public_file instead of key
content.

Change-Id: I414aeeaee9c38bdbfe7e5607cb756f08335ac42c
2016-03-21 12:12:56 +02:00
Ricardo Carrillo Cruz cb16f959b7 Add initial support for creating volumes
For some services it may be desirable to have instances using
cinder volumes, this change allows to define that in the
infra_config.yml inventory and the provision_infra_servers
will create them.
A follow-up patch will attach the volumes defined on each instance.

Change-Id: I28d187569655fbbc45cec0bce771ce8adab1f4dd
2015-10-15 17:37:48 +02:00
Ricardo Carrillo Cruz 806d56e97d Add os_client_config_cloud parameter to infra_config.yml
Instead of hardcoding to a known clouds.yaml cloud name, allow
it to be configurable.
2015-05-26 13:21:16 +02:00
Ricardo Carrillo Cruz d229d2dd90 Add domainname parameter to infra_config.yml.sample 2015-05-26 13:09:30 +02:00
Ricardo Carrillo Cruz e914d40602 Use rsync to copy the system-config repo to puppetmaster
Instead of using a Git server to stage changes on system-config,
better just copy over the local system-config from the command
center machine, the instances created by OpenStack may not have
connectivity to the Git server.
2015-04-29 13:47:47 +02:00
Ricardo Carrillo Cruz 062bca4b65 Leave system_config_branch and as a global var, remove others 2015-04-23 11:50:14 +02:00
Ricardo Carrillo Cruz 2bb1a0c8fc Add key_name param to infra_config sample 2015-04-19 00:32:44 +02:00
Ricardo Carrillo Cruz 9d5650d0b7 Add infra_config.yaml sample
This is a sample config for users to create their own infra-ansible
config file, which will be passed to ansible-playbook with
-e "@infra_config.yaml' switch.
2015-04-18 23:20:45 +02:00