Last active
August 29, 2015 13:57
-
-
Save iox/9723332 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
include apt | |
Exec { path => '/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin' } | |
exec { "apt-update": | |
command => "apt-get update" } | |
exec { "install-bundler": | |
command => "gem install bundler" } | |
exec { "run-bundle": | |
command => 'su - vagrant /bin/sh -c "cd /vagrant && bundle install"', | |
path => '/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin', | |
timeout => 3600 | |
} | |
exec { "ruby-switch": | |
command => "/usr/bin/ruby-switch --set ruby2.0" } | |
apt::ppa { 'ppa:brightbox/ruby-ng-experimental': } | |
# Packages | |
package { 'aptitude' : } | |
package { 'git-core' : } | |
package { 'build-essential' : } | |
package { 'libqtwebkit-dev' : } | |
package { 'libpq-dev' : } | |
package { 'libxml2' : } | |
package { 'libxml2-dev' : } | |
package { 'libxslt-dev' : } | |
package { 'default-jre' : } | |
package { 'ffmpeg' : } | |
package { 'libavcodec-extra-53':} | |
package { 'x264':} | |
package { 'libx264-dev':} | |
package { 'nodejs':} | |
package { 'gpac':} | |
package { 'ruby2.0' : | |
require => Apt::Ppa['ppa:brightbox/ruby-ng-experimental']} | |
package { 'ruby2.0-dev' : | |
require => Apt::Ppa['ppa:brightbox/ruby-ng-experimental']} | |
package { 'ruby-switch' : | |
require => Apt::Ppa['ppa:brightbox/ruby-ng-experimental']} | |
package { 'postgresql-9.1' : } | |
file { "/etc/postgresql/9.1/main/pg_hba.conf": | |
owner => root, | |
group => root, | |
mode => 644, | |
source => "/vagrant/environment/pg_hba.conf" | |
} | |
Package['ruby2.0'] -> | |
Exec['ruby-switch'] -> | |
Exec['install-bundler'] -> | |
Exec['run-bundle'] | |
Exec["apt-update"] -> Package <| |> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'lxc' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://bit.ly/vagrant-lxc-precise64-2013-10-23" | |
config.vm.network :forwarded_port, guest: 3000, host: 3001 | |
config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "environment" | |
puppet.manifest_file = "manifest.pp" | |
puppet.module_path = "environment/modules" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment