Vagrant TagProvision
This gem is a Vagrant plugin that tags and logs provisioning information
Install Plugin
$ vagrant plugin install vagrant-tagprovision
Plugin Usage
You will need to create a section in your Vagrantfile to enable this plugin and use the various features.
Vagrant.configure("2") do |config|
...
config.tagprovision.enabled = true
config.tagprovision.log_provision = true
config.tagprovision.tag_provision = true
config.tagprovision.push_tag = true
...
end
config.tagprovision.enabled - This enables and disables the plugin config.tagprovision.log_provision - This creates an entry in /var/log/provision_log on the guest machine with the following format:
2016-01-11 11:31:42 +0000 Provisioned a41c6eb98bd069f85bc205fae24298e644a9b877 refs/tags/current_release_1.3.2
config.tagprovision.tag_provision - This will create a git tag with provisioning information config.tagprovision.push_tag - This automatically pushes the tag to the origin your current branch is tracking
Contributing
- use feature branches please. Prefer feature/your_feature_name
- submit pull requests to the
develop
branch
Testing
To install dependencies use:
bundle install
Then use:
bundle exec vagrant provision
You may need to create the guest by running:
bundle exec vagrant up
To test on the test VM.
Building and deploying gem packages
Use
rake build
Then
gem push pkg/vagrant-tagprovision-0.vagrant-tagprovision-0.1.1.gem
Author
Jim Robinson