Commit Graph

8 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 0ac2ef7a6a 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: Id9e94865467a9076ee15a9caebcc2cc97847d079
2019-08-01 17:29:33 +03:00
Jesse Pretorius 273d4fd2d5 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: Id70abddc0ba2a4086406d35162d9aca0b526f196
2018-11-30 16:02:01 +00:00
Jesse Pretorius 9fb3ab96a2 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
Change-Id: I155b5036dd98f80a0d31d8bb691beae147a97bc3
2018-07-06 13:51:39 +00:00
Jesse Pretorius 56255d91cf Do not log passwords
This prevents data to be leaked into the callback plugin.

Change-Id: I2b4df11f99c00da808a84126d65dc3776a7d06d1
2018-04-18 11:40:12 +01:00
Travis Truman 5be3ecff03 Cleanup/standardize usage of tags
The numerous tags within the role have been condensed
to two tags: designate-install and designate-config

These tags have been chosen as they are namespaced
and cover the two major functions of the role.

Documentation has been updated to inform how each tag
influences the function of the role.

Change-Id: I700b80bce2a8a761d341ca9cdc51398328966287
2016-07-13 14:24:19 -04:00
Jimmy McCrory daa3308d77 Remove dependency on the Keystone admin auth token
Now that auth token usage is deprecated, prefer the admin
user and password for all designate tasks run against
keystone.

Change-Id: Ibfe282044d3cc234b4d627e351de08037c419b0b
2016-03-17 14:49:11 -07:00
Jesse Pretorius f59db83194 Various configuration changes and task updates
This patch implements a bunch of changes for easier debugging and to
make the deployment more functional.

 - All passwords are removed from defaults. The role must fail to
   complete all tasks if no password is provided.
 - The Designate Pool Configuration uuid's are provided with
   defaults and the vars are added to the user_secrets.yml file
   for easy implementation in OpenStack-Ansible.
 - The designate.conf template has been re-organised to closely
   match the sample file provided in the master branch of the
   OpenStack Designate repository. This makes it easier to compare
   for changes.
 - The PyMySQL driver is used for all MySQL connectivity, as is now
   the general standard for OpenStack Services.
 - The designate_pool_manager database is now setup.
 - The test playbook has the RabbitMQ & DB setup pre_tasks removed
   for now. These can move out again once functional testing is
   working.
 - The test playbook's LXC dhcp range is reduced to 50 hosts in
   order to ensure no conflicts with the test containers and also
   provide room for growth.
 - Add human readable logging callback plugin to functional test.
 - Restructure testing to make it easier to work with.
2016-03-14 12:34:48 +00:00
sharmaswati6 8d6686ef54 Initial commit 2016-03-14 12:34:10 +00:00