Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added git and pip functions to be used in the new nova module
- Loading branch information
Bogdan Gaza
committed
Dec 30, 2011
1 parent
249ecf3
commit 8a52af9
Showing
3 changed files
with
106 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class nova { | ||
require "nova-common" | ||
|
||
include nova::install | ||
} |
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,47 @@ | ||
class nova::install { | ||
|
||
require 'mysql' | ||
require 'rabbitmq' | ||
|
||
$nova_packages = [ "lvm2", "open-iscsi", "open-iscsi-utils" ] | ||
$nova_baseline = ["dnsmasq-base", "dnsmasq-utils", "kpartx", "parted", "arping", "iputils-arping", "python-mysqldb", "python-xattr", "python-lxml", "gawk", "iptables", "ebtables", "sqlite3", "sudo", "kvm", "vlan", "socat", "python-mox", "python-paste", "python-migrate", "python-gflags", "python-libvirt", "python-libxml2", "python-routes", "python-netaddr", "python-pastedeploy", "python-eventlet", "python-cheetah", "python-carrot", "python-tempita", "python-sqlalchemy", "python-suds", "python-lockfile", "python-m2crypto", "python-boto", "python-kombu", "python-feedparser"] | ||
|
||
package { $nova_packages : | ||
ensure => latest | ||
} | ||
|
||
package { $nova_baseline : | ||
ensure => latest | ||
} | ||
|
||
git::clone { "nova" : | ||
source => "https://github.com/openstack/nova.git", | ||
real_name => "nova", | ||
localtree => "/opt/stack", | ||
branch => "master" | ||
} | ||
|
||
git::clone { "nova-client" : | ||
source => "https://github.com/openstack/python-novaclient.git", | ||
real_name => "python-novaclient", | ||
localtree => "/opt/stack", | ||
branch => "master" | ||
} | ||
|
||
exec { "python-install-nova-client": | ||
path => "/usr/local/bin:/usr/bin:/bin", | ||
cwd => "/opt/stack/python-novaclient", | ||
command => "python setup.py develop", | ||
timeout => 0, | ||
require => Package["build-essential"] | ||
} | ||
|
||
exec { "python-install-nova": | ||
path => "/usr/local/bin:/usr/bin:/bin", | ||
cwd => "/opt/stack/nova", | ||
command => "python setup.py develop", | ||
timeout => 0, | ||
require => Package["build-essential"] | ||
} | ||
|
||
} |