removed the confighash
changed isserviceenabled flag to enable. - updated it to effect ensure and enable state of service
This commit is contained in:
parent
ef9cc48812
commit
87a5091e3a
|
@ -18,31 +18,12 @@ class nova::all(
|
|||
$ipv6_backend = 'account_identifier'
|
||||
) {
|
||||
|
||||
$novaConfFlags = {
|
||||
verbose => $verbose,
|
||||
nodaemon => $nodaemon,
|
||||
sql_connection => $sql_connetion,
|
||||
network_manager => $network_manager,
|
||||
image_service => $image_service,
|
||||
flat_network_bridge => $flat_network_bridge,
|
||||
connection_type => $connection_type,
|
||||
xenapi_connection_url => $xenapi_connection_url,
|
||||
xenapi_connection_username => $xenapi_connection_username,
|
||||
xenapi_connection_password => $xenapi_connection_password,
|
||||
xenapi_inject_image => $xenapi_inject_image,
|
||||
rescue_timeout => $resuce_timeout,
|
||||
allow_admin_api => $allow_admin_api,
|
||||
xenapi_inject_image => $xenapi_inject_image,
|
||||
use_ipv6 => $use_ipv6,
|
||||
flat_injected => $flat_injected,
|
||||
ipv6_backend => $ipv6_backend
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::api": isServiceEnabled => false }
|
||||
class { "nova::compute": isServiceEnabled => false }
|
||||
class { "nova::network": isServiceEnabled => false }
|
||||
class { "nova::objectstore": isServiceEnabled => false }
|
||||
class { "nova::scheduler": isServiceEnabled => false }
|
||||
class { "nova": }
|
||||
class { "nova::api": enabled => false }
|
||||
class { "nova::compute": enabled => false }
|
||||
class { "nova::network": enabled => false }
|
||||
class { "nova::objectstore": enabled => false }
|
||||
class { "nova::scheduler": enabled => false }
|
||||
class { 'nova::db':
|
||||
password => 'password',
|
||||
name => 'nova',
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
class nova::api($isServiceEnabled=false) inherits nova {
|
||||
class nova::api($enabled=false) inherits nova {
|
||||
|
||||
if $enabled {
|
||||
$service_ensure = 'running'
|
||||
} else {
|
||||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
package { "nova-api":
|
||||
ensure => present,
|
||||
require => Package["python-greenlet"]
|
||||
}
|
||||
service { "nova-api":
|
||||
ensure => $isServiceEnabled,
|
||||
ensure => $service_ensure,
|
||||
enable => $enabled,
|
||||
require => Package["nova-api"],
|
||||
subscribe => File["/etc/nova/nova.conf"]
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
class nova(
|
||||
$verbose = false,
|
||||
$nodaemon = false,
|
||||
sql_connection,
|
||||
$nodaemon = false
|
||||
$logdir = ''
|
||||
$sql_connection,
|
||||
# just for network?
|
||||
network_manager
|
||||
$network_manager
|
||||
) {
|
||||
|
||||
class { 'puppet': }
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
class nova::network( $isServiceEnabled=false ) inherits nova {
|
||||
class nova::network( $enabled=false ) inherits nova {
|
||||
|
||||
if $enabled {
|
||||
$service_ensure = 'running'
|
||||
} else {
|
||||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
package { "nova-network":
|
||||
ensure => present,
|
||||
require => Package["python-greenlet"]
|
||||
}
|
||||
|
||||
service { "nova-network":
|
||||
ensure => $isServiceEnabled,
|
||||
ensure => $service_ensure,
|
||||
enable => $enabled,
|
||||
require => Package["nova-network"],
|
||||
subscribe => File["/etc/nova/nova.conf"]
|
||||
}
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
class nova::objectstore( $isServiceEnabled=false ) inherits nova {
|
||||
class nova::objectstore( $enabled=false ) inherits nova {
|
||||
|
||||
if $enabled {
|
||||
$service_ensure = 'running'
|
||||
} else {
|
||||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
package { "nova-objectstore":
|
||||
ensure => present,
|
||||
require => Package["python-greenlet"]
|
||||
}
|
||||
|
||||
service { "nova-objectstore":
|
||||
ensure => $isServiceEnabled,
|
||||
ensure => $service_ensure,
|
||||
enable => $enabled,
|
||||
require => Package["nova-objectstore"],
|
||||
subscribe => File["/etc/nova/nova.conf"]
|
||||
}
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
class nova::scheduler( $isServiceEnabled ) inherits nova {
|
||||
class nova::scheduler( $enabled ) inherits nova {
|
||||
|
||||
if $enabled {
|
||||
$service_ensure = 'running'
|
||||
} else {
|
||||
$service_ensure = 'stopped'
|
||||
}
|
||||
|
||||
package { "nova-scheduler":
|
||||
ensure => present,
|
||||
require => Package["python-greenlet"]
|
||||
}
|
||||
|
||||
service { "nova-scheduler":
|
||||
ensure => $isServiceEnabled,
|
||||
ensure => $service_ensure,
|
||||
enable => $enabled,
|
||||
require => Package["nova-scheduler"],
|
||||
subscribe => File["/etc/nova/nova.conf"]
|
||||
}
|
||||
|
|
|
@ -1,24 +1,4 @@
|
|||
class nova-api-test {
|
||||
$novaConfFlags = {
|
||||
verbose => 'undef',
|
||||
nodaemon => 'undef',
|
||||
sql_connection => 'mysql://root:<password>@127.0.0.1/nova',
|
||||
network_manager => 'nova.network.manager.FlatManager',
|
||||
image_service => 'nova.image.glance.GlanceImageService',
|
||||
flat_network_bridge => 'xenbr0',
|
||||
connection_type => 'xenapi',
|
||||
xenapi_connection_url => 'https://<XenServer IP>',
|
||||
xenapi_connection_username => 'root',
|
||||
xenapi_connection_password => 'password',
|
||||
xenapi_inject_image => 'false',
|
||||
rescue_timeout => '86400',
|
||||
allow_admin_api => 'true',
|
||||
xenapi_inject_image => 'false',
|
||||
use_ipv6 => 'false',
|
||||
flat_injected => 'true',
|
||||
ipv6_backend => 'account_identifier',
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::api": isServiceEnabled => false }
|
||||
class { "nova":
|
||||
|
||||
}
|
||||
include nova-api-test
|
||||
class { "nova::api": enabled => false }
|
||||
|
|
|
@ -1,32 +1,7 @@
|
|||
#include nova::compute
|
||||
class nova-compute-test {
|
||||
$novaConfFlags = {
|
||||
verbose => 'undef',
|
||||
nodaemon => 'undef',
|
||||
sql_connection => 'mysql://root:<password>@127.0.0.1/nova',
|
||||
network_manager => 'nova.network.manager.FlatManager',
|
||||
image_service => 'nova.image.glance.GlanceImageService',
|
||||
flat_network_bridge => 'xenbr0',
|
||||
connection_type => 'xenapi',
|
||||
xenapi_connection_url => 'https://<XenServer IP>',
|
||||
xenapi_connection_username => 'root',
|
||||
xenapi_connection_password => 'password',
|
||||
xenapi_inject_image => 'false',
|
||||
rescue_timeout => '86400',
|
||||
allow_admin_api => 'true',
|
||||
xenapi_inject_image => 'false',
|
||||
use_ipv6 => 'true',
|
||||
flat_injected => 'true',
|
||||
ipv6_backend => 'account_identifier',
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::compute": isServiceEnabled => false }
|
||||
}
|
||||
include nova-compute-test
|
||||
|
||||
|
||||
class { 'nova::compute':
|
||||
|
||||
}
|
||||
|
||||
class { 'nova': }
|
||||
class { 'nova':
|
||||
|
||||
}
|
||||
|
|
|
@ -1,24 +1,6 @@
|
|||
class nova-network-test {
|
||||
$novaConfFlags = {
|
||||
verbose => 'undef',
|
||||
nodaemon => 'undef',
|
||||
sql_connection => 'mysql://root:<password>@127.0.0.1/nova',
|
||||
network_manager => 'nova.network.manager.FlatManager',
|
||||
image_service => 'nova.image.glance.GlanceImageService',
|
||||
flat_network_bridge => 'xenbr0',
|
||||
connection_type => 'xenapi',
|
||||
xenapi_connection_url => 'https://<XenServer IP>',
|
||||
xenapi_connection_username => 'root',
|
||||
xenapi_connection_password => 'password',
|
||||
xenapi_inject_image => 'false',
|
||||
rescue_timeout => '86400',
|
||||
allow_admin_api => 'true',
|
||||
xenapi_inject_image => 'false',
|
||||
use_ipv6 => 'true',
|
||||
flat_injected => 'true',
|
||||
ipv6_backend => 'account_identifier',
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::network": isServiceEnabled => false }
|
||||
class { "nova":
|
||||
|
||||
}
|
||||
class { "nova::network":
|
||||
enabled => false
|
||||
}
|
||||
include nova-network-test
|
||||
|
|
|
@ -1,24 +1,6 @@
|
|||
class nova-objectstore-test {
|
||||
$novaConfFlags = {
|
||||
verbose => 'undef',
|
||||
nodaemon => 'undef',
|
||||
sql_connection => 'mysql://root:<password>@127.0.0.1/nova',
|
||||
network_manager => 'nova.network.manager.FlatManager',
|
||||
image_service => 'nova.image.glance.GlanceImageService',
|
||||
flat_network_bridge => 'xenbr0',
|
||||
connection_type => 'xenapi',
|
||||
xenapi_connection_url => 'https://<XenServer IP>',
|
||||
xenapi_connection_username => 'root',
|
||||
xenapi_connection_password => 'password',
|
||||
xenapi_inject_image => 'false',
|
||||
rescue_timeout => '86400',
|
||||
allow_admin_api => 'true',
|
||||
xenapi_inject_image => 'false',
|
||||
use_ipv6 => 'true',
|
||||
flat_injected => 'true',
|
||||
ipv6_backend => 'account_identifier',
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::objectstore": isServiceEnabled => false }
|
||||
class { "nova":
|
||||
|
||||
}
|
||||
class { "nova::objectstore":
|
||||
enabled => false
|
||||
}
|
||||
include nova-objectstore-test
|
||||
|
|
|
@ -1,24 +1,6 @@
|
|||
class nova-scheduler-test {
|
||||
$novaConfFlags = {
|
||||
verbose => 'undef',
|
||||
nodaemon => 'undef',
|
||||
sql_connection => 'mysql://root:<password>@127.0.0.1/nova',
|
||||
network_manager => 'nova.network.manager.FlatManager',
|
||||
image_service => 'nova.image.glance.GlanceImageService',
|
||||
flat_network_bridge => 'xenbr0',
|
||||
connection_type => 'xenapi',
|
||||
xenapi_connection_url => 'https://<XenServer IP>',
|
||||
xenapi_connection_username => 'root',
|
||||
xenapi_connection_password => 'password',
|
||||
xenapi_inject_image => 'false',
|
||||
rescue_timeout => '86400',
|
||||
allow_admin_api => 'true',
|
||||
xenapi_inject_image => 'false',
|
||||
use_ipv6 => 'true',
|
||||
flat_injected => 'true',
|
||||
ipv6_backend => 'account_identifier',
|
||||
}
|
||||
class { "nova": novaConfHash => $novaConfFlags }
|
||||
class { "nova::scheduler": isServiceEnabled => false }
|
||||
class { "nova":
|
||||
|
||||
}
|
||||
class { "nova::scheduler":
|
||||
enabled => false
|
||||
}
|
||||
include nova-scheduler-test
|
||||
|
|
Loading…
Reference in New Issue