8 Commits

Author SHA1 Message Date
Logan V
91e3de51f2 Clean up injected role vars
Injected role vars, in cases where the vars were not generated
within the playbook run, are not ideal. In the case of our venv vars,
it removes the ability for a deploy to manipulate the venv download
tag or path using group vars.

This cleanup standardizes the venv tag and download url vars using
group vars.
I also removed several unnecessary definitions of
pip_lock_to_internal_repo in the playbooks since it is already
defined in the group_vars/all.yml.

Change-Id: Iddf27179d5babb91f4518202bdae5855f110b958
2016-12-21 11:21:07 -06:00
Kevin Carter
144cfe9e7b
Remove the rabbitmq deterministic sort
This removes the rabbitmq deterministic sort common task. Due to
upstream improvements in oslo this common task is no longer needed.

Change-Id: I97c85f0c12b877927779dafa983ec1ce2afb5821
Closes-Bug: #1632831
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 09:50:29 -05:00
Jesse Pretorius
e2796764d1 Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: I864e5178f6cb8ca245bafbed9a94ae8d4ea29eae
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 22:33:14 +00:00
Kevin Carter
ecd81b9618 Cleanup/standardize usage of tags in plays
The numerous tags within the playbook have been condensed
to two potential tags: "$NAMESPACE-config", and "$NAMESPACE".

These tags have been chosen as they are namespaced and cover
the configuration pre-tasks as well as the option to execute
the main playbook from a higher level play. By tagging
everything in the play with "$NAMESPACE" we're ensuring that
everything covered by the playbook has a namespaced tag. Any
place using the "always" tag was left alone as the tasks being
executed must "always" execute whenever the playbook is called.

Notice: The os-swift-setup.yml playbook file has been
removed because it currently serves no purpose. While the
os-swift-sync.yml is no longer being directly called it has been
left as it could be of use to a deployer.

Change-Id: Iebfd82ebffedc768a18d9d9be6a9e70df2ae8fc1
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-15 10:08:48 +00:00
Kyle L. Henderson
527e22fc0e Correct Magnum issues found in AIO testing
Move cinder_service_region to group_vars/all.yml since os_magnum
relies on it.

Remove CRLFs from magnum_all.yml.

Set _rabbit_mq_host_group, it's required on the rabbitmq task.

Use magnum_galera_database_name for the db_name instead of
magnum_galera_database.

Change the magnum haproxy config to use GET for httpchk since
mangum API doesn't appear to support the HEAD request. Using
HEAD results in haproxy NOSRV errors with the backend.

Change-Id: I1562f8418e5075720ba8622262f4f13cf2d35fb6
2016-09-12 15:48:37 +00:00
Donovan Francesco
4f94bf72bd Set file mode to 644 on os-magnum-install.yml
Change-Id: Icead3b5ab8ead07dacf96e28f9af1a2ea914a90b
2016-09-07 13:02:07 +02:00
evansash
b32b5d56ac Support pulling architecture-tagged venv artifacts
Add support to all os-* for downloading venvs built/tagged with
the corresponding CPU architecture for the node deployed on.

Partially Implements: bp/multi-arch-repo
Depends-On: I31756f8383e6d69d2f80caf6a85c4c5021bfc46d
Change-Id: I045de3ac8b81cadbcb34102f1a2db5bff74c32a6
2016-08-20 19:36:55 +00:00
Donovan Francesco
37e7700938 Adding support for Magnum
In addition to adding the magnum role to the repo build process we also
include the os-magnum-install.yml to deploy magnum to hosts tagged with
os_magnum.

Change-Id: I32dee168d1005572510f630a21f7d7a7a05640d9
Implements: blueprint role-magnum
2016-08-09 20:02:42 +00:00