Vagrant Trellis Cert
Trust Trellis self-signed certificates with a single command
- Installation
- Usage
- Going super lazy
- Limitations
- Support!
- Feedback
- Change log
- Author Information
- Contributing
- License
Installation
$ vagrant plugin install vagrant-trellis-cert
Usage
Usage: vagrant trellis-cert trust [options] [vm-id]
Usage: vagrant trellis-cert distrust [options] [vm-id]
-h, --help Print this help
# Example: Running within Trellis directory
$ vagrant trellis-cert trust
$ vagrant trellis-cert distrust
# Example: Specify VM id
$ vagrant global-status
id name provider state directory
-----------------------------------------------------------------------------------
fb90ab5 default virtualbox running /Users/me/Code/trellis
$ vagrant trellis-cert trust fb90ab5
$ vagrant trellis-cert distrust fb90ab5
Going super lazy
If the vagrant-triggers plugin is installed, we can run the command on Vagrant state changes like vagrant provision
. Add these lines into Trellis' Vagrantfile
:
# Vagrantfile
# Some lines of code...
Vagrant.configure('2') do |config|
# Some more lines of code later...
config.trigger.after :provision, :stdout => true do
run "vagrant trellis-cert trust"
end
config.trigger.after :destroy, :stdout => true do
run "vagrant trellis-cert distrust"
end
end
Limitations
Pull requests are welcome!
- Only works on macOS
Support!
Donate via PayPal
Love Vagrant Trellis Cert? Help me maintain it, a donation here can help with it.
Why don't you hire me?
Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email [email protected]
Want to help in other way? Want to be a sponsor?
Contact: Tang Rufus
Feedback
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Change log
Please see CHANGELOG for more information on what has changed recently.
Author Information
Vagrant Trellis Cert is a Typist Tech project and maintained by Tang Rufus, freelance developer for hire.
Special thanks to the Roots team whose Trellis make this project possible.
Full list of contributors can be found here.
Contributing
Please see CODE_OF_CONDUCT for details.
License
Vagrant Trellis Cert is released under the MIT License.