misheska / basebox-packer

Packer templates for vagrant baseboxes
286 stars 80 forks source link

Add option to install Puppet as a provisioner on CentOS boxes #44

Closed mckern closed 10 years ago

mckern commented 10 years ago

I've added Puppet as an option, using the Puppet Labs yum repositories. To do so, I've added a couple of configuration variables to the packer templates for each CentOS release and updated the provisioner script.

I'm starting the work to add it to other *nix variants with repositories (Fedora, Debian, Ubuntu) next but since I needed CentOS right now I thought I'd open a pull request and get the ball rolling.

mckern commented 10 years ago

Updated commits pending. I'm going to trample my fork and remove 70831c6, and add a line to provisioner.sh to get the OS major release.

mckern commented 10 years ago

How's this? I wound up parsing /etc/redhat-release using a variation of the same regex that facter uses. I tested it across RHEL7 beta, CentOS 6, and CentOS 5 and got good data across all three.

mckern commented 10 years ago

Any update on moving this forward?