Skip to content

Commit

Permalink
Add an example Vagrantfile to try the module
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Sanchez committed Jun 3, 2013
1 parent 1b0b2d6 commit 4945aba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea
.rvmrc
.project
.librarian/
.tmp/
doc/
spec/fixtures/
pkg/
.vagrant/
17 changes: 17 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "CentOS-6.4-x86_64-minimal"

config.vm.synced_folder ".", "/etc/puppet/modules/rvm"

# install the epel module needed for rvm in CentOS
config.vm.provision :shell, :inline => "test -d /etc/puppet/modules/epel || puppet module install stahnma/epel -v 0.0.3"

config.vm.provision :puppet do |puppet|
puppet.manifests_path = "spec/manifests"
puppet.manifest_file = "site.pp"
end

end
4 changes: 4 additions & 0 deletions spec/manifests/site.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
stage { 'epel': before => Stage['rvm-install'] }

class { 'epel': stage => 'epel' } ->
class { 'rvm': }

0 comments on commit 4945aba

Please sign in to comment.