Created
November 1, 2012 22:06
-
-
Save gaffo/3996970 to your computer and use it in GitHub Desktop.
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
group {"puppet" : ensure => "present"} | |
# general config options | |
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } | |
exec { 'apt-get update': | |
command => 'sudo apt-get update' | |
} | |
# install rails dependencies | |
package { | |
["puppet", | |
"vim", | |
"git-core", | |
"ruby1.9.3", | |
"build-essential", | |
"zsh", | |
"autoconf", | |
# "libxml2-dev", | |
# "libxslt-dev", | |
"dos2unix", | |
"smbfs" | |
]: | |
ensure => installed | |
} | |
# install ruby | |
include "rvm" | |
rvm::system_user { vagrant: ; } | |
rvm_system_ruby { | |
'ruby-1.9.3-p194': | |
ensure => 'present', | |
default_use => true | |
} | |
# install base gems | |
package { | |
["bundler"]: | |
provider => "gem", | |
ensure => present | |
} | |
# install zsh | |
exec{ | |
"install-oh-my-zsh": | |
command => "curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh", | |
require => [Package["curl"], Package["zsh"]], | |
unless => "test -e /home/vagrant/.oh-my-zsh", | |
user => "vagrant" | |
} | |
exec{ | |
"use-zsh": | |
command => 'sudo sed -i "s/vagrant:\/bin\/bash/vagrant:\/usr\/bin\/zsh/" /etc/passwd', | |
unless => "cat /etc/passwd | grep vagrant | grep zsh", | |
require => Exec["install-oh-my-zsh"], | |
user => "root" | |
} | |
file { | |
"zshrc": | |
path => "/home/vagrant/.zshrc", | |
owner => "vagrant", | |
group => "vagrant", | |
mode => 644, | |
require => Exec["install-oh-my-zsh"], | |
source => "/vagrant/modules/files/zshrc" | |
} | |
file { | |
"/var/rails": | |
ensure => "directory", | |
owner => "root", | |
mode => 777 | |
} | |
file { | |
"/var/rails/project": | |
ensure => "directory", | |
owner => "root", | |
mode => 777, | |
require => File["/var/rails"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
F:\boxes\facebook-prototype>vagrant up
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 3000 => 3001 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Setting host name...
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- manifests: /tmp/vagrant-puppet/manifests
[default] -- v-pp-m0: /tmp/vagrant-puppet/modules-0
[default] Running provisioner: Vagrant::Provisioners::Puppet...
[default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp...
stdin: is not a tty
' in file /tmp/vagrant-puppet/modules-0/rvm/manifests/system.pp at line 6←[0m
' in file /tmp/vagrant-puppet/modules-0/rvm/manifests/system.pp at line 6←[0m
' in file /tmp/vagrant-puppet/modules-0/rvm/manifests/system.pp at line 7←[0m
←[1;35merr: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[libxslt1-dev]/
ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q
-y -o DPkg::Options::=--force-confold install libxslt1-dev' returned 100: Readin
g package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libxml2 libxml2-dev libxslt1.1
The following NEW packages will be installed:
libxml2-dev libxslt1-dev libxslt1.1
The following packages will be upgraded:
libxml2
1 upgraded, 3 newly installed, 0 to remove and 65 not upgraded.
Need to get 2205 kB of archives.
After this operation, 5617 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxml2 amd64 2.7.
8.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxslt1.1 amd64 1
.1.26-8ubuntu1.1
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxslt1-dev amd64
1.1.26-8ubuntu1.1
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libxml2 amd64 2.7.8
.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libxml2-dev amd64 2
.7.8.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2
_2.7.8.dfsg-5.1ubuntu4.1_amd64.deb 404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxs
lt1.1_1.1.26-8ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2
-dev_2.7.8.dfsg-5.1ubuntu4.1_amd64.deb 404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxs
lt1-dev_1.1.26-8ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis
sing?
←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[libsqlite3-
dev]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[sqlite3]/en
sure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[libyaml-dev
]/ensure: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[curl]/ensur
e: ensure changed 'purged' to 'present'←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[bison]/ensu
re: ensure changed 'purged' to 'present'←[0m
←[1;35merr: /Stage[rvm-install]/Rvm::Dependencies::Ubuntu/Package[libxml2-dev]/e
nsure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -
y -o DPkg::Options::=--force-confold install libxml2-dev' returned 100: Reading
package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libxml2
The following NEW packages will be installed:
libxml2-dev
The following packages will be upgraded:
libxml2
1 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
Need to get 1477 kB of archives.
After this operation, 2754 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxml2 amd64 2.7.
8.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libxml2 amd64 2.7.8
.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libxml2-dev amd64 2
.7.8.dfsg-5.1ubuntu4.1
404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2
_2.7.8.dfsg-5.1ubuntu4.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2
-dev_2.7.8.dfsg-5.1ubuntu4.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis
sing?
←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::System/Exec[system-rvm]: Dependency Pack
age[libxml2-dev] has failures: true←[0m
←[0;36mnotice: /Stage[rvm-install]/Rvm::System/Exec[system-rvm]: Dependency Pack
age[libxslt1-dev] has failures: true←[0m
←[0;33mwarning: /Stage[rvm-install]/Rvm::System/Exec[system-rvm]: Skipping becau
se of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Package[bundler]: Dependency Package[libxslt1-dev]
has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[bundler]: Dependency Package[libxml2-dev] h
as failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[bundler]: Skipping because of failed depen
dencies←[0m
←[0;36mnotice: /Stage[main]//Package[build-essential]: Dependency Package[libxsl
t1-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[build-essential]: Dependency Package[libxml
2-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[build-essential]: Skipping because of fail
ed dependencies←[0m
←[0;36mnotice: /Stage[main]//Package[dos2unix]: Dependency Package[libxslt1-dev]
has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[dos2unix]: Dependency Package[libxml2-dev]
has failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[dos2unix]: Skipping because of failed depe
ndencies←[0m
←[0;36mnotice: /Stage[main]//Package[smbfs]: Dependency Package[libxslt1-dev] ha
s failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[smbfs]: Dependency Package[libxml2-dev] has
failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[smbfs]: Skipping because of failed depende
ncies←[0m
←[0;36mnotice: /Stage[main]//Package[git-core]: Dependency Package[libxslt1-dev]
has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[git-core]: Dependency Package[libxml2-dev]
has failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[git-core]: Skipping because of failed depe
ndencies←[0m
←[0;36mnotice: /Stage[main]//Exec[apt-get update]: Dependency Package[libxslt1-d
ev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Exec[apt-get update]: Dependency Package[libxml2-de
v] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Exec[apt-get update]: Skipping because of failed d
ependencies←[0m
←[0;36mnotice: /Stage[main]//File[/var/rails]: Dependency Package[libxslt1-dev]
has failures: true←[0m
←[0;36mnotice: /Stage[main]//File[/var/rails]: Dependency Package[libxml2-dev] h
as failures: true←[0m
←[0;33mwarning: /Stage[main]//File[/var/rails]: Skipping because of failed depen
dencies←[0m
←[0;36mnotice: /Stage[main]//File[/var/rails/project]: Dependency Package[libxml
2-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//File[/var/rails/project]: Dependency Package[libxsl
t1-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//File[/var/rails/project]: Skipping because of fail
ed dependencies←[0m
←[0;36mnotice: /Stage[main]//Package[autoconf]: Dependency Package[libxslt1-dev]
has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[autoconf]: Dependency Package[libxml2-dev]
has failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[autoconf]: Skipping because of failed depe
ndencies←[0m
←[0;36mnotice: /Stage[main]//Package[zsh]: Dependency Package[libxslt1-dev] has
failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[zsh]: Dependency Package[libxml2-dev] has f
ailures: true←[0m
←[0;33mwarning: /Stage[main]//Package[zsh]: Skipping because of failed dependenc
ies←[0m
←[0;36mnotice: /Stage[main]//Package[ruby1.9.3]: Dependency Package[libxslt1-dev
] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[ruby1.9.3]: Dependency Package[libxml2-dev]
has failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[ruby1.9.3]: Skipping because of failed dep
endencies←[0m
←[0;36mnotice: /Stage[main]//Package[vim]: Dependency Package[libxslt1-dev] has
failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[vim]: Dependency Package[libxml2-dev] has f
ailures: true←[0m
←[0;33mwarning: /Stage[main]//Package[vim]: Skipping because of failed dependenc
ies←[0m
←[0;36mnotice: /Stage[main]//Group[puppet]: Dependency Package[libxslt1-dev] has
failures: true←[0m
←[0;36mnotice: /Stage[main]//Group[puppet]: Dependency Package[libxml2-dev] has
failures: true←[0m
←[0;33mwarning: /Stage[main]//Group[puppet]: Skipping because of failed dependen
cies←[0m
←[0;36mnotice: /Stage[main]//Package[puppet]: Dependency Package[libxslt1-dev] h
as failures: true←[0m
←[0;36mnotice: /Stage[main]//Package[puppet]: Dependency Package[libxml2-dev] ha
s failures: true←[0m
←[0;33mwarning: /Stage[main]//Package[puppet]: Skipping because of failed depend
encies←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/Group[rvm]: Dependency Pa
ckage[libxml2-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/Group[rvm]: Dependency Pa
ckage[libxslt1-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Rvm::System_user[vagrant]/Group[rvm]: Skipping bec
ause of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/User[vagrant]: Dependency
Package[libxml2-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/User[vagrant]: Dependency
Package[libxslt1-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Rvm::System_user[vagrant]/User[vagrant]: Skipping
because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/Exec[/usr/sbin/usermod -a
-G rvm vagrant]: Dependency Package[libxslt1-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Rvm::System_user[vagrant]/Exec[/usr/sbin/usermod -a
-G rvm vagrant]: Dependency Package[libxml2-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Rvm::System_user[vagrant]/Exec[/usr/sbin/usermod -
a -G rvm vagrant]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]//Exec[install-oh-my-zsh]: Dependency Package[libxslt
1-dev] has failures: true←[0m
←[0;36mnotice: /Stage[main]//Exec[install-oh-my-zsh]: Dependency Package[libxml2
-dev] has failures: true←[0m
←[0;33mwarning: /Stage[main]//Exec[install-oh-my-zsh]: Skipping because of faile
d dependencies←[0m
←[0;36mnotice: /Stage[main]//Exec[use-zsh]: Dependency Package[libxslt1-dev] has
failures: true←[0m
←[0;36mnotice: /Stage[main]//Exec[use-zsh]: Dependency Package[libxml2-dev] has
failures: true←[0m
←[0;33mwarning: /Stage[main]//Exec[use-zsh]: Skipping because of failed dependen
cies←[0m
←[0;36mnotice: /Stage[main]//File[zshrc]: Dependency Package[libxslt1-dev] has f
ailures: true←[0m
←[0;36mnotice: /Stage[main]//File[zshrc]: Dependency Package[libxml2-dev] has fa
ilures: true←[0m
←[0;33mwarning: /Stage[main]//File[zshrc]: Skipping because of failed dependenci
es←[0m
←[1;35merr: Could not find a suitable provider for rvm_system_ruby←[0m
←[0;36mnotice: Finished catalog run in 12.47 seconds←[0m
F:\boxes\facebook-prototype>