Commit Graph

63 Commits

Author SHA1 Message Date
OpenDev Sysadmins 5fe333aee6 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:30 +00:00
Emilien Macchi d54150a1ad Retire openstack/puppet-tuskar
Tuskar is not maintained anymore.
Further maintenance should be done in stable branches, but master is no
longer supported.

Change-Id: I957ef8dc587086f32c918676a66dd8e247e50280
2016-01-05 16:31:24 -05:00
Emilien Macchi cb68e4142e Make Keystone_endpoint match service by name/type
Since a chance in puppet-keystone (1], we now match an endpoint with a
service name/type.
)
[1] http://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=0a4e06abb0f5b3f324464ff5219d2885816311ce

Change-Id: I09c80c1c9b816a4dc734a268010fe8569ca8ec03
Closes-Bug: #1528308
2015-12-22 18:13:20 +01:00
iberezovskiy c659683d0d Follow-up on PyMySQL support for Red Hat platforms
Rely on packaging dependencies to avoid issues caused by different
package names between Fedora and RHEL (python-PyMySQL vs python2-PyMySQL).

https://review.openstack.org/#/c/245229/4/spec/classes/neutron_db_spec.rb
includes all the discussion that led to this.

Change-Id: Ic8ec00e47b01bc2963018af7accc4a8a1eff8060
2015-12-02 21:17:55 +03:00
Jenkins d8f305967d Merge "Support of PyMySQL driver for MySQL backend" 2015-12-01 01:04:51 +00:00
Emilien Macchi 2c363a0351 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I5d24fd33e9ca7d56ece9b7268c3bb8a33e8792ee
2015-11-26 11:45:56 +01:00
Emilien Macchi 142c97b29e release: prepare 7.0.0 (liberty)
This patch prepares this Puppet module to be released in 7.x series (Liberty)
with 7.0.0.

Change-Id: I85cd1a56384bc8a1b744d7932a31620acb90e2a2
2015-11-25 23:49:18 +01:00
iberezovskiy 1d38418876 Support of PyMySQL driver for MySQL backend
Add ability to use python-pymysql library
as backend for MySQL connections.
Update acceptance tests to use pyMySQL.
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
The same implementation as it's done for keystone:
https://review.openstack.org/#/c/242134/

Change-Id: I669bec38286a863dab3e112e9442f2484bbe107c
2015-11-24 13:17:26 +03:00
Denis Egorenko 12849acc66 Switch Tuskar to $::os_service_default
Switch Tuskar params to $::os_service_default fact

Change-Id: I94dcec31f04937374d096ff732c872439580772b
Related-bug: #1515273
2015-11-18 12:45:33 +03:00
Gael Chamoulaud ff86811908 Remove class_parameter_defaults puppet-lint check
Change-Id: If2dddd67439509d0299a0f10b765916701e308e6
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-12 12:52:35 +01:00
Emilien Macchi 032bf6f264 Update rspec tests for keystone
https://review.openstack.org/#/c/228744/ has been merged, we need to
drop the 'tenant' parameter to Keystone_user resource.

Change-Id: Idaed260a9c1ad0c0e8400dd9ad4360ed0b39fbc6
2015-10-21 09:50:49 -04:00
Sebastien Badia 12fe6f37ec db: Use postgresql lib class for psycopg package
This patch introduce the same design than mysql for postgresql
by requiring dedicated lib::python class instead of declaring
a new resource package within tuskar module.

Change-Id: I374ee4ae7b3f6affc17f440e471d147414f4605a
2015-10-20 18:24:50 +02:00
Jenkins b897eca5c2 Merge "Introduce tuskar::db class" 2015-10-19 23:42:07 +00:00
Yanis Guenane 65c86d981a Update keystone::auth to match latest pattern.
Most of our modules allow deployers to specify public_url, internal_url
and admin_url.

Tuskar is still doing it the old way by making a deployer to specify
public_port, public_address and public_protocol. This commit aims to
bring tuskar keystone::auth class up to date with the other modules

Sources :

 * nova: https://raw.githubusercontent.com/openstack/puppet-nova/master/manifests/keystone/auth.pp
 * cinder: https://raw.githubusercontent.com/openstack/puppet-cinder/master/manifests/keystone/auth.pp

Change-Id: I6137858838708ced8089072b280ce419d5bb98f5
2015-10-14 14:56:46 +02:00
Yanis Guenane 2a8cc72684 Introduce tuskar::db class
Current modules[1][2][3] implements a
<component>::db class that is not implemented in tuskar.

This commit aims to apply here the same logic.

[1] https://github.com/openstack/puppet-nova/blob/master/manifests/db.pp
[2]
https://github.com/openstack/puppet-designate/blob/master/manifests/db.pp
[3]
https://github.com/openstack/puppet-ceilometer/blob/master/manifests/db.pp

Change-Id: Ifa44d3f4afb912b912526141111d8dda53caed0f
2015-10-12 15:16:31 +02:00
Jenkins 52120a9c64 Merge "Put all the logging related parameters to the logging class" 2015-10-12 12:12:10 +00:00
Emilien Macchi 79cb000d22 Try to use zuul-cloner to prepare fixtures
In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/install_modules_unit.sh script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: I154e5ab5623b932fc3c550f7969a39993f38a3cf
2015-10-08 15:21:50 -07:00
Yanis Guenane c4efae01d7 Put all the logging related parameters to the logging class
Currently logging configuration is splitted in two distinct classes,
the api.pp and the logging.pp classes. This review aims to centralize
all logging related parameters in a single class, the logging.pp one.

The impacted parameters are :

  * use_syslog
  * use_stderr
  * log_facility
  * verbose
  * debug
  * log_dir
  * log_file

This change remains backward compatible with what is currently in place.

Change-Id: I6e56123217a38c384734d31e60699f7b76f7dc4a
2015-10-01 09:44:32 +02:00
Jenkins e7799ac951 Merge "Initial msync run for all Puppet OpenStack modules" 2015-09-11 16:10:50 +00:00
Yanis Guenane 83692c25e2 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in tuskar_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

tuskar_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

tuskar_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  tuskar_config { 'DEFAULT/foo' : value => $myvar }
} else {
  tuskar_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

tuskar_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

tuskar_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: I177eee770243749d0c63b90e1d8581c7c92f8b4b
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:01:40 +02:00
Cody Herriges d713405828 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impacts:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
  - update tests in order to use zuul-cloner
* spec: added rspec coverage report

Change-Id: I8721d7649dca32e67f25e59665075a3ca2a5afb0
2015-08-18 14:36:09 +02:00
Yanis Guenane e5828de78b Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: If90d097129bad922511465345d577df37d84e78b
2015-08-12 19:28:03 +02:00
Yanis Guenane dd80631f4b Use openstack/ namespace for fixtures modules
When running the tests, rspec will download the modules speficied in
.fixtures.yml and put them in spec/fixtures/modules.

Some of those modules still point to stackforge/ namespace when they
should be pointing to openstack/ namespace.

Change-Id: I0c61b1b879b78787fe8158977d8cc7ceffea3df7
2015-08-11 14:58:44 +02:00
Jenkins b2875e2d67 Merge "Add tag to package and service resources" 2015-07-23 18:24:40 +00:00
Yanis Guenane 8dba39eefa Add tag to package and service resources
In order to be able to take an action after all the packages of the
module have been installed/updated or all the services have been
started/restarted, we set a 'tuskar-package' and 'tuskar-service'
tag for each package and service of this module.

At the moment, there is a generic openstack tag that is not specific
enough if one wants to take action upon a single module change.

Use case :

If an action needs to be taken after all the packages have been
installed or updated : Package <| tag == 'tuskar-package' |> -> X

Change-Id: Ie80cdb04a7b9d5adb87bf13ab1adee963adae6af
2015-07-22 21:41:38 +02:00
Gael Chamoulaud ba022a3e5a Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to'

Change-Id: I5d7f82e78cb94e26085a42b361c9bd6691770968
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-07-22 17:37:29 +02:00
Jenkins 2da6a5cbcd Merge "Add tuskar::config class" 2015-07-21 16:02:32 +00:00
Yanis Guenane 3a38b87b5f Add tuskar::config class
Other modules provide an X::config class to be able to specify
parameters that are not yet part of the module. Tuskar was missing this
feature. This commit aims to add it for puppet-tuskar.

Change-Id: I651657170d10b31c8280581adea2e19a8419eadd
2015-07-20 10:56:10 +02:00
Jenkins 9bec6c4066 Merge "keystone/auth: make service description configurable" 2015-07-14 19:40:04 +00:00
Emilien Macchi 09e2ced9be Prepare 6.0.0 release
Update CHANGELOG, README and metadata.json to bump the module to the
first Kilo release (6.0.0).

Change-Id: I0528895a92aa100e7d8e220bb3d4290d0c00cdeb
2015-07-09 10:29:02 -04:00
Jenkins 85a3991330 Merge "Change puppet to match tuskar packaging and code" 2015-06-29 22:20:56 +00:00
Xingchao Yu e7e38a77f4 Update README.md for project namespace change
Change-Id: I7d265475fbee4f58caeddb887130aa49f1b6b638
2015-06-28 20:20:21 +08:00
Colleen Murphy 7b7ec08494 Remove Release Notes section from README
When this module is released, the release notes will go in a separate
CHANGELOG.md file.

Change-Id: Id061b0b828cb7c1d3c3d558f68c8c9d93b693bb7
2015-06-26 18:16:14 -07:00
Sebastien Badia c058c29dc3 lint: Fix lint issues (missing documentation for define types)
The gem 'puppet-lint-param-docs' was bumped to 1.2.0 and now handle
class and define type. This patch fix lint issues (missing documentation).

Change-Id: I4c4445b9d0a73bb555d04601d07fd34d2f61a480
2015-06-25 11:41:35 +02:00
Sebastien Badia aefad7cc29 keystone/auth: make service description configurable
This commit adds the service description as a class parameter in order to allow
users to update from a previous version if the service description is changed
(incorrectly spelled or wrong description)

Change-Id: I490dfdc96254967aff0acd64bf4cb2648820fe49
Closes-Bug: #1468407
2015-06-24 17:49:12 +02:00
Jeremy Stanley d3da602940 Update .gitreview file for project rename
Change-Id: Id4e3e361c1c1b519057e54f3eaf6a32ef1968484
2015-06-12 23:12:30 +00:00
Brad P. Crochet c43da2d635 Change puppet to match tuskar packaging and code
* The database connection is just 'connection'
* Fix the Red Hat package names

Change-Id: I37751f5641345532717b69bba4772de48913f549
2015-04-29 08:42:28 -04:00
Sebastien Badia dd235c92a8 Fix spec tests for RSpec 3.x and Puppet 4.x
Rix resource array, according[1].
[1]https://github.com/puppetlabs/puppet/blob/3.7.5/lib/puppet/resource.rb#L446-L453

This patch also update RSpec 3.x matcher in order to remove deprecation
warnings (in units).

Change-Id: Ib05351a3897dfb6d8dc52f696b27440af40382bd
Closes-bug: #1447620
2015-04-28 03:25:17 +02:00
Emilien Macchi 0f435e71c2 Bump rspec-puppet to 2.1.0
rspec-puppet 2.1.0 includes Puppet 4.0 support [1].

[1] https://github.com/rodjek/rspec-puppet/commits/v2.1.0

Change-Id: I0e13e0b3c3cd286246ba73dae1bed91ec8868c0a
2015-04-23 00:01:51 -04:00
Emilien Macchi c29c2610a3 MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: I1116cb941e9e432edb6228950c2b0cb4b2790802
Closes-bug: #1446375
2015-04-22 15:28:01 +02:00
Sebastien Badia f23a640a12 Pin puppetlabs-concat to 1.2.1 in fixtures
Puppet Labs is in the process of releasing a 2.0.0 version of
puppetlabs-concat, which will have many breaking changes that affect
many dependent modules. Changes have been merged to master, but not yet
released. While we figure out what changes we need to make in our own
modules and wait for updates in dependent modules, we should just pin
to a stable version.

Change-Id: I66a152787e64ef780fd16311aebbb6c22ba0968b
2015-04-22 14:52:15 +02:00
Jenkins 8c28b3a40f Merge "Migrate postgresql backend to use openstacklib::db::postgresql" 2015-04-12 18:21:57 +00:00
Jenkins 6c0f2d6ada Merge "Fix db sync relationships" 2015-03-27 17:00:27 +00:00
Sebastien Badia fda22053b3 Migrate postgresql backend to use openstacklib::db::postgresql
Let migrate to the new openstacklib::db::postgresql helper for
postgresql backend. This commit also unpin postgresql fixture
(openstacklib support now the latest version of postgre module).

Change-Id: Ibf9bf074f1fb1712c0c5d70faa7d29a3b72bce29
Implements: blueprint commmon-openstack-database-resource
2015-03-21 14:39:18 +01:00
Jenkins ff63106551 Merge "Add UI support (+ UI extras)" 2015-03-20 14:33:54 +00:00
Emilien Macchi c56dbbce3d Add UI support (+ UI extras)
Implement tuskar::ui with:
* tuskar UI package
* optionaly and disabled by default, tuskar UI extras package
* allow to not manage the package

This patch also brings consistency with other modules/classes
in renaming ensure_package to package_ensure.

Change-Id: I8dd03dffbb2c36c7cdfc82681444cecb6e87021c
2015-03-20 09:47:10 -04:00
Jenkins 9f01e06442 Merge "fixtures: Unpin puppetlabs-mysql module" 2015-03-19 22:29:28 +00:00
Sebastien Badia 15f4810c06 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can
puppet-lint plugins. Most of these plugins are for 4.x compat, but
just catch common errors.

Change-Id: Ic7e3e5f2200c61760436d2c3b2f504e18248a15a
2015-02-25 05:12:22 +01:00
Sebastien Badia 7c18a413d3 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
order to be prepared for rspec 3.x move.

In details:

  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0

Change-Id: Ic9ac859be612f2afc5486340e5aa8eaf83473ab4
2015-02-25 05:09:33 +01:00
Sebastien Badia 5639796a41 Fix lint issues (doc, metadata, manifests)
Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix manifest lint issues
(due to puppet-lint upgrade) and metadata.json file (SPDX license,
and open dependencies).

Change-Id: I52d00d76c42a51bcc632c856754fa930ba18bcc1
2015-02-25 05:08:23 +01:00