initial commit for git project.

This commit is contained in:
Dan Bode 2011-05-25 15:11:27 -07:00
commit a441a5387e
10 changed files with 119 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.swp

1
README Normal file
View File

@ -0,0 +1 @@
This is actively under development, please do not use!!!!!

28
Rakefile Normal file
View File

@ -0,0 +1,28 @@
remote_modules = [
'git@github.com:bodepd/puppet-apt.git',
'git@github.com:bodepd/puppetlabs-mysql.git' ,
'git@github.com:bodepd/puppetlabs-gcc.git',
'git@github.com:bodepd/puppetlabs-git.git',
'git@github.com:bodepd/puppetlabs-rabbitmq.git'
]
task :prepare do
ignore_add = []
puts 'Downloading remote packages'
ignore_file = File.join(File.dirname(__FILE__), '.gitignore')
FileUtils.touch(ignore_file) unless File.exists?(ignore_file)
File.open(ignore_file, 'w') do |fh|
remote_modules.each do |mymodule|
puts `git clone #{mymodule}`
if mymodule =~ /.*?\/(\w+-(\w+))\.git$/
if File.read(ignore_file).grep(/#{mymodule}/).empty?
fh.puts($2)
end
puts "mv #{$1} #{$2}"
FileUtils.mv($1, $2)
else
raise ArgumentError, "Invalid module name #{mymodule}"
end
end
end
end

3
bzr/manifests/init.pp Normal file
View File

@ -0,0 +1,3 @@
class bzr {
package { 'bzr': ensure => present }
}

View File

@ -0,0 +1,6 @@
# unzip swig screen parted curl euca2ools - extra packages
class extrapackages {
package { ['unzip', 'swig', 'screen', 'parted', 'curl', 'euca2ools']:
ensure => present
}
}

20
nova/manifests/init.pp Normal file
View File

@ -0,0 +1,20 @@
class nova {
class { 'puppet': }
class {
[
'bzr',
'git',
'gcc',
'extrapackages',
# I may need to move python-mysqldb to elsewhere if it depends on mysql
'python',
]:
}
class { 'mysql::server':
mysql_root_pw => 'password',
}
#mysql::db { ['nova', 'glance']:}
#class rabbitmq::server {
#
# }
}

8
nova/manifests/repo.pp Normal file
View File

@ -0,0 +1,8 @@
class nova::repo {
apt::source { 'openstack':
location => 'http://jenkins.ohthree.com',
release => 'unstable',
repos => 'main',
include_src => false,
}
}

7
nova/tests/init.pp Normal file
View File

@ -0,0 +1,7 @@
stage { 'repo-setup':
before => Stage['main'],
}
class { ['apt', 'nova::repo']:
stage => 'repo-setup',
}
class { 'nova': }

6
puppet/manifests/init.pp Normal file
View File

@ -0,0 +1,6 @@
class puppet {
user { 'puppet':
ensure => present,
shell => '/usr/sbin/nologin',
}
}

39
python/manifests/init.pp Normal file
View File

@ -0,0 +1,39 @@
# this is all of the python deps for openstack
# I should probably split these up to be more
# compartamelalzed
class python {
package {
[
'python-gflags',
'python-carrot',
'python-eventlet',
'python-ipy',
'python-sqlalchemy',
'python-mysqldb',
'python-webob',
'python-mox',
'python-routes',
'python-daemon',
'python-boto',
'python-m2crypto',
'python-cheetah',
'python-netaddr',
'python-pastedeploy',
'python-migrate',
'python-tempita',
'python-twisted',
'python-setuptools',
'python-nose',
'python-dev',
'python-pip',
'python-sphinx',
'python-argparse'
]:
ensure => present,
}
package { ['pep8', 'xenapi', 'python-novaclient']:
provider => 'pip',
ensure => present,
require => Package['python-pip'],
}
}