Commit Graph

39 Commits

Author SHA1 Message Date
Ghanshyam Mann ea238dc447 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: Ie74b00de70c5ce8180b1d6b06394572ef8025f34
2024-02-19 16:52:22 +00:00
Lance Albertson 111d3621a9 Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Additional fixes:
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Remove hack for restarting apache.
- Convert web_app to template and subscribe to restarting apache.
- Remove resources to restore SELinux contexts since this taken care of
  by Chef now automatically.
- Don't set SELinux to permissive on RHEL (I tested this works properly
  with it set to enforcing).
- Remove collector recipe as this service has been deprecated upstream.
- Add openstack-ceilometer-notification package for RHEL in
  agent_notification_packages as it was missing.
- Fix gnocchi-api_wsgi_and aodh-api_wsgi_file file on RHEL
- Remove openstack-aodh package in aodh_packages for RHEL as it does not
  exist
- Clean up arrays in attributes using %w(foo) instead of ['foo']
- Set group for upgrade scripts so it can read files properly on RHEL
- Add missing ChefSpec tests for aodh
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ie7e6d792a764314775c40d4489cfba05d5c483ce
2020-01-30 09:31:59 -08:00
Lance Albertson 2e36b048fc Manage /etc/ceilometer/polling.yaml
This adds management of /etc/ceilometer/polling.yaml which defines which metrics
to poll and how often. This pulls in the default configuration which the same
for both RHEL and Ubuntu and adds two new attributes for configuring the file.

In addition, restart various services related to the configuration file.

Change-Id: I69ed0a8933a971d9cac20dbd4133197a7e4274af
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-19 09:47:54 +00:00
Lance Albertson e416ba5d72 Allow ability to configure pipeline publishers
This adds a template for managing the pipeline.yaml file which allows one to
configure the pipeline publishers such as gnocchi or prometheus. The template
file was taken from the latest Rocky tarball for ceilometer.

Change-Id: I938219bfdcfa69a910cae4b72a40c19d5124d99e
2019-11-05 19:12:05 -08:00
Samuel Cassiba 128e66eb4b Corrects Ceilometer installation, fixes typo
- corrects deamon_process to daemon_process
- removes duplicate Listen directive in wsgi-template.conf.erb that gets
  emitted in ports.conf that the apache2 cookbook lays down
- adds a run directory for ceilometer api socket

Change-Id: Ia369a50e42453428b0c572659b0c4078920e9890
2017-03-06 18:09:03 -08:00
Christoph Albers b33c0ca574 Ceilometer-api / Gnocchi-api WSGI refactor
- now using wsgi apps for both apis
- bumped gnocchi package version due to python-openssl bugs

Change-Id: I63636ca8c08660f44433e701c55e1e0e7db5465f
2016-12-09 10:01:43 +00:00
Jan Klare faceb7e6e0 initial refactoring step and addition of gnocchi
* applied new template logic and refactored all recipes accordingly
* removed vmware and suse support and specs
* removed alarm ceilometer-alarm notifier and evaluator (needs to be rewritten
  for aodh)
* added recipe for telemetry-metric/gnocchi deployment
* set gnocchi as default dispatcher for ceilometer
* added initial specs for gnocchi recipes

Depends-On: I22114b6d2d46cce561a2f292b92ff5f531cff533
Change-Id: If513cb2715d8266845bd6541d12005edef70f11c
2016-06-20 17:50:16 +02:00
Yi Ming Yin 76ba93e362 Change os_auth_url to use identity_endpoint in conf template
Current template ceilometer.conf.erb is using auth_uri for os_auth_url
which is not a correct approach. This auth_uri is dedicated to be used
by auth_uri under section [keystone_authtoken]. On the other hand, the
passed in identity_endpoint param is not used. Actually, by comparison
with other cookbooks, identity_endpoint should be used for keystone
identity service connection.

Change-Id: I50c631000efe9c82cd83723c1bf9a7c6ef54556c
Closes-bug: #1479399
2015-07-30 13:07:06 +08:00
Mark Vanderwiel df5bec0b0a Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I720aea02ea26d7a64aeb5c92575a7a6f77458918
Partial-Bug: 1464706
2015-06-16 10:55:41 -05:00
Mark Vanderwiel 430f5f7466 Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: I02faeba2c10d9c9b8035819156bfdc0759bafcc6
Partial-Bug: #1462438
2015-06-15 03:06:49 +00:00
wenchma ff2d6f597d Add rabbitmq max_retries and retry_interval attributes in ceilometer conf
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Change-Id: I1fd9d4840a55453667eb2ed4c03e4c3cb72442b9
Closes-bug: #1439968
2015-06-12 15:14:47 +08:00
wenchma ee190da9e9 Update the deprecated group/name to Kilo release
For Kilo release, there are many deprecated group/name in conf files of openstack,
so we need to change the deprecated group/name to new group/name.

blueprint conf-section-update-for-kilo
Closes-bug: #1436170

Change-Id: Icf361d2132553bbc20b517c8b08f6df2d069e8bb
2015-06-03 10:16:39 +08:00
Jenkins 2409c9b9d7 Merge "Use identity_uri_transform for identiry_uri support" 2015-04-16 21:29:24 +00:00
lqslan 4e83133835 Enable store_events parameter in notification service
Change-Id: I0075ece1afba2bfdf5cb422249a6f0d9072393ab
2015-04-07 23:28:14 +08:00
Mark Vanderwiel fe9acf1d3e Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Change-Id: Ibd21f81607f5ef1b02e07e4da3e5ea306f7d6f8b
Implements: blueprint identity-uri
2015-04-06 17:10:09 +00:00
wenchma a0f139ec26 Enable kombu_ssl_version configuration for Rabbitmq SSL
Change-Id: I33d85308ea27634d477058cb7548d15fa3d60697
Closes-bug: #1433405
2015-04-02 10:01:37 +00:00
root 5feb714c32 Introducing ttl to openstack-telemetry
ttl is the time_to_live value that will be configured against database. This value
indicates the expiry time for ceilometer samples

Implements: bluerprint ceilometer-db-cleanup-configuration

Change-Id: I1c207e15ec0ca23c2fbd0db10842e600e71d69df
2015-03-24 15:15:21 +00:00
ZHU ZHU 67e3279071 Add rabbit HA configurations
This commit will add the rabbit HA related two configurations:
 - rabbit_hosts
 - rabbit_ha_queues

Change-Id: I85c329778de7baf138ec860e09f7e1572ad4c19a
2014-10-25 08:15:53 -05:00
chenxiao 7a188bf3b1 Allow ceilometer auth settings to be configurable
This patch is for allowing cafile, os_cacert, insecure,
memcached_servers, memcache_security_strategy,
memcache_secret_key and hash_algorithms to be
configurable.

Change-Id: I4d8f94195a75f590849e5a1ea948a3837cdf38a0
Closes-Bug: #1372371
2014-09-23 10:21:34 +08:00
Mark Vanderwiel a689c6741c Set os_region_name with ceilometer region
Change-Id: Ia4b73df9380d4dbc5038428adf340ecdae601c69
Closes-Bug: #1357461
2014-08-15 11:56:56 -05:00
Mark Vanderwiel 6366bb9f08 Update ceilometer conf files for Juno
* Update conf
  - remove paste filter, handled in paste.ini
* Update specs as needed

Change-Id: Ie275475490caec0ab1d08b7f39dc195b269b7592
Closes-Bug: #1353047
2014-08-05 15:01:25 -05:00
gengjh 4529146a83 Support VMware hypervisor inspector
1. If the compute driver is vmwareapi.VMwareESXDriver or
vmwareapi.VMwareVCDriver, set the hypervisor_inspector to vsphere and
add vmware section in conf file.
2. Reuse the vmware related attribute from compute cookbooks since
ceilometer need monitor the same vsphere.
3. Update the testcases

Closes-Bug: #1351619
Change-Id: Ie67e84e5695bd5f9ceaa6ed6682cfe33f7ed0b68
2014-08-04 09:28:36 +08:00
hill 869ca9824b Add attribute sample_source
The sample_source is used to specific the source name of emitted
samples.It required to use different name if you want to consolidate
the data from different openstack region.
Changed the version to 9.1.2 and modified the change log and readme.

Change-Id: I0c2e0b6d651ad6c4daf724041014582b31337073
2014-07-04 18:13:03 +08:00
Matt Odden d3d61e474f Add missing AMQP options to ceilometer.conf
Add more AMQP and QPID configuration options
to the ceilometer configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I7cf1230cadf41313cd505bf8d89509c9f064e0e3
2014-06-18 19:49:16 +00:00
Darren Birkett 0d04a07734 Add ability to specify api host/port in config file
Add the ability to override the default listen IP/port for the api
service in the config file.
Use the ['telemetry-api-bind'] namespace to derive these values

Implements blueprint increase-ip-binding-flexibility

Change-Id: Ia51bd1b760563f06ed36ec8190f36f4e03a79695
2014-04-25 16:07:21 +01:00
Luis A. Garcia 1468086891 Remove deprecated database_connection property
Instead use the new 'connection' property under the [database] group.

Change-Id: I4879803d38db954ef1d57777dd9be8545eb03769
2014-04-14 10:39:47 -07:00
Quan Guo 8aded3d41a Add hypervisor_inspector in ceilometer.conf
Add hypervisor_inspector configuration in ceilometer.conf, it's necessary
in some cases, for example, if we want to use this cookbook's template to
support installation of ceilometer agent on windows platform.

Change-Id: Ie42eb3d055ff1dbc3944adb18777073044983ed4
Closes-Bug: #1300080
2014-04-02 10:14:05 +08:00
ericzhou d1224c445b Add metering_secret configuration to ceilometer.conf.
Change-Id: I639ad3bebf489367ad8ed182c276fc32eec8d369
Closes-Bug: #1290721
2014-03-19 21:04:42 +08:00
ericzhou eb15ff73a5 Use the library method auth_uri_transform.
Change-Id: Id4f1cf95aaa96164c7eeae40550dac8857b31800
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-17 14:17:05 +08:00
Chen Zhiwei c74a5400b7 Rename openstack-metering to openstack-telemetry
update cookbook name, attribute name

Change-Id: Ibd17a61b06769ed03e87bdcf54f394e67fce5bcb
2014-03-12 23:47:26 -04:00
Matt Thompson 45fc85eef1 Use get_password method to obtain qpid password
Currently, qpid's password is stored in an attribute in the common
cookbook.  This change causes the password to be looked up via
get_password method, which is how we obtain the rabbitmq password.

Change-Id: I7afe9a0a069c6527ced4df7f094c31c1ca4acec4
Implements: blueprint use-data-bag-for-qpid-password
2014-03-06 11:11:13 +00:00
Brett Campbell b8e90a5c00 add 'debug' and 'verbose' attributes
for ceilometer.conf.erb.

Change-Id: I4458922684df67738fdbd895e73babdf2f7bfb62
2014-02-25 12:50:43 -08:00
Matt Thompson 34e8b38de6 Clean up cookbook for bp/clean-up-attr-for-mq-and-db
This change removes the attributes we'll be moving to openstack-common
and changes reference of those attributes to reflect new (more
consistent) namespace.

Change-Id: I30e37b4ff6369c19978973a8890ef2122692db44
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-24 10:26:42 +00:00
zyouzhou-cn 07e53e7b21 Fix qpid backend issue in ceilometer.conf
Change rpc_backend for qpid from nova.openstack.common.rpc.impl_qpid to
ceilometer.openstack.common.rpc.impl_qpid.

Change-Id: I6fc89dd218ce9f6daf8fb388372d1a6c116637e5
2013-12-18 00:05:52 +08:00
salmanbaset 510d2ee279 Adding qpid support to ceilometer
Moving all qpid parameters under default["openstack"]["metering"]
["mq"]["qpid"] so that other qpid options can be added under it.
Rabbit parameters will be brought under "mq" eventually. MQ is
selected through default["openstack"]["metering"]["mq"]["service_type"].
Default is "rabbitmq".

Implements: blueprint qpid-activemq-support
Change-Id: I4dd153a631063ee7c518e2d49fe01aa39a6f261d
2013-11-30 00:35:58 +08:00
Justin Shepherd dc89aea2de Fixing inconsistent auth_token middleware
* Version bump to 7.0.5

addresses: bug #1207504

Change-Id: I5b0360369fa18772c7a488458e271678f465ca8f
2013-11-11 22:36:29 -06:00
John Tran bb48858097 Add debug option
Change-Id: I5523a241975097510b29cbf58df59992db7b9411
2013-09-06 18:37:32 +00:00
John Tran f19a0d9d00 Add optional host to ceilometer.conf
By default cfg.CONF.host is the `hostname` of local node, however, not all envs
register their hosts by the fqdn.  This allows a configurable attr to add to
the ceilometer.conf

Change-Id: If80cd5264a02eeb7c94655716839642dd7993906
2013-09-05 20:26:58 +00:00
John Dewey c9851501b7 Initial add of ceilometer recipes
These were migrated out of `openstack-compute` and into their
own cookbook.  This is an initial best-effort attempt.

Made the following changes, which differ from the recipes imported.
* Moved to openstack["metering"] attribute namespace.
* No longer performing source install.  This was done for folsom.
* No longer writing out an Apache virtualhost.  This was done to
  protect the folsom non-authenticated API endpoint.
* Templates write out as the ceilometer user/group vs nova.
* No longer including nova-common recipe.  It doesn't appear nova.conf
  is necessay (although I may be wrong).  The stackforge puppet manifests
  do not seem to do this [1].
* Added Strainerfile for testing.

  [1] https://github.com/stackforge/puppet-ceilometer).

bug 1187514
Change-Id: Ia97126e13e422037ad1f2c89debd9e4cdfa60b0a
2013-08-02 14:20:06 -07:00