OpenStack Trove Puppet Module
Go to file
Ghanshyam Mann f9f5221648 [ussuri][goal] Cleanup for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

puppet-* repos have to cleanup the requirement and tox
for py2.7 drop.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I7ae860b5e53884ff990397c752d466fa450eb7b4
2020-02-15 20:57:26 -06:00
doc [ussuri][goal] Cleanup for python 2.7 drop 2020-02-15 20:57:26 -06:00
examples Convert all class usage to relative names 2019-12-08 23:24:12 +01:00
lib/puppet Make providers use auth_url for authentication 2018-08-03 14:11:47 +02:00
manifests Convert all class usage to relative names 2019-12-08 23:24:12 +01:00
releasenotes Update master for stable/train 2019-10-04 13:38:23 +00:00
spec Convert all class usage to relative names 2019-12-08 23:24:12 +01:00
templates Remove deprecated rabbit_hosts 2018-12-07 09:56:06 +08:00
.gitignore Dissuade .gitignore references to personal tools 2018-10-08 11:39:25 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:34:13 +00:00
.zuul.yaml switch documentation job to new PTI 2018-08-31 08:24:47 -04:00
bindep.txt modulesync: sync and add nodepool-bionic for beaker 2018-07-18 16:20:27 +02:00
CHANGELOG.md Modify http to https. 2018-12-11 15:14:29 +08:00
Gemfile Move to opendev 2019-04-21 14:44:49 +08:00
LICENSE First commit 2014-05-18 01:38:51 -04:00
metadata.json Prepare Ussuri M2 2020-02-13 14:21:29 +08:00
Rakefile Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance 2016-01-18 09:11:34 -05:00
README.md Fix Repository 2019-04-21 12:59:10 +08:00
setup.cfg Change openstack-dev to openstack-discuss 2018-12-02 18:20:45 +01:00
setup.py Add basic structure for ReNo 2016-03-14 08:36:32 -04:00
tox.ini [ussuri][goal] Cleanup for python 2.7 drop 2020-02-15 20:57:26 -06:00

Team and repository tags

Team and repository tags

puppet-trove

Table of Contents

  1. Overview - What is the trove module?
  2. Module Description - What does the module do?
  3. Setup - The basics of getting started with trove
  4. Implementation - An under-the-hood peek at what the module is doing
  5. Limitations - OS compatibility, etc.
  6. Beaker-Rspec - Beaker-rspec tests for the project
  7. Development - Guide for contributing to the module
  8. Contributors - Those with commits
  9. Release Notes - Release notes for the project
  10. Repository - The project source code repository

Overview

The trove module is a part of OpenStack, an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects as part of the core software. The module itself is used to flexibly configure and manage the database service for OpenStack.

Module Description

Setup

What the trove module affects:

  • trove, the database service for OpenStack.

Installing trove

puppet module install openstack/trove

Implementation

trove

trove is a combination of Puppet manifest and ruby code to delivery configuration and extra functionality through types and providers.

Types

trove_config

The trove_config provider is a child of the ini_setting provider. It allows one to write an entry in the /etc/trove/trove.conf file.

trove_config { 'DEFAULT/backlog' :
  value => 4096,
}

This will write backlog=4096 in the [DEFAULT] section.

name

Section/setting name to manage from trove.conf

value

The value of the setting to be defined.

secret

Whether to hide the value from Puppet logs. Defaults to false.

ensure_absent_val

If value is equal to ensure_absent_val then the resource will behave as if ensure => absent was specified. Defaults to <SERVICE DEFAULT>

trove_conductor_config

The trove_conductor_config provider is a children of the ini_setting provider. It allows one to write an entry in the /etc/trove/trove-conductor.conf file.

trove_conductor_config { 'DEFAULT/auth_url' :
  value => http://localhost:5000/v3,
}

This will write auth_url=http://localhost:5000/v3 in the [DEFAULT] section.

name

Section/setting name to manage from trove.conf

value

The value of the setting to be defined.

secret

Whether to hide the value from Puppet logs. Defaults to false.

ensure_absent_val

If value is equal to ensure_absent_val then the resource will behave as if ensure => absent was specified. Defaults to <SERVICE DEFAULT>

trove_guestagent_config

The trove_guestagent_config provider is a children of the ini_setting provider. It allows one to write an entry in the /etc/trove/trove-guestagent.conf file.

trove_guestagent_config { 'DEFAULT/trove_auth_url' :
  value => http://localhost:5000/v3,
}

This will write trove_auth_url=http://localhost:5000/v3 in the [DEFAULT] section.

name

Section/setting name to manage from trove.conf

value

The value of the setting to be defined.

secret

Whether to hide the value from Puppet logs. Defaults to false.

ensure_absent_val

If value is equal to ensure_absent_val then the resource will behave as if ensure => absent was specified. Defaults to <SERVICE DEFAULT>

trove_taskmanager_config

The trove_taskmanager_config provider is a children of the ini_setting provider. It allows one to write an entry in the /etc/trove/trove-taskmanager.conf file.

trove_taskmanager_config { 'DEFAULT/network_driver' :
  value => trove.network.neutron.NeutronDriver,
}

This will write network_driver=trove.network.neutron.NeutronDriver in the [DEFAULT] section.

name

Section/setting name to manage from trove.conf

value

The value of the setting to be defined.

secret

Whether to hide the value from Puppet logs. Defaults to false.

ensure_absent_val

If value is equal to ensure_absent_val then the resource will behave as if ensure => absent was specified. Defaults to <SERVICE DEFAULT>

Limitations

Security

For security reasons, a separate in-cloud RabbitMQ cluster should be set up for trove to use. The reason for this is that the guest agent needs to communicate with RabbitMQ, so it is not advisable to give instances access to the same RabbitMQ server that the core OpenStack services are using for communication.

Please note that puppet-trove cannot check if this rule is being followed, so it is the deployer's responsibility to do it.

Beaker-Rspec

This module has beaker-rspec tests

To run:

bundle install
bundle exec rspec spec/acceptance

Development

Developer documentation for the entire puppet-openstack project.

Contributors

Release Notes

Repository