Skip to content

Commit 9d92c58

Browse files
committed
Merge pull request #132 from xbezdick/master
Update openstack modules to their latest master branches
2 parents db4c220 + 703d246 commit 9d92c58

File tree

179 files changed

+3639
-2136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+3639
-2136
lines changed

Puppetfile

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ mod 'apache',
33
:git => 'https://github.com/puppetlabs/puppetlabs-apache.git'
44

55
mod 'ceilometer',
6-
:commit => '08fc9d9159cd9eb0830d550abb1058bc2b9b5759',
6+
:commit => '065a353aae3fb869395908289be5d61840d5d38b',
77
:git => 'https://github.com/stackforge/puppet-ceilometer.git'
88

99
mod 'certmonger',
10-
:commit => '5fbf10fbbff4aed4db30e839c63c99b195e8425a',
10+
:commit => '3f86b9973fc30c14a066b0f215023d5f1398b874',
1111
:git => 'https://github.com/rcritten/puppet-certmonger.git'
1212

1313
mod 'cinder',
14-
:commit => '2da616a4a52d3086fe3a291b9199fc7313575504',
14+
:commit => '987c51bc097fa049a8692741ffbeaffa2f3770e9',
1515
:git => 'https://github.com/stackforge/puppet-cinder.git'
1616

1717
mod 'common',
@@ -23,11 +23,11 @@ mod 'concat',
2323
:git => 'https://github.com/puppetlabs/puppetlabs-concat.git'
2424

2525
mod 'firewall',
26-
:commit => 'd5a10f5a52d84b9fcfb8fc65ef505685a07d5799',
26+
:commit => 'f061452461c841e83f20df1f9dd0aea485fb9744',
2727
:git => 'https://github.com/puppetlabs/puppetlabs-firewall.git'
2828

2929
mod 'galera',
30-
:commit => 'e35922bbb31ef2e6a86c7973cbafea96a8b160af',
30+
:commit => 'a63ab112aabdc9faa5e66fc095ef9dcc865d6999',
3131
:git => 'https://github.com/rohara/puppet-galera.git'
3232

3333
mod 'glance',
@@ -43,23 +43,23 @@ mod 'haproxy',
4343
:git => 'https://github.com/puppetlabs/puppetlabs-haproxy.git'
4444

4545
mod 'heat',
46-
:commit => 'e9e1ba05e13948b8e0c7a72b1b68cefbedd2b40d',
46+
:commit => '27f39cd68e894eacc2a068cfee7aea3c49223892',
4747
:git => 'https://github.com/stackforge/puppet-heat.git'
4848

4949
mod 'horizon',
50-
:commit => '16b482ea21a70d8dd06ab4c98ac5a218399b0213',
50+
:commit => 'f1e5acfe6fdd3709b4c34f12b90786cc7fd52a07',
5151
:git => 'https://github.com/stackforge/puppet-horizon.git'
5252

5353
mod 'inifile',
5454
:commit => 'fe9b0d5229ea37179a08c4b49239da9bc950acd1',
5555
:git => 'https://github.com/puppetlabs/puppetlabs-inifile.git'
5656

5757
mod 'ipa',
58-
:commit => '2cbd870b0dba2b8f588d74fc5ff8aa9cd0dc9ccf',
58+
:commit => '08e51e96ac2c9265499deec3485e396b792587d3',
5959
:git => 'https://github.com/xbezdick/puppet-ipa.git'
6060

6161
mod 'keystone',
62-
:commit => '605161f3d4b7bbcffc657c86b367159701dfdcbe',
62+
:commit => '3f64ee48fa04ca6c5f8173a3dbadad946ca41239',
6363
:git => 'https://github.com/stackforge/puppet-keystone.git'
6464

6565
mod 'memcached',
@@ -75,7 +75,7 @@ mod 'mongodb',
7575
:git => 'https://github.com/puppetlabs/puppetlabs-mongodb.git'
7676

7777
mod 'mysql',
78-
:commit => 'c70fc13fc15740b61b8eccd3c79168d3e417a374',
78+
:commit => '40dd1805886aee56dc02860565f161c6e3b4c7e5',
7979
:git => 'https://github.com/puppetlabs/puppetlabs-mysql.git'
8080

8181
mod 'n1k-vsm',
@@ -87,11 +87,11 @@ mod 'nagios',
8787
:git => 'https://github.com/gildub/puppet-nagios-openstack.git'
8888

8989
mod 'neutron',
90-
:commit => 'dcd122e477713421d9601d93d13725a4871b9c42',
90+
:commit => '4b7360b16e37e0460ee20d48cba408b796b029c3',
9191
:git => 'https://github.com/stackforge/puppet-neutron.git'
9292

9393
mod 'nova',
94-
:commit => 'a79e5338df5f85cb299183e54b39e8a22a640f59',
94+
:commit => '648c9e85830204995c24ae43d15efe278b9fa56b',
9595
:git => 'https://github.com/stackforge/puppet-nova.git'
9696

9797
mod 'nssdb',
@@ -107,7 +107,7 @@ mod 'openstack',
107107
:git => 'https://github.com/stackforge/puppet-openstack.git'
108108

109109
mod 'openstacklib',
110-
:commit => 'c374bed10f8af6000601fa407ebaef0833e1999c',
110+
:commit => '28130971a816859ff69eef037b9f9b1036a7720e',
111111
:git => 'https://github.com/stackforge/puppet-openstacklib.git'
112112

113113
mod 'pacemaker',
@@ -119,19 +119,19 @@ mod 'puppet',
119119
:git => 'https://github.com/purpleidea/puppet-puppet.git'
120120

121121
mod 'qpid',
122-
:commit => '1f0c32b39ad17e7acbd440b50fb6f0875971f5e1',
122+
:commit => '9ffb2788c536f1694980e07a43e8133ff85fa28c',
123123
:git => 'https://github.com/dprince/puppet-qpid'
124124

125125
mod 'rabbitmq',
126-
:commit => 'cbda1ced336f9768ebd442415b4d9c7c4ddb48c7',
126+
:commit => '4832bd61b5b1bfea7c9cc985508e65cd10081652',
127127
:git => 'https://github.com/puppetlabs/puppetlabs-rabbitmq.git'
128128

129129
mod 'rsync',
130130
:commit => '357d51f3a6a22bc3da842736176c3510e507b4fb',
131131
:git => 'https://github.com/puppetlabs/puppetlabs-rsync.git'
132132

133133
mod 'sahara',
134-
:commit => 'f4e5681cfb289113be1ba49c12709145ecbad938',
134+
:commit => '6b696cffcba6692975dbcfee144e81b6e90e5ecf',
135135
:git => 'https://github.com/stackforge/puppet-sahara.git'
136136

137137
mod 'ssh',
@@ -147,7 +147,7 @@ mod 'stdlib',
147147
:git => 'https://github.com/puppetlabs/puppetlabs-stdlib.git'
148148

149149
mod 'swift',
150-
:commit => '3ea00440361ff2452561d2cce808d938e39cce56',
150+
:commit => '7b30dbb3979ec1597173608e17b60144eefbeeec',
151151
:git => 'https://github.com/stackforge/puppet-swift.git'
152152

153153
mod 'sysctl',
@@ -167,7 +167,7 @@ mod 'vlan',
167167
:git => 'https://github.com/derekhiggins/puppet-vlan.git'
168168

169169
mod 'vswitch',
170-
:commit => '17b62e56e07eeed25fd2aaef278a16c97155a115',
170+
:commit => '51fd30c22b79d927fb0329e6e2b58fe67217ecee',
171171
:git => 'https://github.com/stackforge/puppet-vswitch.git'
172172

173173
mod 'xinetd',

ceilometer/Modulefile

Lines changed: 0 additions & 13 deletions
This file was deleted.

ceilometer/Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ require 'puppet-lint/tasks/puppet-lint'
44
PuppetLint.configuration.fail_on_warnings = true
55
PuppetLint.configuration.send('disable_80chars')
66
PuppetLint.configuration.send('disable_class_parameter_defaults')
7+
PuppetLint.configuration.send('disable_only_variable_string')

ceilometer/manifests/alarm/evaluator.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
include ceilometer::params
3838

39-
validate_re($evaluation_interval,'^(\d+)$')
39+
validate_re("${evaluation_interval}",'^(\d+)$')
4040

4141
Ceilometer_config<||> ~> Service['ceilometer-alarm-evaluator']
4242

ceilometer/metadata.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "stackforge-ceilometer",
3+
"version": "5.0.0",
4+
"author": "eNovance and StackForge Contributors",
5+
"summary": "Puppet module for OpenStack Ceilometer",
6+
"license": "Apache License 2.0",
7+
"source": "git://github.com/stackforge/puppet-ceilometer.git",
8+
"project_page": "https://launchpad.net/puppet-ceilometer",
9+
"issues_url": "https://bugs.launchpad.net/puppet-ceilometer",
10+
"requirements": [
11+
{ "name": "pe","version_requirement": "3.x" },
12+
{ "name": "puppet","version_requirement": "3.x" }
13+
],
14+
"operatingsystem_support": [
15+
{
16+
"operatingsystem": "Debian",
17+
"operatingsystemrelease": ["7"]
18+
},
19+
{
20+
"operatingsystem": "Fedora",
21+
"operatingsystemrelease": ["20"]
22+
},
23+
{
24+
"operatingsystem": "RedHat",
25+
"operatingsystemrelease": ["6.5","7"]
26+
},
27+
{
28+
"operatingsystem": "Ubuntu",
29+
"operatingsystemrelease": ["12.04","14.04"]
30+
}
31+
],
32+
"description": "Installs and configures OpenStack Ceilometer (Telemetry).",
33+
"dependencies": [
34+
{ "name": "puppetlabs/inifile", "version_requirement": ">=1.0.0 <2.0.0" },
35+
{ "name": "stackforge/keystone", "version_requirement": ">=5.0.0 <6.0.0" },
36+
{ "name": "puppetlabs/stdlib", "version_requirement": ">=4.0.0 <5.0.0" },
37+
{ "name": "stackforge/openstacklib", "version_requirement": ">=5.0.0" }
38+
]
39+
}

certmonger/Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name 'rcritten/certmonger'
2-
version '1.0.2'
2+
version '1.0.3'
33
source 'git://github.com/rcritten/puppet-certmonger.git'
44
author 'Rob Crittenden <rcritten@redhat.com>'
55
license 'Apache'

certmonger/lib/facter/ipa_client_configured.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

certmonger/manifests/request_ipa_cert.pp

Lines changed: 52 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -57,108 +57,65 @@
5757
) {
5858
include certmonger::server
5959

60-
if "$ipa_client_configured" == 'true' {
61-
62-
$principal_no_slash = regsubst($principal, '\/', '_')
60+
$principal_no_slash = regsubst($principal, '\/', '_')
6361

64-
if $hostname == undef {
65-
$subject = ''
66-
} else {
67-
$subject = "-N cn=${hostname}"
68-
}
62+
# Only execute certmonger if IPA client is configured
63+
$onlyif = "/usr/bin/test -s /etc/ipa/default.conf"
6964

70-
if $seclib == 'nss' {
71-
$options = "-d ${basedir}/${dbname} -n ${nickname} -p ${basedir}/${dbname}/password.conf"
65+
if $hostname == undef {
66+
$subject = ''
67+
} else {
68+
$subject = "-N cn=${hostname}"
69+
}
7270

73-
file {"${basedir}/${dbname}/requested":
74-
ensure => directory,
75-
mode => 0600,
76-
owner => 0,
77-
group => 0,
78-
}
79-
80-
# Semaphore file to determine if we've already requested a certificate.
81-
file {"${basedir}/${dbname}/requested/${principal_no_slash}":
82-
ensure => file,
83-
mode => 0600,
84-
owner => $owner_id,
85-
group => $group_id,
86-
require => [
87-
Exec["get_cert_nss_${title}"]
88-
],
89-
}
90-
exec {"get_cert_nss_${title}":
91-
command => "/usr/bin/ipa-getcert request ${options} -K ${principal} ${subject}",
92-
creates => "${basedir}/${dbname}/requested/${principal_no_slash}",
93-
require => [
94-
Package['certmonger'],
95-
File["${basedir}/${dbname}/password.conf"],
96-
],
97-
}
98-
}
99-
elsif $seclib == 'openssl' {
71+
if $seclib == 'nss' {
72+
$options = "-d ${basedir}/${dbname} -n ${nickname} -p ${basedir}/${dbname}/password.conf"
73+
$unless = "/usr/bin/getcert list -d ${basedir}/${dbname} -n ${nickname}"
10074

101-
$options = "-k ${key} -f ${cert}"
75+
exec {"get_cert_nss_${title}":
76+
command => "/usr/bin/ipa-getcert request ${options} -K ${principal} ${subject}",
77+
onlyif => "${onlyif}",
78+
unless => "${unless}",
79+
require => [
80+
Service['certmonger'],
81+
File["${basedir}/${dbname}/password.conf"],
82+
],
83+
}
84+
}
85+
elsif $seclib == 'openssl' {
10286

103-
# NOTE: Order is extremely important here. If the key file exists
104-
# (content doesn't matter) then certmonger will attempt to use that
105-
# as the key. You could end up in a NEWLY_ADDED_NEED_KEYINFO_READ_PIN
106-
# state if the key file doesn't actually contain a key.
87+
$options = "-k ${key} -f ${cert}"
88+
$unless = "/usr/bin/getcert list -f ${cert}"
10789

108-
file {"${cert}":
109-
ensure => file,
110-
mode => 0444,
111-
owner => $owner_id,
112-
group => $group_id,
113-
}
114-
file {"${key}":
115-
ensure => file,
116-
mode => 0440,
117-
owner => $owner_id,
118-
group => $group_id,
119-
}
120-
exec {"get_cert_openssl_${title}":
121-
command => "/usr/bin/ipa-getcert request ${options} -K ${principal} ${subject}",
122-
creates => [
123-
"${key}",
124-
"${cert}",
125-
],
126-
require => [
127-
Package['certmonger'],
128-
],
129-
before => [
130-
File["${key}"],
131-
File["${cert}"],
132-
],
133-
notify => Exec["wait_for_certmonger_${title}"],
134-
}
90+
exec {"get_cert_openssl_${title}":
91+
command => "/usr/bin/ipa-getcert request ${options} -K ${principal} ${subject}",
92+
onlyif => "${onlyif}",
93+
unless => "${unless}",
94+
require => [
95+
Service['certmonger'],
96+
],
97+
notify => Exec["wait_for_certmonger_${title}"],
98+
}
13599

136-
# We need certmonger to finish creating the key before we
137-
# can proceed. Use onlyif as a way to execute multiple
138-
# commands without restorting to shipping a shell script.
139-
# This will call getcert to check the status of our cert
140-
# 5 times. This doesn't short circuit though, so all 5 will
141-
# always run, causing a 5-second delay.
142-
exec {"wait_for_certmonger_${title}":
143-
command => "true",
144-
onlyif => [
145-
"sleep 1 && getcert list -f ${cert}",
146-
"sleep 1 && getcert list -f ${cert}",
147-
"sleep 1 && getcert list -f ${cert}",
148-
"sleep 1 && getcert list -f ${cert}",
149-
"sleep 1 && getcert list -f ${cert}",
150-
],
151-
path => "/usr/bin:/bin",
152-
before => [
153-
File["${key}"],
154-
File["${cert}"],
155-
],
156-
refreshonly => true,
157-
}
158-
} else {
159-
fail("Unrecognized security library: ${seclib}")
160-
}
100+
# We need certmonger to finish creating the key before we
101+
# can proceed. Use onlyif as a way to execute multiple
102+
# commands without restorting to shipping a shell script.
103+
# This will call getcert to check the status of our cert
104+
# 5 times. This doesn't short circuit though, so all 5 will
105+
# always run, causing a 5-second delay.
106+
exec {"wait_for_certmonger_${title}":
107+
command => "true",
108+
onlyif => [
109+
"sleep 1 && getcert list -f ${cert}",
110+
"sleep 1 && getcert list -f ${cert}",
111+
"sleep 1 && getcert list -f ${cert}",
112+
"sleep 1 && getcert list -f ${cert}",
113+
"sleep 1 && getcert list -f ${cert}",
114+
],
115+
path => "/usr/bin:/bin",
116+
refreshonly => true,
117+
}
161118
} else {
162-
fail("ipa not configured")
119+
fail("Unrecognized security library: ${seclib}")
163120
}
164121
}

cinder/Modulefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)