Commit Graph

29 Commits

Author SHA1 Message Date
Takashi Kajinami da45ce8a21 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib395d70d0d528adfef6600f67f9cd6bb238f8206
2023-03-02 11:31:36 +09:00
Takashi Kajinami e5cc108c00 Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp .

Change-Id: I4fc49eab447ef2b7e4f0d6cbd75f193cff7719b9
2022-02-20 19:39:47 +09:00
Thomas Goirand 131476ca2b Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: Ie5052433ff584d75fcf58c0058f16a05dc97eeaa
2021-05-21 11:22:52 +02:00
Tobias Urdin 5f6411c3dd Convert all class usage to relative names
Change-Id: I9982b8476ca9dab8a338b66db75d6da6519f9266
2019-12-08 23:07:36 +01:00
Lee Yarwood 01ac308d05 Inherit pyvers from openstacklib::defaults
Depends-On: I84b767921d151a61429b2c89e6372c4b447f0d7d
Change-Id: Ic5c4a5e5c50fb0058be94b3ee2ed9ceccb3eafdf
2019-01-17 15:56:35 +01:00
ZhongShengping 2aae92434d Fix lint
The libraries jobs fails with:
manifests/params.pp:9:ERROR: two-space soft tabs not used

Change-Id: Iaab72bda1bddfb59b77a1eb1e70c4ba23a932b1f
Closes-Bug: #1806790
2018-12-12 08:42:34 +08:00
yatin 04df873aa2 Install python3-heatclient in Fedora or RedHat > 7
Fedora repo [1] has python3 packages, start consuming those.

[1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/

Change-Id: If89eabfb81f5347b6343ecbb3378ba19fb470603
2018-10-26 17:18:14 +05:30
Thomas Goirand da6e5c65a8 Debian is using Python 3
Change-Id: I115e40289781801f40a5cf489e2cc1a43a35da1c
2018-04-10 11:52:40 +02:00
rabi a17104c6ad Remove support for heat-api-cloudwatch service
In 6d55417f80384ead56e176beec9e2fc4eb162d61 cloudwatch api
has been removed from heat.

Change-Id: I155c92edd5d6959ac23d99804fd95dfb99c7042e
2018-02-06 09:51:36 +05:30
Emilien Macchi fd952e2a84 Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: I748ed0cba392d783e75b2cf16833a687d6152a22
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-11 15:54:59 +00:00
Juan Antonio Osorio Robles fe394add6f Add manifests to deploy APIs over httpd
This includes a resource that will generically create the vhost for
the specified API.

Co-Authored-By: Thomas Herve <therve@redhat.com>
Depends-On: I9a9246522810de546a7c460ab1133d6bf9081a15
Change-Id: I253f46f5ad943971dd9ea6995591c72a36953bdb
2017-03-02 14:15:18 +02:00
ZhongShengping d727cf872f Fix common options position in params.pp
These parameters are common for both systems,
they could be moved out from 'case'.

Change-Id: Ic07c62593d63190b523efcc3f020cba12b5001f3
2016-11-08 10:05:42 +08:00
Xingchao Yu a6a860106b Align equals in heat::params
Change-Id: Ia94cd822715bf75b9eebb876e17d0b05fdf0da50
2016-11-04 12:32:26 +08:00
Sofer Athlan-Guyot 54dea6345e Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: I904746113accb61943604d34b783167149992561
Related-Bug: 1599113
2016-07-08 08:56:27 +00:00
dmburmistrov b63840b482 Purge redundant database configuration
* this logic is already applyed by oslo::db
* remove duplicated code
* purge unused params
* update tests

Change-Id: Icbfd98e57ff1af3f9c5f7c37012e2f5d8685eb1e
2016-04-12 20:46:21 +03:00
Jenkins 057649984a Merge "Support of PyMySQL driver for MySQL backend" 2015-12-15 10:30:33 +00:00
Javier Pena f70d5d5f31 Support of PyMySQL driver for MySQL backend
Add the ability to use python-pymysql library as backend for MySQL
connections.

Update acceptance tests to use pyMySQL.

Change-Id: Id27afb52428a50ec889e8ae77f3509e1ca956538
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
2015-12-03 10:11:31 +01:00
Nate Potter 4d4430efd6 Allow customization of db sync command line
Add parameter to heat::db::sync to allow end
users to add command line parameters to the db sync command.

Change-Id: Id9de1022481fbeedc3db78a3dd2e3c5f2a962e10
Partial-bug: #1472740
2015-11-19 15:18:27 +00:00
Sebastien Badia 0be4a41486 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 heat module.

Change-Id: I386e61054e84b14d25afebb4aa415ab2b6161a57
2015-10-20 16:27:14 +02:00
Yanis Guenane fb4486166a Introduce heat::db class
Current modules[1][2][3] implements a
<component>::db class that is not implemented in heat.
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: I922260265d110d5823c546813ee125400ecc183d
2015-10-14 09:34:58 +02:00
Gael Chamoulaud 45a35dc2ec Add puppet-lint-param-docs plugins to puppet-lint
- This puppet-lint plugin checks if all parameters are documented
- Fix some unaligned arrows
- https://github.com/domcleal/puppet-lint-param-docs

Change-Id: I5e73747b726191bc4fc55e6e227892507e185871
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-11-13 12:42:40 +01:00
Florian Haas 5c978d82ef params.pp: correctly define client_package_name
Leaving this unset leads to problematic consequences if another
module does the same, as both would alias the package to nil.

node bob {
  include heat::client
  include neutron::client
}

Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:
Cannot alias Package[python-neutronclient] to [nil] at
/etc/puppet/modules/neutron/manifests/client.pp:20; resource
["Package", nil] already declared at
/etc/puppet/modules/heat/manifests/client.pp:17 at
/etc/puppet/modules/neutron/manifests/client.pp:20 on node bob
Warning: Not using cache on failed catalog Error: Could not retrieve
catalog; skipping run

Change-Id: Ib0ae86d7ff406039f4b361a65c2e092d2a321a77
2013-10-17 12:38:04 +02:00
Francesco Vollero 67f0661443 Enable execution of heat-manage db_sync
This patch is aiming to correct a fault in puppet-heat that was not
executing the heat-manage db_sync that was making this module in the
end not fully working.

At this stage there are no tests to support this change but I am
willing to add those in a later commit.

This patch it's been rebased according to this change: https://review.openstack.org/46227

This new patchset include a patch from Sebastien Badia and should
make all the tests green with Change id: I2aa8fc070e5f5ee18040200e4a5b4f6161550280

Change-Id: Ib7731ab429ea92947f52bcf015facc8864466586
2013-09-26 17:08:37 +02:00
Francesco Vollero ac80ddbf6f Changes to make it work with Fedora 2013-07-22 18:13:55 +02:00
Émilien Macchi a7e8f56feb Drop db-sync stuff 2013-06-09 23:06:40 +02:00
Émilien Macchi 2811170e94 Update dbsync class 2013-06-02 04:35:00 +02:00
Émilien Macchi 2372b65dff Fix typo in params 2013-05-30 22:59:10 +02:00
Émilien Macchi 328263a8fe Update manifest params 2013-05-30 22:36:07 +02:00
Émilien Macchi 2e240569ef Basic manifests 2013-05-30 17:44:13 +02:00