Created
September 4, 2013 16:39
-
-
Save sideshowcoder/6439548 to your computer and use it in GitHub Desktop.
Setting up Riak with Vagrant and Puppet
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
class basic { | |
exec {"apt-get-update": | |
command => "/usr/bin/apt-get update --fix-missing" | |
} | |
package { "curl": | |
ensure => installed | |
} | |
} | |
include basic | |
include riak_precise64 |
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
[project/puppet]$ tree | |
. | |
├── manifests | |
│ └── init.pp | |
└── modules | |
└── riak_precise64 | |
├── README.mdown | |
├── files | |
│ └── app.config | |
└── manifests | |
└── init.pp |
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
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