Merge pull request #36 from michaeltchapman/prov_order
Allow multiple runs of basic test. Move package installs of git vim curl...
This commit is contained in:
5
Vagrantfile
vendored
5
Vagrantfile
vendored
@@ -197,9 +197,11 @@ Vagrant::Config.run do |config|
|
||||
end
|
||||
|
||||
config.vm.provision :shell do |shell|
|
||||
shell.inline = "%s apt-get update; dhclient -r eth0 && dhclient eth0; apt-get install -y git vim curl;" % apt_cache_proxy
|
||||
shell.inline = "%s apt-get update; dhclient -r eth0 && dhclient eth0;" % apt_cache_proxy
|
||||
end
|
||||
|
||||
apply_manifest(config, v_config, 'setup.pp')
|
||||
|
||||
# pre-import the ubuntu image if we are using a custom mirror
|
||||
if v_config['apt-mirror'] != 'us.archive.ubuntu.com'
|
||||
config.vm.provision :shell do |shell|
|
||||
@@ -207,7 +209,6 @@ Vagrant::Config.run do |config|
|
||||
end
|
||||
end
|
||||
|
||||
apply_manifest(config, v_config, 'setup.pp')
|
||||
apply_manifest(config, v_config)
|
||||
|
||||
# Configure puppet
|
||||
|
||||
@@ -50,6 +50,6 @@ file { '/root/run_puppet.sh':
|
||||
puppet apply --modulepath /etc/puppet/modules-0/ --certname ${clientcert} /etc/puppet/manifests/site.pp $*"
|
||||
}
|
||||
|
||||
package { ['git', 'curl', 'vim']:
|
||||
package { ['git', 'curl', 'vim', 'cobbler']:
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
@@ -14,10 +14,16 @@ ret=0
|
||||
datestamp=`date "+%Y%m%d%H%M%S"`
|
||||
|
||||
# install librarian-puppet-simple
|
||||
mkdir vendor
|
||||
mkdir -p vendor
|
||||
export GEM_HOME=`pwd`/vendor
|
||||
gem install thor --no-ri --no-rdoc
|
||||
git clone git://github.com/bodepd/librarian-puppet-simple vendor/librarian-puppet-simple
|
||||
if [ -d vendor/librarian-puppet-simple ]; then
|
||||
cd vendor/librarian-puppet-simple
|
||||
git pull
|
||||
cd ../..
|
||||
else
|
||||
git clone git://github.com/bodepd/librarian-puppet-simple vendor/librarian-puppet-simple
|
||||
fi
|
||||
export PATH=`pwd`/vendor/librarian-puppet-simple/bin/:$PATH
|
||||
|
||||
# puppet_repos_to_use
|
||||
|
||||
Reference in New Issue
Block a user