Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 503 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 503 Bytes

Salty Vagrant Grains

Set SaltStack grains from Vagrantfile

Installation

vagrant plugin install salty-vagrant-grains

Usage

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = 'saucy64'

  config.vm.provision :salt do |salt|
    salt.grains({
      roles: ['webserver', 'memcache'],
      deployment: 'datacenter4',
      cabinet: '13',
      cab_u: '14-15',
    })

    salt.grains({
      cab_u: '14-15',
    })
  end
end