110 | | |
111 | | ## Install Packer & recursive_packer_build ## |
112 | | {{{ |
113 | | #!sh |
114 | | |
115 | | ## Packer |
116 | | sudo mkdir -p '/opt/Packer/0.8.6/' && |
117 | | cd "$_" && |
118 | | sudo curl -O 'https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip' && |
119 | | sudo unzip 'packer_0.8.6_linux_amd64.zip' && |
120 | | printf '%s\n' '#!/bin/sh -x' "pathmunge '/opt/Packer/0.8.6/'" | |
121 | | sudo tee '/etc/profile.d/Packer_PATH.sh' && |
122 | | sudo chmod +x '/etc/profile.d/Packer_PATH.sh' && |
123 | | ## recursive_packer_build |
124 | | cd '/srv/' && |
125 | | git clone 'https://github.com/sanmai-NL/recursive_packer_build' && |
126 | | printf '%s\n' '#!/bin/sh -x' ". '/srv/recursive_packer_build/recursive_packer_build.sh'" | |
127 | | sudo tee '/etc/profile.d/recursive_packer_build_source.sh' && |
128 | | sudo chmod +x '/etc/profile.d/recursive_packer_build_source.sh' |
129 | | }}} |