8 Commits

Author SHA1 Message Date
Kevin Carter
7c6e1260fe Updated ansible to use the latest stable release
This change was made to improve ansible stability and speed.
Additionally this change comes with the now upstream lxc-container
module which will allow us to drop our carried module. In dropping
the module the entry point was changed from `lxc-container:` to
`lxc_container:`. All of the entry points have been changed in
support of the new upstream module and the carried `lxc-container`
module has been removed.

Partially Implements Blueprint: master-kilofication
Partial-Bug: 1399373

Change-Id: I4709eb78f153afc213225ea973570efa2e873993
2015-04-08 08:29:53 +01:00
Matt Thompson
8bd358d2c2 Fix bug in playbooks/library/neutron
This change updates _add_router_interface to list ports for the router
device only, and not for all devices.  As we select specific device
ports only, we no longer need to skip over other device's ports, and
this indirectly fixes a bug where we were using 'next' instead of
'continue' to skip to the next iteration of the for loop.

Change-Id: I892dc0f58f1d8bbb7ebd46f7790c5420c4c8b94b
Closes-Bug: #1439295
2015-04-02 11:47:44 +01:00
Jenkins
f337712e0a Merge "Add support for passing api version to glance module" 2015-03-31 13:41:14 +00:00
Darren Birkett
53cc76b15e Add support for passing api version to glance module
Glance API version 1 is deprecated as of kilo.  If we want to support
v2 moving forward, we should add support for passing a version in to
the glance module, and alter the module to take appropriate action
depending whether we are using v1 or v2.  This commit does that, defaulting to 1 to keep
compatibility with current code in master.

Change-Id: Iac9dcd3f5fdf1cfacde3e9cb10cb1aa2b72500a8
Closes-Bug: 1435808
2015-03-26 12:01:45 +00:00
Kevin Carter
d31e0f69c2 Adds new provider_networks module and reformats ml2_conf.ini
The ml2_conf.ini has been reformatted to work with the new data type
provided from the `provider_networks` module.

The new module parses and provides useful information from the
`provider_network` list as found within the base user config. The data
type has been documented within the defaults so that it can be used in
the role as stand alone, outside that of the OSAD project. The module
replaces functionality found in top of the ml2_conf.ini file that was
built using jinja2 syntax and flow control. The purpose is to allow
for more configuration possibilities while also being faster.

Closes-Bug: 1434942
Change-Id: If48267ba6f552eaf1535b8ecee6d26b2c6592b31
2015-03-24 15:07:28 +00:00
Dolph Mathews
903e7b3d0d Do not assume users have names
This should be a safe assumption, but hughsaunders ran into a deployment
where a small subset of users (backed by AD) were configured with:

    [ldap]
    user_name_attribute = sAMAccountName

Where sAMAccountName happens to be an optional attribute in some LDAP
systems, resulting in those users not having "name" attributes available
via Keystone's API.

closes-bug: 1431942

Change-Id: Ic69e571c71fd462c65791800eaaa474917dec2ef
2015-03-13 16:10:03 +00:00
Kevin Carter
8e6dbd01c9 Convert existing roles into galaxy roles
This change implements the blueprint to convert all roles and plays into
a more generic setup, following upstream ansible best practices.

Items Changed:
* All tasks have tags.
* All roles use namespaced variables.
* All redundant tasks within a given play and role have been removed.
* All of the repetitive plays have been removed in-favor of a more
  simplistic approach. This change duplicates code within the roles but
  ensures that the roles only ever run within their own scope.
* All roles have been built using an ansible galaxy syntax.
* The `*requirement.txt` files have been reformatted follow upstream
  Openstack practices.
* Dynamically generated inventory is now more organized, this should assist
  anyone who may want or need to dive into the JSON blob that is created.
  In the inventory a properties field is used for items that customize containers
  within the inventory.
* The environment map has been modified to support additional host groups to
  enable the seperation of infrastructure pieces. While the old infra_hosts group
  will still work this change allows for groups to be divided up into seperate
  chunks; eg: deployment of a swift only stack.
* The LXC logic now exists within the plays.
* etc/openstack_deploy/user_variables.yml has all password/token
  variables extracted into the separate file
  etc/openstack_deploy/user_secrets.yml in order to allow seperate
  security settings on that file.

Items Excised:
* All of the roles have had the LXC logic removed from within them which
  should allow roles to be consumed outside of the `os-ansible-deployment`
  reference architecture.

Note:
* the directory rpc_deployment still exists and is presently pointed at plays
  containing a deprecation warning instructing the user to move to the standard
  playbooks directory.
* While all of the rackspace specific components and variables have been removed
  and or were refactored the repository still relies on an upstream mirror of
  Openstack built python files and container images. This upstream mirror is hosted
  at rackspace at "http://rpc-repo.rackspace.com" though this is
  not locked to and or tied to rackspace specific installations. This repository
  contains all of the needed code to create and/or clone your own mirror.

DocImpact
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Closes-Bug: #1403676
Implements: blueprint galaxy-roles
Change-Id: I03df3328b7655f0cc9e43ba83b02623d038d214e
2015-02-18 10:56:25 +00:00
Jesse Pretorius
81c4ab04f7 Remove and/or rename Rackspace related bits
This patch removes and/or renames anything that is Rackspace specific
from the playbooks, roles and variables.

It also removes items which appear to be orphaned/unused and flattens
the playbooks into a single directory in order to better match ansible
best practise (and remove some horrible fiddles we were doing).

The following have been removed due to RAX/RPC naming or RAX/RPC
specific usage:
 - playbooks/monitoring
 - playbooks/rax*
 - playbooks/rpc*
 - roles/maas*
 - roles/rax*
 - roles/rpc*
 - scripts/f5-*
 - scripts/maas*
 - scripts/rpc*
 - scripts/*lab*
 - vars/repo_packages/rackspace*
 - vars/repo_packages/rax*
 - vars/repo_packages/rpc*
 - vars/repo_packages/holland.yml

The following have been removed as they are unused:
 - playbooks/setup/host-network-setup.yml
 - roles/openssl_pem_request
 - roles/host_interfaces
 - scripts/elsa*
 - ssh/
 - vars/repo_packages/turbolift.yml

The following directories have been renamed:
 - etc/rpc_deploy > etc/openstack_deploy
 - rpc_deployment > playbooks

The playbooks have all been moved into a single directory:
 - rpc_deployment/playbooks/infrastructure/* > playbooks/
 - rpc_deployment/playbooks/openstack/* > playbooks/
 - rpc_deployment/playbooks/setup/* > playbooks/

The following files have been renamed:
 - lxc-rpc > lxc-openstack
 - lxc-rpc.conf > lxc-openstack.conf
 - rpc_environment > openstack_environment
 - rpc_release > openstack_release (etc and pip)
 - rpc_tempest_gate.sh > openstack_tempest_gate.sh
 - rpc_user_config > openstack_user_config

The following variables have been renamed:
 - rpc_release > openstack_release
 - rpc_repo_url > openstack_repo_url

The following variables have been introduced:
 - openstack_code_name: The code name of the upstream OpenStack release
   (eg: Juno)

Notable variable/template value changes:
 - rabbit_cluster_name: rpc > openstack
 - wsrep_cluster_name: rpc_galera_cluster > openstack_galera_cluster

DocImpact
Closes-Bug: #1403676
Implements: blueprint rackspace-namesake
Change-Id: Ib480fdad500b03c7cb90684aa444da9946ba8032
2015-02-13 18:03:54 +00:00