One less thing for me to have to go out to the internet to grab when setting up my dev machine(s).
Installs the specified version of Hashicorp_Packer.
packer_version: 1.3.4
To run the local playbook, issue the following command.
ansible-playbook local_playbook.yml -b -K
To use this role in another playbook
cat << EOF > some_playbook.yml
---
- hosts: localhost
connection: local
roles:
- pgporada.packer
...
EOF
ansible-playbook some_playbook.yml -b -K
Before submitting a PR, please create a test and run it through test-kitchen. You will need a ruby environment with gem and bundler for these tests.
# This takes care of twiddling all the bits that need to be updated when bumping the packer version
./update_automagic.sh x.x.x
# This will run your packer update through the test system
bundle update
bundle install
bundle exec kitchen create
bundle exec kitchen converge
bundle exec kitchen verify
bundle exec kitchen destroy
GPLv3
2017 - Phil Porada