Last active
August 29, 2015 13:59
-
-
Save rasschaert/10905505 to your computer and use it in GitHub Desktop.
Packer template for CentOS 6.5 with Salt Stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-iso", | |
"guest_os_type": "RedHat_64", | |
"iso_url": "/home/kenny/Downloads/CentOS-6.5-x86_64-bin-DVD1.iso", | |
"iso_checksum_type": "none", | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"guest_additions_mode": "attach", | |
"shutdown_command": "sudo shutdown -P now", | |
"vboxmanage": [ | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--memory", | |
"512" | |
], | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--cpus", | |
"1" | |
] | |
], | |
"boot_command": ["<tab> ks=http://files.kennyrasschaert.be/ks/saltycentos-6.5.cfg<enter>"] | |
} | |
], | |
"post-processors": ["vagrant"], | |
"provisioners": [ | |
{ | |
"inline": ["curl -L http://bootstrap.saltstack.org | sh -s"], | |
"type": "shell" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#platform=x86, AMD64, or Intel EM64T | |
#version=DEVEL | |
# Firewall configuration | |
firewall --enabled --ssh | |
# Install OS instead of upgrade | |
install | |
# Use CDROM installation media | |
cdrom | |
# Root password | |
rootpw --iscrypted $1$420.JEYU$GTgKYpblLlpXZWui9cgXr1 | |
# System authorization information | |
auth --useshadow --passalgo=sha512 | |
# Use text mode install | |
text | |
firstboot --disable | |
# System keyboard | |
keyboard us-acentos | |
# System language | |
lang en_US | |
# SELinux configuration | |
selinux --enforcing | |
# Do not configure the X Window System | |
skipx | |
# Installation logging level | |
logging --level=info | |
# Reboot after installation | |
reboot --eject | |
# System timezone | |
timezone Europe/Brussels | |
# Network information | |
network --bootproto=dhcp --device=eth0 --onboot=on | |
# System bootloader configuration | |
bootloader --location=mbr | |
# Partition clearing information | |
zerombr | |
clearpart --all --initlabel | |
# Disk partitioning information | |
part /boot --fstype=ext4 --size=500 | |
part pv.01 --asprimary --size=1 --grow | |
volgroup VolGroup --pesize=4096 pv.01 | |
logvol / --fstype ext4 --name=lv_root --vgname=VolGroup --size=1024 --maxsize=51200 | |
logvol swap --name=lv_swap --vgname=VolGroup --size=512 --fstype swap | |
# Package to be installed | |
%packages --nobase | |
@core | |
openssh-clients | |
%end | |
# Post-installation script | |
%post | |
/sbin/service network start | |
/usr/bin/yum update -y | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment