Commit Graph

5 Commits

Author SHA1 Message Date
Dmitriy Rabotjagov ed1344cfdc service_setup: refactor service setup to a single file
This patch refactors the openstack user/service/endpoints creation to
service_setup.yml which will eventually be managed by
openstack-ansible-tests.

Change-Id: I4f6aa37a5290bd9fcdc732ab502ef66ea3df7ff7
2019-06-28 19:58:54 +01:00
Jesse Pretorius 9573f2e714 Enable overriding the service setup host python interpreter
In order to enable the service setup host python interpreter to
be changed easily, we make it a variable. This will be useful
when someone sets the service setup host to be the utility
container, because we'll be able to set this var by default.

Change-Id: If33382404565dcb288e2b6794512f09c85e751d5
2018-11-28 16:07:36 +00:00
Jonathan Herlin 7b56f1d9b7 Update playbook to newer syntax.
---
[DEPRECATION WARNING]: Using tests as filters is deprecated.
Instead of using `result|success` use `result is success`.
This feature will be removed in version 2.9.
---

This patch updates the syntax to a non deprecated one

Change-Id: I555dde8bc565f96d8f38fdabc99546e396335095
2018-11-25 16:21:32 +00:00
Jimmy McCrory d638110970 Remove keystone service user
The keystone service user is never used by the keystone service. Remove
the tasks creating it and related variables.

Change-Id: Iede26cba97ab43cdd0abc3887883e61d40007b34
2018-10-18 09:56:05 -07:00
Jesse Pretorius 67bf87f330 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Depends-On: https://review.openstack.org/580156
Change-Id: I8f193d5f6f1f6020b23a4c4eebf3ad537d61e0b7
2018-07-13 19:01:59 +00:00