8 Commits

Author SHA1 Message Date
Jesse Pretorius
569fdbb7c5 Update rootwrap filter copy for easier maintenance
Update the rootwrap filter config file copy task to handle
looking up rootwrap filter files using 'with_fileglob' to avoid
having to maintain the task with each addition or removal of these
files.

Change-Id: I2d3ccabb9df4efa8354c1f3fb5af30669160128f
2016-09-20 16:08:28 +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
Travis Truman
0d123e90ce Only install to virtual environment
Remove all tasks and variables related to toggling between installation
of designate inside or outside of a Python virtual environment.
Installing within a venv is now the only supported deployment.

Additionally, a few changes have been made to make the creation of the
venv more resistant to interruptions during a run of the role.
* unarchiving a pre-built venv will now also occur when the venv
  directory is created, not only after being downloaded
* virtualenv-tools is run against both pre-built and non pre-built venvs
  to account for interruptions during or prior to unarchiving

Change-Id: If3f0cb96d0ac670f6c53243283d6726067cba011
Implements: blueprint only-install-venvs
2016-07-08 12:58:36 -04:00
Jesse Pretorius
a07a073cc1 Various changes to make convergence test work
- Ensure that rootwrap files are appropriately secured.
 - Implement sudoers to make rootwrap work.
 - Restructure tests to reduce duplication.
2016-03-14 12:34:48 +00: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
Jesse Pretorius
6856ee841d Implement rootwrap
This patch adds the rootwrap templates, filters, etc in order to
ensure that the designate service is capable of executing commands
against bind9 when it needs to.
2016-03-14 12:34:48 +00:00
Jesse Pretorius
d9700294e0 Rename api-paste and policy configuration files
The api-paste file was incorrectly named api_paste.ini when implemented
on the designate server, and therefore wasn't being used.

The policy.json template file was renamed to policy.json.j2 to keep
consistent with conventions in OpenStack-Ansible. This eases the process
for updating the files automatically through convenience scripts.
2016-03-14 12:34:47 +00:00
sharmaswati6
8d6686ef54 Initial commit 2016-03-14 12:34:10 +00:00