Razor

Razor Server
https://github.com/puppetlabs/razor-server

Razor is next generation provisioning software that handles bare metal hardware and virtual server provisioning

Installation
https://github.com/puppetlabs/razor-server/wiki/Installation

Apt packages: https://apt.puppetlabs.com/

Ubuntu 18: https://apt.puppetlabs.com/puppet5-release-bionic.deb

Create Repo
razor create-repo --name=centos-6.4 --iso-url http://some.where/centos.iso --task centos

Empty repo: (needed for Windows) razor create-repo --name win2012r2 --task windows/2012r2 --no-content true

Create Task
razor create-task --name redhat-new --os "Red Hat Enterprise Linux" --description "A basic installer for RHEL6"

Windows
https://puppet.com/docs/pe/3.8/razor_windows_install.html

razor create-repo --name win2012r2 --task windows/2012r2 --no-content true

$ cd [repo_store_root in config.yaml] $ mount -o loop /path/to/windows_server_2012_r2.iso /mnt $ cp -pr /mnt/* win2012r2 $ umount /mnt $ chown -R pe-razor: win2012r2


 * 1) Install the Windows Assessment and Deployment in the default location.
 * 2) * http://msdn.microsoft.com/en-us/library/windows/hardware/hh825486.aspx
 * 3) Copy the build-winpe directory content to a Windows machine. If it’s absent from your Razor server, use this archive.
 * 4) Change into that directory, for example, c:\build.
 * 5) Run this build script: powershell -executionpolicy bypass -noninteractive -file build-razor-winpe.ps1 -razorurl http://razor:8150/svc

cp /some/where/winpe*.wim win2012r2/razor-winpe.wim

Create SMB share

[global] security    = user map to guest = bad user [razor] comment  = Windows Installers path     = /opt/puppetlabs/server/data/razor-server/repo guest ok = yes writable = no    browsable = yes