No commit activity in last 3 years
No release in over 3 years
Vagrant plug-in for Serverkit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0

Runtime

>= 0.4.7
 Project Readme

vagrant-serverkit

Vagrant plug-in for Serverkit.

  • Usage
    • Install
    • Config
    • Example
  • Development

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 (e.g. "variables.yml", optional)
  • log_level - Log level (e.g. "DEBUG", 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
    recipe_path: "recipe.yml.erb",
    variables_path: "variables.yml",
  )
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

Plugin

If you want to use external serverkit plugins like serverkit-rbenv, install them as vagrant plugin like vagrant plugin install serverkit-rbenv. vagrant-multiplug might help you use so many plugins.