10 Commits

Author SHA1 Message Date
Gael Chamoulaud
0ddd0067a1 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.

Related-bug: #1515273
Change-Id: I76f51876e78015db722ff0fc37f6bcd76fd651f2
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-12-15 14:38:42 +01:00
Gael Chamoulaud
340f2c0fef Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to'

Change-Id: I43ca50197fc36abf7ea80b9dcd02e91642da445c
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-11 15:05:37 +02:00
Jenkins
b3be8c5f78 Merge "Add tag to package and service resources" 2015-07-27 13:07:02 +00:00
Yanis Guenane
c9966f7d97 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 'trove-package' and 'trove-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 == 'trove-package' |> -> X

Change-Id: I969fbe7405a3eb3fab5437293c0efe1da57c631c
2015-07-22 21:36:10 +02:00
Xingchao Yu
0e3faace3c Add region and resource url related options
This patch is aim to add region and url related options in trove.conf:
  - os_region_name
  - nova_compute_service_type
  - cinder_service_type
  - swift_service_type
  - heat_service_type
  - neutron_service_type
  - neutron_url

Closes-Bug: #1473280
Change-Id: Id9b57351b0fc3c81565310f4ce6ae2b8aa2564f2
2015-07-20 09:59:59 +08:00
Martin Mágr
16e82e68ea CentOS 7 compatibility
This patch fixes:
  - invalid client package name for RH platform
  - missing common package installation in init.pp
  - package/group/directory creation order for CentOS,
    but leaves invalid order for Ubuntu because without
    it is not installable (see bug #1365561)
  - exists_notification_transformer is disabled
    to workaround bug #1402055

Change-Id: I4354fb3a1e3f075070fa492420017b94241b3f60
2015-05-22 10:15:57 -07:00
Sebastien Badia
53d51d8f35 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 new
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax in
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: I6e85576823fc93ac0b7a7dff06032d71682259ad
2015-02-25 05:15:02 +01:00
Sylvain Baubeau
34fe5b8a0f Allow specifying Nova, Cinder and Swift endpoints
In Icehouse, Trove wasn't able to query Keystone for the
endpoints for those services yet, they had to be set in the
configuration files.

Change-Id: Ia4464652e0e4b05e89011295855de0bfc5be1be1
2014-08-29 14:06:44 +02:00
Emilien Macchi
5e7fa92465 move nova_proxy_admin_* to init class
Since the parameters are used on other class, it's smarter to have them
on init class to just reuse them.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-07-03 15:12:38 +02:00
Emilien Macchi
a2c37013df Introduce init class
For now, init class only load params from trove::params.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2014-07-02 11:17:21 +02:00