If you're using Vagrant with the Chef-Client provisioner it creates a client and a node on the Chef server when the VM spins up.
This plugin will automatically get rid of that cruft for you when you destroy the VM.
Install this plugin using the Vagrant command line:
$ vagrant plugin install vagrant-butcher
The plugin is loaded automatically once installed.
For most cases, the plugin shouldn't need any configuration. However, there are a few options that can be set. The options are all set in the Vagrantfile
in the format:
Vagrant.configure("2") do |config|
...
config.butcher.<option> = <value>
...
end
Option | Default Value | Purpose |
---|---|---|
enabled |
true |
Defines whether node and client should be deleted |
guest_key_path |
'/etc/chef/client.pem' |
Location of the client key in the guest VM |
verify_ssl |
true |
If set to false, does not verify Chef's host key |
proxy |
nil |
Inform the URL of a proxy server between your host and the Chef Server |
client_name |
Guest's node name | Inform a client name to override the plugin's default behaviour |
client_key |
Guest's client key | Point to a local .pem key file that matches the client_name |
.
-> /vagrant
shared folder should be mounted.verify_ssl
is enabled by default. You might want to disable that if, for example, you run your own Chef server with a self-signed cert. Check here to see how.guest_key_path
depending on OSknife.rb
. Data is retrieved from the Vagrantfile
's chef_client
provisionerchef
is no longer a requirement (no more json
conflicts)enabled
flag to false
in the Vagrantfile.See Configuration for all possible customisations.
vagrant plugin
only.git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)