Skip to content

kimor79/packer-centos

Repository files navigation

Building a CentOS image

This repo contains packer templates and related files to build a CentOS image.

Available templates:

The version of CentOS to install is defined by the centos_version parameter in the above templates. As of 2017-02-28 the default version is 7.3.1611.

Here are the additions to the base install:

  • yum --releasever=7.3.1611 update
  • kernel-devel and kernel-headers are installed
  • EPEL repo is enabled
  • NTP is installed and enabled
  • Manpages are installed
  • SELinux is disabled
  • UseDNS and PermitRootLogin are both set to no in /etc/ssh/sshd_config
  • IPTables is open
  • For CentOS >=7, predictable interface names have been disabled (retaining the pre-7 behavior of ethN interface names)

Additional options can be included by specifying command line variables:

  • To download the iso from a different mirror: -var iso_url=http://...
  • To specify a different CentOS version: -var centos_version=X.Y
    • You will most likely also need to pass iso_checksum and iso_url
  • To set root's password hash: -var root_hash='encrypted_string'
  • To have sssd installed specify the location of an sssd.conf: -var sssd_conf='/local/path/to/sssd.conf'
  • An additional user-provided shell provisioner can be included: -var custom_provisioner='/local/path/to/shell_script'

Available builders:

About

Packer files to build CentOS images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages