Commit Graph

160 Commits

Author SHA1 Message Date
Takashi Kajinami b14a6251fd Retire puppet-monasca - Step 2: Remove Project Content
Depends-on: https://review.opendev.org/805098
Change-Id: I6d9314bef6781599a39038a5a405f84c8db9807a
2021-08-19 16:47:45 +00:00
Takashi Kajinami a6589ed59a Update comment to fix lint
manifests/config.pp:7:WARNING: No matching class parameter for
documentation of monasca::config::xxx_config
manifests/keystone/auth.pp:68:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::region
manifests/keystone/auth.pp:65:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::port
manifests/keystone/auth.pp:25:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::agent_password
manifests/keystone/auth.pp:22:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::user_password
manifests/keystone/auth.pp:19:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::admin_password
manifests/keystone/auth.pp:16:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::agent_name
manifests/keystone/auth.pp:12:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::user_name
manifests/keystone/auth.pp:9:WARNING: No matching class parameter for
documentation of monasca::keystone::auth::admin_name
manifests/persister/config.pp:34:WARNING: No matching defined type
parameter for documentation of monasca::persister::config::pers_db_user

Change-Id: I9ef9dc1d03d8e35e1381bc055d6c554eea436bc3
2020-10-10 12:32:08 +09:00
Tobias Urdin ddb35db3cb Convert all class usage to relative names
Change-Id: I7bd08ef57382a561d15d82b45e9acaf4f7e46e99
2019-12-08 23:11:27 +01:00
Zuul 146d6cf1ef Merge "Use validate_legacy" 2019-02-25 17:30:38 +00:00
Tobias Urdin c2aa24ac27 Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: I6e75488ea8cfb5cb2be5fdb892355274ab18224b
2019-02-23 12:44:16 +01:00
Tobias Urdin 1840e2f77d Use puppet 4 compatible mysql functions
These was introduced in 6.0.0 and is required to
support later version of puppetlabs-mysql.

Change-Id: I81b72476fb2b1315e7d521cbc847ed9f4983da45
2019-02-08 12:19:00 +01:00
Tobias Urdin e7fe398fda Convert to rspec-puppet-facts and fix monasca::alarmdefs
Converts all testing to use rspec-puppet-facts and
removes virtualenv package since that is installed
by the ::python module otherwise it causes a resource
redeclaration.

Change-Id: I651ae89e8f355a6f68b8e3aeb4eef24b36713c2f
2018-11-26 21:37:21 +01:00
OpenStack Release Bot 9507d9f599 Update reno for stable/rocky
Change-Id: I7ca3560a5310d377ad6953ad78ed7159bd946bbd
2018-08-22 20:23:06 +02:00
ZhongShengping 6ac8b46a20 Fix resources for latest puppet
The unit tests for puppet 5 (running via latest) is failing on some
modules because the catalog created in the test doesn't contain the
resources being referenced in requires/subscribes.

Change-Id: I927d517d68bf23aea3837e985afdc8443c2b98c9
Closes-Bug: #1729212
2017-11-02 09:56:03 +08:00
Carlos Camacho 151e23ba85 Fix lint issues to upgrade to puppet-lint 2.3
2017-07-20 14:38:13.065997 | manifests/influxdb/bootstrap.pp:54:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066083 | manifests/kafka/topics.pp:35:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066114 | manifests/keystone/auth.pp:200:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066151 | manifests/keystone/auth.pp:202:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066176 | manifests/keystone/auth.pp:204:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066201 | manifests/keystone/auth.pp:275:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066226 | manifests/storm/config.pp:87:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066250 | manifests/storm/config.pp:95:WARNING: arrow should be on the right operand's line
2017-07-20 14:38:13.066275 | manifests/storm/config.pp:103:WARNING: arrow should be on the right operand's line

Change-Id: I87efeefd690bd6dd89dfd4b670fe7972a8003e4b
2017-07-21 17:18:26 +02:00
Brad Klein e966b524e2 Add configuration of host_aggregate_re for libvirt plugin
Change-Id: I1380afc5144695156eb62929b4910eff15b2ae4b
2017-03-06 15:04:12 -07:00
Brad Klein 39465dfe31 Add configuration of ovs publish_router_capacity flag
Change-Id: I0431bee6f8cd92a6e01a4776f333af2e47454c1f
2017-01-27 07:59:26 -07:00
Clayton O'Neill 43937f00ea Fix python-virtualenv references for puppet4
In order for this module to be used with puppet-python on puppet4, we
need to reference the virtualenv package by title ("virtualenv") instead
of by name ("python-virtualenv").

Change-Id: I24d40a499a805d8cdc1024e533ba8500115e4ea2
2016-12-06 21:10:51 +00:00
Jenkins 43bce752a9 Merge "Add adminRole option to api config" 2016-12-01 01:13:30 +00:00
Ryan Bak 54ddc2f9b4 Add adminRole option to api config
Includes basic tests for the affected classes and params

Change-Id: I9e819bb89a2101c902aae8d17eef5e0adc8c7e86
2016-11-29 13:00:45 -07:00
Brad Klein eef07efe88 Update for storm nimbus HA feature
Apache storm now supports nimbus.seeds option,
in which case the nimbus startup script should be
on all nodes, instead of only one in the cluster.

Change-Id: I660798e006605718035129758838e40ff1c972c3
2016-11-22 12:30:45 -07:00
Brad Klein 86955c96ac Add support for monasca-notification hipchat and slack
Also add spec test for the class and new parms

Change-Id: Ic4132374446b417d6bd7f0ecd6451b0070dc74e3
2016-11-16 16:32:45 -07:00
Ryan Bak c1c9f0dd52 Add new config values for rabbitmq check
Change-Id: I229c412deee8dd8ae49a1771112c5bcd84d8e407
2016-11-01 09:09:58 -06:00
Jenkins 23bc6b21fd Merge "Provide default service_name for keystone endpoint" 2016-10-18 15:33:54 +00:00
Brad Klein 27845d7f19 Add config of metadata for ovs plugin
Change-Id: I206247eccb952f5ae528843d3f50035fc72d6ff0
2016-10-17 14:36:14 -06:00
Sharat Sharma d8859186cd Provide default service_name for keystone endpoint
This change updates the monasca::keystone::auth class to include a
default service_name of 'monasca' so that if a user changes the
auth_name, the service is still created as being related to
'monasca'.

Change-Id: Id973e70d27072c0478aae68f288ee5d638037b36
Closes-Bug: #1590040
2016-10-02 12:32:29 +05:30
Jenkins c54d48567f Merge "Fix puppet-lint before upgrading gem" 2016-09-16 14:25:24 +00:00
Brad Klein 098d07d7c3 Better vertica partition defaults, new drop script
Change-Id: Iebc96b72a62b8650e4cafa82f759b2847efa64f5
2016-09-15 15:28:15 -06:00
Carlos Camacho 0c7f731950 Fix puppet-lint before upgrading gem
Removing puppet-lint warnings
in favor of upgrading to latest gem

2016-09-13 21:09:38.667187 | manifests/agent.pp:124:WARNING: optional parameter listed before required parameter
2016-09-13 21:09:38.667274 | manifests/agent.pp:125:WARNING: optional parameter listed before required parameter
2016-09-13 21:09:38.667302 | manifests/agent.pp:126:WARNING: optional parameter listed before required parameter
2016-09-13 21:09:38.667328 | manifests/agent.pp:127:WARNING: optional parameter listed before required parameter
2016-09-13 21:09:38.667350 | manifests/kafka/topics.pp:27:WARNING: line has more than 140 characters
2016-09-13 21:09:38.667373 | manifests/kafka/topics.pp:40:WARNING: line has more than 140 characters

Change-Id: I0786132cf102be0d997ebeb5903d2fd1af681ba4
2016-09-15 16:36:34 +02:00
Matt Fischer 470edbc02b Set enable on agent service
This sets the enable flag on the agent service which will autostart the
agent (if set) on reboot. Also this removes a non-sensical parameter on
a file resource that appears to be a typo.

Change-Id: I5b49a276e89b88aefc9bf6ec0c22e6e18fa1cc26
2016-09-14 01:41:58 +00:00
Brad Klein 0338017c52 Add configuration of monasca agent vertica plugin
Change-Id: I0529368ccd6de3e44037fa7234b9a46b967eaf63
2016-09-09 09:19:49 -06:00
Brad Klein ab26276973 Allow dynamic alarm and notification bootstrapping
Change-Id: I10d1e0ab7a7c88b29fd05fbf4173317ac96434c9
2016-09-01 11:34:58 -06:00
Brad Klein 276d33a725 Allow tuning of database connection thread pool settings
Change-Id: I431f5f3fcdc934dcb6e65a29fcc43ed94a813095
2016-08-11 14:41:10 -06:00
Brad Klein 0b8492dd22 Add configuration of solidfire plugin
Change-Id: Ib6f0f0f832224f50bfe36d2371b4c51c8ae8ab30
2016-08-04 09:15:02 -06:00
Brad Klein a307cbd00c Add configuration of read-only api user roles.
Also do some documentation and parameter cleanup of this class
to conform with puppet-openstack standards.

Change-Id: Ib9a7901cf35171212642e29e27c09823cccd4f26
2016-08-01 13:49:45 -06:00
Brad Klein 4b36f0a080 Update libvirt plugin configuration for latest agent.
Also start to conform to puppet-openstack standard parameter
documentations and parameter defaults.

Change-Id: I3d0417840e9a293cd9379f5f9ddf6686f4d77ed1
2016-07-19 16:06:00 -06:00
Brad Klein 31d28a7c87 Update ovs plugin config file with latest settings
Change-Id: If7b99422f3183bd8f0646eba2cd5476569e9eabe
2016-07-18 14:10:37 -06:00
Brad Klein 1c53d1f872 Update notification conf file for periodic notifications
This will default to the current (60 second) notifications,
but can be overridden with additional settings.  This is
necessary to install the latest monasca-notification with
changes for heat autoscaling.

Change-Id: I0b403fcc32f905f0404aeddf4264cd5db732b1f3
2016-07-13 13:45:52 -06:00
Sofer Athlan-Guyot 02d817c04c Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: I1835800001e4eef66822845fdeb202b4f1ba0100
Related-Bug: 1599113
2016-07-07 12:11:53 +02:00
Brad Klein 46c945e2f8 Add support for periodic notification
Change-Id: I024969c5e9568898db3401292a93535491fd45c6
2016-06-09 13:01:17 -06:00
Brad Klein 1a4ae8a903 Allow vertica db hint for queries
Change-Id: I8cfb34ed15a9b9eb68f6b5613584e781e93dba07
2016-06-08 10:08:27 -06:00
Ryan Bak 29c6e93c11 Add flag to submit libvirt metrics as bits
Change-Id: I6152c098fbcd917049619328605416e07a00e92f
2016-06-06 09:16:39 -06:00
Ryan Bak 034da28451 Update agent plugin for new options
Change-Id: Iec34f0ab26763a80c9ed4d6b96156e4ccf83e43b
2016-06-01 15:03:58 -06:00
Ryan Bak b20ff86b2c Update monasca-agent init scripts
Brings init.d and supervisor.conf up to date

Change-Id: I5bf8c03d2c0c6ff0962a88747b9def82c57e65d1
2016-05-24 15:49:52 -06:00
Brad Klein 69405495ac Add configuration of ovs plugin
Change-Id: Iac96f1e86b9a55aee4c750e638d0c98541f15ea4
2016-05-24 08:57:31 -06:00
Brad Klein 218bc38f1b Allow query limit to be configurable
Change-Id: I42041df284eb418236d0bec82a6b6d3d721c917b
2016-05-12 07:35:37 -06:00
Ryan Bak 4cf1d03f9f Fix for custom agent roles
Previously user_roles_agent and user_roles_user were ignored

Change-Id: I5c69bbb4cc57b0dbbdbd3d1c2c4a65c2e0dbae58
2016-05-05 15:30:55 -06:00
Brad Klein 095d35ce1a Add ability to include libvirt scale group metadata
Change-Id: I64698a3ba21b2e152ed8a9ba68cc21f9169cab8b
2016-04-20 15:09:47 -06:00
Brad Klein 3f73ab2563 Minor changes to support kafka 0.9.0.1
Change-Id: Ib5a2f02cf50f53b69ea47640eac87b3522328cda
2016-04-05 09:01:20 -06:00
Brad Klein 1e27ee7dfa Add script to cleanup stale VM alarms
Change-Id: I7296c0b46d66a55702a4f117f104c021913492e2
2016-03-21 15:09:37 -06:00
bklei b6c34684bf Support dynamic mysql port
Change-Id: I8049db89701c9ba9a46210f80ac4f24340d79e3c
2016-02-24 09:33:13 -07:00
bklei 86edf5d18c Refactor keystone service and endpoint to be more like other puppet modules
Also provide adminProjectName which is necessary if authenticating
monasca-api via username/password with keystone middleware.

Change-Id: Idf676ab0e8db0e612376121efcb3cabe54245c0c
2016-01-22 13:54:13 -07:00
Jenkins 4bf61277bd Merge "Add support for symlinked agent virtualenv" 2016-01-15 17:06:39 +00:00
Ryan Bak 5c8461d781 Add support for symlinked agent virtualenv
This allows multiple virtualenv to be managed, allowing fresh rebuilds
of the virtualenv when making changes.

Change-Id: I4428a485dea87021ca642a773af57b35416f2a20
2016-01-14 15:10:38 -07:00
bklei 51f21afb75 Add bootstrapping of notification methods
Change-Id: I5719315855f8771e7be0d38097672170eb8e63d6
2016-01-11 15:46:46 -07:00