tree: 19afcc6490ad31dc7e04a0e007b4588a438e45b5 [path history] [tgz]
  1. ansible/
  2. bin/
  3. http/
  4. scripts/
  5. .gitignore
  6. ansible.cfg
  7. base-centos-6.7.json
  8. README.md
metron-deployment/packaging/packer-build/README.md

Build Metron Images

Based on the fantastic Bento project developed by Chef.

Images Provided

  • base-centos-6.7: Centos 6.7 + HDP. Used in the full-dev-platform Vagrant image

Prerequisites

Build Both Images

Navigate to <your-project-directory>/metron-deployment/packer-build Execute bin/bento build

Packer will build both images and export .box files to the ./builds directory.

Build Single Images

Navigate to your-project-directory/metron-deployment/packer-build

  • Base Centos (full-dev)
bin/bento build base-centos-6.7.json

Using Your New Box File

Modify the relevant Vagrantfile (full-dev-platform) replacing the lines:

<pre><code>config.vm.box = "<i>box_name</i>"
config.ssh.insert_key = true</code></pre>

with

<pre></code>config.vm.box = "<i>test_box_name</i>"
config.vm.box = "<i>PathToBoxfile/Boxfilename</i>"
config.ssh.insert_key = true</code></pre>

Launch the image as usual.

Node: Vagrant will cache boxes, you can force Vagrant to reload your box by running vagrant box remove test_box_name before launching your new image.