Packer automation to build CentOS virtual machines for use with Vagrant. To use these boxes in your own project, type one of the following commands:
- CentOS 7:
vagrant init dharmab/centos7. - CentOS 6:
vagrant init dharmab/centos6.
The box versioning on Atlas follows Semantic Versioning.
I haven't been maintaining this lately because my environment is now Docker/CoreOS based. But it should be pretty simple for someone else to maintain themselves. Just change the following in each Packer template:
builders.iso_urlbuilders.iso_checksumpost-processors[.type = "atlas"].artifactpush.name
- Run
setup.pywith Python 2 to download Packer - Generate an Atlas API key and run
export ATLAS_TOKEN="<api key>" - If you are not dharmab, edit the JSON templates and change
push.nameto<atlas organization>/<box name> - Run the following commands to push the build to Atlas and queue a build.
bin/packer build centos7.json
bin/packer build centos6.jsonThis section should be considered the 'Public API' for the purposes of Semantic Versioning.
- The artifact(s) of this Packer template are Vagrant boxes for CentOS 6 and CentOS 7.
- VirtualBox is a supported provider.
- The VirtualBox boxes include the VirtualBox Guest Additions for VirtualBox 5.
- All packages in the
coregroup are installed. - The Extra Packages for Enterprise Linux repository (EPEL) is enabled.
- All installed packages are fully up to date at build time.
- The timezone is set to UTC.
- The language is set to US English.
- The keyboard is set to US.
- The firewall is disabled.
- SELinux is disabled.
requirettyis disabled in the sudoers configuration.UseDNSis disabled in the SSH configuration.- The root password is
vagrant. - A user named
vagrantis configured.- The password for the
vagrantuser isvagrant. - The
vagrantuser has full passwordless sudo privileges. - The
vagrantuser has the standard insecure Vagrant SSH public key as an authorized key.
- The password for the