Skip to content

Commit dd55a55

Browse files
committed
Merge pull request #160 from bodepd/folsom
Folsom
2 parents 440d807 + a629d5d commit dd55a55

Some content is hidden

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

46 files changed

+328
-525
lines changed

.fixtures.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ fixtures:
66
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
77
"sysctl": "git://github.com/duritong/puppet-sysctl.git"
88
"rabbitmq": "git://github.com/puppetlabs/puppetlabs-rabbitmq.git"
9+
'inifile': 'git://github.com/cprice-puppet/puppetlabs-inifile'
910
symlinks:
1011
"nova": "#{source_dir}"

examples/all.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
class { 'keystone':
7272
admin_token => $keystone_admin_token,
7373
bind_host => '127.0.0.1',
74-
log_verbose => true,
75-
log_debug => true,
74+
verbose => true,
75+
debug => true,
7676
catalog_type => 'sql',
7777
}
7878
# set up keystone admin users
@@ -97,8 +97,8 @@
9797
}
9898

9999
class { 'glance::api':
100-
log_verbose => 'True',
101-
log_debug => 'True',
100+
verbose => 'True',
101+
debug => 'True',
102102
auth_type => 'keystone',
103103
auth_host => '127.0.0.1',
104104
auth_port => '35357',
@@ -109,8 +109,8 @@
109109
class { 'glance::backend::file': }
110110

111111
class { 'glance::registry':
112-
log_verbose => 'True',
113-
log_debug => 'True',
112+
verbose => 'True',
113+
debug => 'True',
114114
auth_type => 'keystone',
115115
auth_host => '127.0.0.1',
116116
auth_port => '35357',

examples/multi.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
class { 'keystone':
9292
admin_token => $keystone_admin_token,
9393
bind_host => '127.0.0.1',
94-
log_verbose => true,
95-
log_debug => true,
94+
verbose => true,
95+
debug => true,
9696
catalog_type => 'sql',
9797
}
9898
# set up keystone admin users
@@ -117,8 +117,8 @@
117117
}
118118

119119
class { 'glance::api':
120-
log_verbose => 'True',
121-
log_debug => 'True',
120+
verbose => 'True',
121+
debug => 'True',
122122
auth_type => 'keystone',
123123
auth_host => '127.0.0.1',
124124
auth_port => '35357',
@@ -129,8 +129,8 @@
129129
class { 'glance::backend::file': }
130130

131131
class { 'glance::registry':
132-
log_verbose => 'True',
133-
log_debug => 'True',
132+
verbose => 'True',
133+
debug => 'True',
134134
auth_type => 'keystone',
135135
auth_host => '127.0.0.1',
136136
auth_port => '35357',

examples/site.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@
164164
password => 'keystone'
165165
}
166166
class { 'keystone':
167-
log_verbose => true,
168-
log_debug => true,
167+
verbose => true,
168+
debug => true,
169169
catalog_type => 'sql',
170170
}->
171171
class { 'keystone::mysql':

lib/puppet/provider/nova_config/parsed.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
:filetype => :flat
88
) do
99

10-
confine :osfamily => [:debian]
1110

1211
#confine :exists => novaconf
1312
text_line :comment, :match => /^\s*#/;

lib/puppet/provider/nova_config/parsed_config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
:filetype => :flat
88
) do
99

10-
confine :osfamily => [:redhat]
10+
confine :osfamily => [:debian, :redhat]
11+
defaultfor :operatingsystem => :debian
1112

1213
#confine :exists => novaconf
1314
text_line :comment, :match => /#|\[.*/;

lib/puppet/provider/nova_network/nova_manage.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ def create
3838
end
3939

4040
nova_manage('network', 'create',
41-
"--label=#{resource[:label]}",
42-
"--fixed_range_v4=#{resource[:name]}",
43-
"--num_networks=#{resource[:num_networks]}",
41+
resource[:label],
42+
resource[:name],
43+
resource[:num_networks],
44+
resource[:network_size],
4445
optional_opts
4546
)
4647
end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Puppet::Type.type(:nova_paste_api_ini).provide(
2+
:ini_setting,
3+
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
4+
) do
5+
6+
def section
7+
resource[:name].split('/', 2).first
8+
end
9+
10+
def setting
11+
resource[:name].split('/', 2).last
12+
end
13+
14+
def separator
15+
'='
16+
end
17+
18+
def file_path
19+
'/etc/nova/api-paste.ini'
20+
end
21+
22+
end

lib/puppet/type/nova_network.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
desc 'project that the network is associated with'
3232
end
3333

34-
# we are not currently using this stuff
3534
newparam(:gateway) do
36-
3735
end
3836

3937
newparam(:dns2) do
40-
4138
end
4239

4340
newparam(:vlan_start) do
41+
end
4442

43+
newparam(:network_size) do
44+
defaultto('256')
4545
end
4646

4747
validate do
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Puppet::Type.newtype(:nova_paste_api_ini) do
2+
3+
ensurable
4+
5+
newparam(:name, :namevar => true) do
6+
desc 'Section/setting name to manage from nova/paste-api.ini'
7+
newvalues(/\S+\/\S+/)
8+
end
9+
10+
newproperty(:value) do
11+
desc 'The value of the setting to be defined.'
12+
munge do |v|
13+
v.to_s.strip
14+
end
15+
end
16+
17+
18+
end

0 commit comments

Comments
 (0)