vagrant-serverkit
Vagrant plug-in for Serverkit.
Usage
Install
$ vagrant plugin install vagrant-serverkit
Config
The following configurations are available on serverkit provisioner:
recipe_path
- Path to serverkit recipe (e.g."recipe.yml"
)variables_path
- Path to serverkit recipe variables (optional)
Example
Here is an example to provision a vagrant box with Serverkit.
# Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :serverkit do |serverkit_config|
serverkit_config.recipe_path = "recipe.yml.erb"
serverkit_config.variables_path = "variables.yml"
end
end
# recipe.yml.erb
resources:
<%- package_names.each do |package_name| -%>
- type: package
name: <%= package_name %>
<%- end -%>
# variables.yml
package_names:
- curl
- nginx
$ vagrant up
Development
For vagrant-serverkit developers, an example Vagrantfile is provided in this repository. To test provisioning with vagrant-serverkit, execute the following command.
$ bundle exec vagrant provision