Add docs environment to tox.ini

As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Add one.

Change-Id: I15c78a3c208820f041c9c3fa957aeb03eb7ab398
Fixes the swift loopback device creation for test setup.

If CONFIG_SWIFT_STORAGES stays blank, packstack should create one loopback
device for swift instead of two (/srv/node/swift_loopback and
/srv/node/swiftloopback).

Change-Id: Id961c4a284abf5b6a2a8d2fccdc0ea7ff498d4a0
Fixes: rhbz#1141125
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
Implement Swift storage backend for Glance

Change-Id: I3ed654c669a47c28450f40d1ce369769a7221e52
support other components using apache mod_wsgi

Keystone is moving to use apache mod_wsgi instead of standalone
eventlet daemon.  Packstack should support deployment of keystone
using this model.  A new command line switch --keystone-service-name
is added, and a new config parameter CONFIG_KEYSTONE_SERVICE_NAME
is added.  If this is set to 'httpd', keystone will be set up to use
apache mod_wsgi, otherwise, it will be a standalone eventlet service.

There is some common apache configuration that must be done by
every module that uses apache.  There is a new class in packstack
called packstack::apache_common.  Each component that uses apache
must call "include packstack::apache_common".  This ensures that
a subsequent component manifest will not wipe out apache
configuration created by a previous component manifest or the initial
apache configuration created by prescript.pp.

Change-Id: I73b853507dffb2540638182f3072e65e4d7ad485
Closes-Bug: #1348732
Fixes the duplicate creation of service/endpoint for cinder v2.

Change-Id: Ice1166b3af5685b8dcbc83dcb0b021a7530aa4cd
Fixes: rhbz#1153354
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
Configure chronyd for RHEL 7/CentOS 7/Fedora

The default NTP client for Fedora and RHEL 7 is chrony, instead of
ntpd. Configuring ntpd for systems where chrony is installed leads
to some issues, so the proposed patch will properly configure
chrony on RHEL 7, CentOS 7 and Fedora, while keeping ntpd for
earlier releases.

Change-Id: Ifd59f67909094327cbed280767292a45b542da2a
Merge "Implement Swift storage backend for Glance"
Merge "Configure chronyd for RHEL 7/CentOS 7/Fedora"
Merge "Fixes the duplicate creation of service/endpoint for cinder v2."
Generate answer file only when needed

Change Ic5947567599c8b221b7a9e60acb4708429507741 introduced some
modifications on the way the answer file was generated. This
results in an answer file being generated even if the user
specified --answer-file as a parameter. This patch fixes that by
not generating an answer file when --answer-file is specified.

Change-Id: I52e59d45a4b63a2f1ed70a154bca6b705ed435d2
Grammar tweak

Change-Id: I67117abbc6f0f83d7ac28c7f59c89a535d4a4ac7
Revert "Adds Warning when NetworkManager is active on hosts"

This reverts commit 2faa9a2cb616615f189a7ed6a7eade9a9f12c0e6.

Fixes: rhbz#1117277
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>

Conflicts:
	packstack/plugins/neutron_350.py

Change-Id: I12fb82607b6dedf429954325b31aac0148fd1092
Remove firewalld workaround as it should be part of puppet-firewall now

Change-Id: Idbf62b7433d2f3587562c5a3556fd765aaa04aef
Fix Neutron FWaaS configuration

The Neutron FWaaS driver was always loaded, even if
CONFIG_NEUTRON_FWAAS was set to "n". This, and the fact that it
was configured after the L3 agent was started, caused
neutron-l3-agent to be down after Packstack execution. This patch
fixes it by setting the right configuration order and making sure
the driver is only configured if needed.

Change-Id: Idc37f53d64ddf5e08e3229be9241bae2f8ac9e67
Merge "Remove firewalld workaround as it should be part of puppet-firewall now"
Switch packstack o-p-m branch to master-patches

The o-p-m master-patches branch contains rpm released master version of
o-p-m plus rpm patches applied to it ensuring that packstack will work
with it as in some cases master o-p-m is unusable for packstack.

Change-Id: Ib4e642bb96de1d87a5d36c20d5e2d4e2650353be
Merge "support other components using apache mod_wsgi"
Adds Hiera implementation within Packstack

Packstack configures Hiera as data backend. Packstack puppet templates are now
using hiera() and hiera_array() functions to fetch data from hiera backend.

Packstack generates a defaults.yaml file in the /var/tmp/packstack directory.

Firewall rules for each openstack components are inserted into the hiera
backend as hash and created by the create_resources function.

Change-Id: Iab553a71264b0fc0f26d33a6304b545ad302f664
Fixes: rhbz#1145223
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
Always enable EPEL repo when installing RDO

The EPEL repository is a requirement for RDO installation. This
requirement was previously handled by a downstream patch on the
package changing the default value of CONFIG_USE_EPEL, but this is
complex to maintain. This patch overrides the specified value of
CONFIG_USE_EPEL when RDO is being installed, while respecting it
for other distributions.

Change-Id: I393128333abacc841bf32adcf104d4635f616539
Check for puppet execution errors

If the puppet package is installed, but puppet fails to execute
due to some unforeseen reason (e.g. not having execution
permissions), Packstack will silently ignore the issue. Fixing
that.

Change-Id: I530e83413feca175f2579239362f6afaa8434bf3
Fixes: bz#1153296