Last active
August 29, 2015 14:05
-
-
Save lutter/541dd31f906fc302be69 to your computer and use it in GitHub Desktop.
This file contains 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
> gem install pe-razor-client | |
> export RAZOR_API=http://razor-server:8080/api | |
# Use any mirror listed here: http://isoredirect.centos.org/centos/6/isos/x86_64/ | |
# This will take a while, since it will download the ISO and unpack it. The response | |
# will mention a command, which you can use to check the progress/errors of the | |
# download via 'razor commands NNN' | |
> razor create-repo --name centos-6.5 --task centos \ | |
--iso-url http://mirror.anl.gov/pub/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso | |
# A tag that will match any machine | |
> razor create-tag --name any --rule '["=", 1, 1]' | |
> razor create-broker --name puppet-pe --broker-type puppet-pe \ | |
--configuration server=puppet-master | |
> razor create-policy --name centos-6.5 --repo centos-6.5 \ | |
--broker puppet-pe \ | |
--hostname 'host${id}.example.com' \ | |
--root-password secret \ | |
--tag any | |
# Check with 'razor commands NNN' that the download and setup of the repo | |
# has successfully finished. Then boot a VM. It should first boot the microkernel, | |
# and after ~ 60s reboot and install CentOS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment