forked from cblument/puppetlabs-nova
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is a refactor of work performed by Derek Higgins that adds fedora 16 support to these openstack modules. It contains the following: - creates a params class to store all of the data differences. - installs all packages on all nova nodes - introuces an anchor that is used to specify ordering for things that need to occur before nova is installed. - manages libvirt package and service in the nova::compute::libvirt class
- Loading branch information
Dan Bode
committed
Mar 15, 2012
1 parent
649f335
commit e66e5ab
Showing
12 changed files
with
112 additions
and
44 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
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
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
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
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
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
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
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
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
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,42 @@ | ||
# these parameters need to be accessed from several locations and | ||
# should be considered to be constant | ||
class nova::params { | ||
|
||
case $::osfamily { | ||
'RedHat': { | ||
$package_names = 'openstack-nova' | ||
$doc_package_name = 'openstack-nova-doc' | ||
$api_service_name = 'openstack-nova-api' | ||
$compute_service_name = 'openstack-nova-compute' | ||
$network_service_name = 'openstack-nova-network' | ||
$objectstore_service_name = 'openstack-nova-objectstore' | ||
$scheduler_service_name = 'openstack-nova-scheduler' | ||
$libvirt_package_name = 'libvirt' | ||
$libvirt_service_name = 'libvirtd' | ||
$special_service_provider = 'init' | ||
} | ||
'Debian': { | ||
$package_names = ['nova-common', | ||
'nova-api', | ||
'nova-compute', | ||
'nova-network', | ||
'nova-objectstore', | ||
'nova-scheduler' | ||
] | ||
$doc_package_name = 'nova-doc' | ||
$api_service_name = 'nova-api' | ||
$compute_service_name = 'nova-compute' | ||
$network_service_name = 'nova-network' | ||
$objectstore_service_name = 'nova-objectstore' | ||
$scheduler_service_name = 'nova-scheduler' | ||
$libvirt_package_name = 'libvirt-bin' | ||
$libvirt_service_name = 'libvirt-bin' | ||
# some of the services need to be started form the special upstart provider | ||
$special_service_provider = 'upstart' | ||
} | ||
default: { | ||
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian") | ||
} | ||
} | ||
|
||
} |
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
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