Commit Graph

16 Commits

Author SHA1 Message Date
Javier Pena cecc30af5d Fix database configuration for remote MariaDB setups
This seems to have been broken for a long time, when
CONFIG_MARIADB_INSTALL is set to 'n' we where not setting the
CONFIG_MARIADB_HOST_URL correctly.

Change-Id: I5ad131ec76eb3dad3adcba78ccee60524efc3bf3
Partial-Bug: #1689255
2017-05-09 19:06:08 +02:00
Javier Pena 4587b9b4d3 Refactor manifest execution
Previously, Packstack created many individual manifest files from
smaller snippets (templates), and executed them following a certain
order. This is sub-optimal, since it forces code duplication and goes
against the Puppet design of running a single manifest.

This patch refactors the manifest execution, following these principles:

- Only 3 templates used, so max 3 Puppet executions on a host: controller
  manifest, network node manifest, compute node manifest.

- The previous snippets are now part of the Packstack Puppet module, and
  included as needed by the controller/network/compute manifests. This
  concept is similar to the one used by the puppet-openstack-integration
  project [1].

- The remaining Python code is left untouched, so we can keep complete
  compatibility with previous answer files.

- Redis HA support has been removed, as this was the only service with
  HA enabled and didn't fit the general purpose of Packstack.

[1] - https://github.com/openstack/puppet-openstack-integration

Change-Id: I87591be0fce98079c85c5c12ad76ea7115fb9c75
2016-06-22 12:50:40 +02:00
Alfredo Moralejo 65d8c3311b Gnocchi DB is skipped if ceilometer is disabled
When CONFIG_CEILOMETER_INSTALL is set to n, installation
of gnocchi is disabled but packstack tries to create the
database and fails. This patch disables the creation of
gnocchi db if ceilometer installation is disabled.

Change-Id: Ic2115bef15d1cc980c89fe6518b3120faa41cfca
2016-04-25 17:02:33 +00:00
Pradeep Kilambi 1a519c733a Add gnocchi support to packstack
Change-Id: I215ff6dc678642c356712ef0f7cedab323c141af
2016-02-10 11:44:57 -05:00
Lukas Bezdicka aa45027939 [Packstack] enchange ipv6 support
We should support ipv6 or ipv4 only installation and we should
set firewall according to ip version.

Resolves-Bug: rhbz#1185652
Change-Id: I7bacf81373a6e0567e0c3fdebacf47cd5c683ad2
2015-04-15 09:17:48 +02:00
Martin Mágr 9a347f80d5 Single source of documentation
This patch adds feature for parsing docs/packstack.rst file for parameter
USAGE values.

Change-Id: Iea404e8ade657e82ac1e33ad3697180680c3633e
Closes-bug: rhbz#1199847
2015-03-30 12:37:51 +02:00
Ryan Hefner 72690e0b3c Enable Manila in Packstack
Enables the configuration of the Manila File Share
Service in Packstack. Uses the puppet-manila module
for installation and configuration.

Change-Id: I4509c9fbdc9317e03b32964b7b02672439e306fc
2015-02-19 11:35:02 -05:00
Christian Berendt d7916cec60 Enable PEP8 checks H102, H232, H233, H301, H904
* H102  Apache 2.0 license header not found
* H232  Python 3.x incompatible octal xxx should be written as 0oxxx
* H233  Python 3.x incompatible use of print operator
* H301  one import per line
* H904  Wrap long lines in parentheses instead of a backslash

Change-Id: I07003acb76eaa719daabc451239067494efa2bba
2015-02-02 10:45:44 +01:00
Ryan Hallisey 8d2b33cddc Ironic support for packstack
Ironic is currently not a supported plugin for packstack.
This patch will create the Ironic plugin.

Change-Id: Ia4a239beaf2609bd11cfc35f29527f53c0d6c9f2
2014-12-19 15:14:21 +01:00
Solly Ross ab47974d48 Trove Support
This commit adds support for Trove to Packstack.

Change-Id: I8a4c00099da3f78f44a7fd25c094a42fa54bb447
2014-12-19 13:57:12 +00:00
Robbie Harwood (frozencemetery) 2edd3aeba8 Sahara support to Packstack in time for Juno
Change-Id: Ic5381aede97d03d79151700afa3257ae8b1fd277
2014-12-18 09:15:01 -05:00
Christian Berendt ebed2e6b92 Remove Puppet templates endings when calling getManifestTemplate
getManifestTemplate sets the default template ending 'pp' when not set
in the filename. It is not longer necessary to use the default template
ending when calling getManifestTemplate.

Change-Id: Ie0c487eef6196fe6276694d7973e943d42a59ae9
2014-12-15 17:07:48 +01:00
Gael Chamoulaud 3da12069ef Packstack Plugins Clean-up
- Deleted unused import
- Pep8 compliance
- Deleted unused variables

Change-Id: I45f135b2467427cd7ee3b5ba32745af2a631458a
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-12-02 09:13:02 +01:00
Gael Chamoulaud 219cf98b4f 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>
2014-10-27 14:49:09 +01:00
Javier Pena 512bdce979 Allow specifying of a global --password option
This fixes bz#1108742 by providing a new global parameter
"--default-password", that will be the default for all other password
parameters if set. Each individual password parameter can override the
default global, and if none are set, a random password will be used as
before.

As part of the change, process_param_value() has been updated, to avoid
leaking passwords when they are modified by a processor function.

Change-Id: Ic5947567599c8b221b7a9e60acb4708429507741
2014-09-24 12:05:31 +02:00
Ivan Chavero dc9902f487 Deprecates MySQL parameters in favor of MariaDB
Change-Id: I7723b1df6a5f8fc12b86763a57042db29358a522
Fixes: rhbz#1102486
2014-09-08 11:56:24 +02:00