This image is based on CentOS 7.4 Minimal(1708) with following software/packages
- ansible 2.3
- git 2.14
- td-agent 0.12
- wget
- bzip
- vim
- network utilities
- monitor utilities
After installed, packer will create a new user vagrant
with password vagrant
.
Vagrant Box will pack with self-generated SSH key pair for user vagrant.
Built vagrant box https://app.vagrantup.com/KeithYeh/boxes/centos-base
Default timezone: UTC
NTP servers:
- 0.tw.pool.ntp.org
- 1.tw.pool.ntp.org
- 2.tw.pool.ntp.org
- 3.tw.pool.ntp.org
Before build virtualbox-iso or vmware-iso. Add Vagrant Cloud token to environment variable VAGRANT_ACCESS_TOKEN
packer build \
-var-file=config/aws.json \
-var-file=config/gcp.json \
template.json
# VirtualBox
packer build --only=virtualbox-iso template.json
# VMware Desktop
packer build --only=vmware-iso template.json
# Amazon AMI (EBS backed)
packer build --only=amazon-ebs -var-file=config/aws.json template.json
# Google compute engine
packer build --only=googlecompute -var-file=config/gcp.json template.json
- GCE image naming rule is
(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
. That is NOT compatible with AMI naming rule.
- Packer
- Vagrant
- RedHat 7 Kickstart syntax reference
- AWS Official CentOS 7 image
- GCP Official CentOS 7 image
MIT