Skip to content

Instantly share code, notes, and snippets.

@sideshowcoder
Created September 4, 2013 16:39
Show Gist options
  • Save sideshowcoder/6439548 to your computer and use it in GitHub Desktop.
Save sideshowcoder/6439548 to your computer and use it in GitHub Desktop.
Setting up Riak with Vagrant and Puppet
class basic {
exec {"apt-get-update":
command => "/usr/bin/apt-get update --fix-missing"
}
package { "curl":
ensure => installed
}
}
include basic
include riak_precise64
[project/puppet]$ tree
.
├── manifests
│   └── init.pp
└── modules
└── riak_precise64
├── README.mdown
├── files
│   └── app.config
└── manifests
└── init.pp
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Forward Riak port
config.vm.network :forwarded_port, guest: 8098, host: 8098
# Provision with Puppet
config.vm.provision :puppet, module_path: "puppet/modules" do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "init.pp"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment