This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
109d4825e5cdd15aa529c1ef7bcccc05f6a78178 4.0.0 Partial blueprint merge-openstack-puppet-modules Change-Id: I672620f149e4a63240144f0ce20e84b084cfd459 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
- Loading branch information
Bogdan Dobrelya
committed
Jul 4, 2014
1 parent
c46ba73
commit e2cbdd0
Showing
109 changed files
with
6,445 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
fixtures: | ||
repositories: | ||
"apt": "git://github.com/puppetlabs/puppetlabs-apt.git" | ||
"keystone": "git://github.com/puppetlabs/puppetlabs-keystone.git" | ||
"mysql": | ||
repo: "git://github.com/puppetlabs/puppetlabs-mysql.git" | ||
'cinder': 'git://github.com/stackforge/puppet-cinder.git' | ||
'inifile': 'git://github.com/puppetlabs/puppetlabs-inifile' | ||
'keystone': 'git://github.com/stackforge/puppet-keystone.git' | ||
'mysql': | ||
repo: 'git://github.com/puppetlabs/puppetlabs-mysql.git' | ||
ref: 'origin/0.x' | ||
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" | ||
"sysctl": "git://github.com/duritong/puppet-sysctl.git" | ||
"rabbitmq": "git://github.com/puppetlabs/puppetlabs-rabbitmq.git" | ||
'inifile': 'git://github.com/cprice-puppet/puppetlabs-inifile' | ||
'postgresql': | ||
repo: "git://github.com/puppetlabs/puppet-postgresql.git" | ||
ref: '2.5.0' | ||
'qpid': 'git://github.com/dprince/puppet-qpid.git' | ||
'rabbitmq': | ||
repo: 'git://github.com/puppetlabs/puppetlabs-rabbitmq' | ||
ref: 'origin/2.x' | ||
'stdlib': 'git://github.com/puppetlabs/puppetlabs-stdlib.git' | ||
'sysctl': 'git://github.com/duritong/puppet-sysctl.git' | ||
symlinks: | ||
"nova": "#{source_dir}" | ||
'nova': "#{source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
source :rubygems | ||
source 'https://rubygems.org' | ||
|
||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] | ||
gem 'puppet', puppetversion | ||
gem 'puppetlabs_spec_helper', '>= 0.1.0' | ||
group :development, :test do | ||
gem 'puppetlabs_spec_helper', :require => false | ||
gem 'puppet-lint', '~> 0.3.2' | ||
gem 'rake', '10.1.1' | ||
end | ||
|
||
if puppetversion = ENV['PUPPET_GEM_VERSION'] | ||
gem 'puppet', puppetversion, :require => false | ||
else | ||
gem 'puppet', :require => false | ||
end | ||
|
||
# vim:ft=ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
*.swp | ||
pkg/ | ||
.DS_Store | ||
metadata.json | ||
coverage/ | ||
spec/fixtures | ||
|
||
spec/fixtures/modules/* | ||
pkg | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[gerrit] | ||
host=review.openstack.org | ||
port=29418 | ||
project=stackforge/puppet-nova.git |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source 'https://rubygems.org' | ||
|
||
group :development, :test do | ||
gem 'puppetlabs_spec_helper', :require => false | ||
gem 'puppet-lint', '~> 0.3.2' | ||
gem 'rake', '10.1.1' | ||
end | ||
|
||
if puppetversion = ENV['PUPPET_GEM_VERSION'] | ||
gem 'puppet', puppetversion, :require => false | ||
else | ||
gem 'puppet', :require => false | ||
end | ||
|
||
# vim:ft=ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
name 'puppetlabs-nova' | ||
version '0.2.0' | ||
|
||
author 'Puppet Labs' | ||
name 'puppetlabs-nova' | ||
version '4.0.0' | ||
source 'https://github.com/stackforge/puppet-nova' | ||
author 'Puppet Labs' | ||
license 'Apache License 2.0' | ||
project_page 'https://github.com/puppetlabs/puppetlabs-nova' | ||
source 'https://github.com/puppetlabs/puppetlabs-nova' | ||
summary 'Puppet Labs Nova Module' | ||
description 'Puppet module to install and configure the OpenStack Nova compute service' | ||
project_page 'https://launchpad.net/puppet-nova' | ||
|
||
## Add dependencies, if any: | ||
dependency 'dprince/qpid', '>= 1.0.0 <2.0.0' | ||
dependency 'duritong/sysctl', '>=0.0.1 <1.0.0' | ||
dependency 'puppetlabs/cinder', '>=4.0.0 <5.0.0' | ||
dependency 'puppetlabs/glance', '>=4.0.0 <5.0.0' | ||
dependency 'puppetlabs/inifile', '>=1.0.0 <2.0.0' | ||
dependency 'puppetlabs/keystone', '>=4.0.0 <5.0.0' | ||
dependency 'puppetlabs/mysql', '>=0.9.0 <3.0.0' | ||
dependency 'puppetlabs/rabbitmq', '>=2.0.2 <4.0.0' | ||
dependency 'puppetlabs/stdlib', '>=3.2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
nova | ||
==== | ||
|
||
4.0.0 - 2014.1.0 - Icehouse | ||
|
||
#### Table of Contents | ||
|
||
1. [Overview - What is the nova module?](#overview) | ||
2. [Module Description - What does the module do?](#module-description) | ||
3. [Setup - The basics of getting started with nova](#setup) | ||
4. [Implementation - An under-the-hood peek at what the module is doing](#implementation) | ||
5. [Limitations - OS compatibility, etc.](#limitations) | ||
6. [Development - Guide for contributing to the module](#development) | ||
7. [Contributors - Those with commits](#contributors) | ||
8. [Release Notes - Notes on the most recent updates to the module](#release-notes) | ||
|
||
Overview | ||
-------- | ||
|
||
The nova module is a part of [Stackforge](https://github.com/stackforge), an effort by the Openstack infrastructure team to provide continuous integration testing and code review for Openstack and Openstack community projects not part of the core software. The module its self is used to flexibly configure and manage the compute service for Openstack. | ||
|
||
Module Description | ||
------------------ | ||
|
||
The nova module is a thorough attempt to make Puppet capable of managing the entirety of nova. This includes manifests to provision such things as keystone endpoints, RPC configurations specific to nova, and database connections. Types are shipped as part of the nova module to assist in manipulation of configuration files. | ||
|
||
This module is tested in combination with other modules needed to build and leverage an entire Openstack software stack. These modules can be found, all pulled together in the [openstack module](https://github.com/stackforge/puppet-openstack). | ||
|
||
Setup | ||
----- | ||
|
||
**What the nova module affects:** | ||
|
||
* nova, the compute service for Openstack. | ||
|
||
### Installing nova | ||
|
||
example% puppet module install puppetlabs/nova | ||
|
||
### Beginning with nova | ||
|
||
To utilize the nova module's functionality you will need to declare multiple resources. The following is a modified excerpt from the [openstack module](https://github.com/stackfoge/puppet-openstack). This is not an exhaustive list of all the components needed, we recommend you consult and understand the [openstack module](https://github.com/stackfoge/puppet-openstack) and the [core openstack](http://docs.openstack.org) documentation. | ||
|
||
```puppet | ||
class { 'nova': | ||
database_connection => 'mysql://nova:a_big_secret@127.0.0.1/nova?charset=utf8', | ||
rabbit_userid => 'nova', | ||
rabbit_password => 'an_even_bigger_secret', | ||
image_service => 'nova.image.glance.GlanceImageService', | ||
glance_api_servers => 'localhost:9292', | ||
verbose => false, | ||
rabbit_host => '127.0.0.1', | ||
} | ||
class { 'nova::compute': | ||
enabled => true, | ||
vnc_enabled => true, | ||
} | ||
class { 'nova::compute::libvirt': | ||
migration_support => true, | ||
} | ||
``` | ||
|
||
Implementation | ||
-------------- | ||
|
||
### nova | ||
|
||
nova is a combination of Puppet manifest and ruby code to delivery configuration and extra functionality through types and providers. | ||
|
||
Limitations | ||
----------- | ||
|
||
* Supports libvirt, xenserver and vmware compute drivers. | ||
* Tested on EL and Debian derivatives. | ||
* The Nova Openstack service depends on a sqlalchemy database. If you are using puppetlabs-mysql to achieve this, there is a parameter called mysql_module that can be used to swap between the two supported versions: 0.9 and 2.2. This is needed because the puppetlabs-mysql module was rewritten and the custom type names have changed between versions. | ||
|
||
Development | ||
----------- | ||
|
||
Developer documentation for the entire puppet-openstack project. | ||
|
||
* https://wiki.openstack.org/wiki/Puppet-openstack#Developer_documentation | ||
|
||
Contributors | ||
------------ | ||
|
||
* https://github.com/stackforge/puppet-nova/graphs/contributors | ||
|
||
Release Notes | ||
------------- | ||
|
||
**4.0.0** | ||
|
||
* Stable Icehouse release. | ||
* Added support for RHEL 7. | ||
* Added support for metadata and conductor workers. | ||
* Added support for vif_plugging parameters. | ||
* Added support for puppetlabs-mysql 2.2 and greater. | ||
* Added support for instance_usage_audit parameters. | ||
* Added support to manage the nova uid/gid for NFS live migration.. | ||
* Added nova::config to handle additional custom options. | ||
* Added support to disable installation of nova utilities. | ||
* Added support for durable RabbitMQ queues. | ||
* Added SSL support for RabbitMQ. | ||
* Added support for nova-objectstore bind address. | ||
* Updated support for notification parameters. | ||
* Fixed packaging bugs. | ||
* Fixed report_interval configuration. | ||
* Fixed file location for nova compute rbd secret. | ||
|
||
**3.2.1** | ||
|
||
* Fixed consoleauth/spice resource duplication on Red Hat systems. | ||
|
||
**3.2.0** | ||
|
||
* Replace pip with native package manager for VMWare. | ||
* Deprecated logdir parameter in favor of log_dir. | ||
* Allows log_dir to be set to false in order to disable file logging. | ||
* Enables libvirt at boot. | ||
* Adds RBD backend support for VM image storage. | ||
* Parameterizes libvirt cpu_mode and disk_cachemodes. | ||
* Adds support for https auth endpoints. | ||
* Adds ability to disable installation of nova utilities. | ||
|
||
**3.1.0** | ||
|
||
* Minor release for OpenStack Havana. | ||
* Add libguestfs-tools package to nova utilities. | ||
* Fixed vncproxy package naming for Ubuntu. | ||
* Fixed libvirt configuration. | ||
|
||
**3.0.0** | ||
|
||
* Major release for OpenStack Havana. | ||
* Removed api-paste.ini configuration. | ||
* Adds support for live migrations with using the libvirt Nova driver. | ||
* Fixed bug to ensure keystone endpoint is set before service is started. | ||
* Fixed nova-spiceproxy support on Ubuntu. | ||
* Added support for VMWareVCDriver. | ||
|
||
**2.2.0** | ||
|
||
* Added a check to install bridge-utils only if needed. | ||
* Added syslog support. | ||
* Added installation of pm-utils for VM power management support. | ||
* Fixed cinder include dependency bug. | ||
* Various bug and lint fixes. | ||
|
||
**2.1.0** | ||
|
||
* Added support for X-Forwarded-For HTTP Headers. | ||
* Added html5 spice support. | ||
* Added config drive support. | ||
* Added RabbitMQ clustering support. | ||
* Added memcached support. | ||
* Added SQL idle timeout support. | ||
* Fixed allowed_hosts/database connection bug. | ||
* Pinned RabbitMQ and database module versions. | ||
|
||
**2.0.0** | ||
|
||
* Upstream is now part of stackfoge. | ||
* The ini_file type is now used by nova_config. | ||
* Support for nova-conductor added. | ||
* Networks can now be labeled by Class['nova::manage::network']. | ||
* The Apache Qpid message broker is available as an RPC backend. | ||
* Further compatibility fixes for RHEL and its derivatives. | ||
* Postgres support added. | ||
* Adjustments to help in supporting the still in development neutron module. | ||
* Config changes can be hidden from Puppet logs. | ||
* Move from deprecated rabbit_notifier to rpc_notifier. | ||
* Various cleanups and bug fixes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
require 'puppet-lint/tasks/puppet-lint' | ||
|
||
PuppetLint.configuration.fail_on_warnings = true | ||
PuppetLint.configuration.send('disable_80chars') | ||
PuppetLint.configuration.send('disable_class_parameter_defaults') | ||
PuppetLint.configuration.send('disable_class_inherits_from_params_class') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Example: managing nova compute controller services with pacemaker | ||
# | ||
# By setting enabled to false, these services will not be started at boot. By setting | ||
# manage_service to false, puppet will not kill these services on every run. This | ||
# allows the Pacemaker resource manager to dynamically determine on which node each | ||
# service should run. | ||
# | ||
# The puppet commands below would ideally be applied to at least three nodes. | ||
# | ||
# Note that nova-api and nova-novncproxy are associated with the virtual IP address as | ||
# they are called from external services. The remaining services connect to the | ||
# database and/or message broker independently. | ||
# | ||
# Example pacemaker resource configuration commands (configured once per cluster): | ||
# | ||
# sudo pcs resource create nova_vip ocf:heartbeat:IPaddr2 params ip=192.0.2.3 \ | ||
# cidr_netmask=24 op monitor interval=10s | ||
# | ||
# sudo pcs resource create nova_api_service lsb:openstack-nova-api | ||
# sudo pcs resource create nova_conductor_service lsb:openstack-nova-conductor | ||
# sudo pcs resource create nova_consoleauth_service lsb:openstack-nova-consoleauth | ||
# sudo pcs resource create nova_novncproxy_service lsb:openstack-nova-novncproxy | ||
# sudo pcs resource create nova_scheduler_service lsb:openstack-nova-scheduler | ||
# | ||
# sudo pcs constraint colocation add nova_api_service with nova_vip | ||
# sudo pcs constraint colocation add nova_novncproxy_service with nova_vip | ||
|
||
class { 'nova': } | ||
|
||
class { 'nova::api': | ||
enabled => false, | ||
manage_service => false, | ||
admin_password => 'PASSWORD', | ||
} | ||
|
||
class { 'nova::conductor': | ||
enabled => false, | ||
manage_service => false, | ||
} | ||
|
||
class { 'nova::consoleauth': | ||
enabled => false, | ||
manage_service => false, | ||
} | ||
|
||
class { 'nova::scheduler': | ||
enabled => false, | ||
manage_service => false, | ||
} | ||
|
||
class { 'nova::vncproxy': | ||
enabled => false, | ||
manage_service => false, | ||
} | ||
|
Oops, something went wrong.