Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 2.53 KB

README.mdown

File metadata and controls

71 lines (46 loc) · 2.53 KB

Packer templates for CentOS 7.4 1708

Templates to create Vagrant boxes for CentOS 7.4 1708 (x86_64).

Prerequisites

  • Packer v0.7.2
  • Vagrant v1.6.5
  • VirtualBox
    • Version 4.3.26 for Windows
    • Version 4.2.8 for Mac OS X (which allows HAXM to work in parallel)

Provisioned software tools

  • VirtualBox Guest Additions
  • curl
  • sshd
  • sudo
  • rsync
  • vagrant user and its insecure public key

How to create a box

From the terminal, invoke the following command:

packer build centos-7-x86_64-minimal.json

and you will find a vagrant box file named CentOS-7-x86_64-minimal-v7.4.20170915.box in the same directory after the command has succeeded.

Then you can add the box named CentOS-7-x86_64-minimal-v7.4.20170915 to your box list by the following command:

vagrant box add CentOS-7-x86_64-minimal-v7.4.20170915.box --name CentOS-7-x86_64-minimal-v7.4.20170915

Variants

  • centos-7-x86_64-minimal.json - CentOS 7.4 1708 (x86_64) minimal installation
  • centos-7-x86_64-ansible.json - provided with Ansible and Testinfra in addition to CentOS 6.9 (x86_64) minimal installation
  • centos-7-x86_64-docker.json - provided with Docker and Docker Compose; in addition to CentOS 7.4 1708 (x86_64) minimal installation.

Build parameters

The following parameters can be set at build time by supplying -var or -var-file command line options to packer:

  • ssh_username - User name to login via SSH during build time. Default value is root.
  • ssh_password - SSH password for ssh_user used for build time. Default value is vagrant.
  • vagrant_username - User name used for run time. Vagrant box is set for this user. Default value is vagrant.
  • vagrant_password - Password for vagrant_username. Default value is vagrant.

Copyright © 2014-2017 Upperstream Software.