Razor
(Redirected from Razor-server)
Razor Server
https://github.com/puppetlabs/razor-server
Razor is next generation provisioning software that handles bare metal hardware and virtual server provisioning
Jira Tickets
https://tickets.puppetlabs.com/projects/RAZOR
FreeNode
https://webchat.freenode.net/ #puppet-razor
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"
Brokers
Brokers · puppetlabs/razor-server Wiki · GitHub https://github.com/puppetlabs/razor-server/wiki/Brokers
Writing broker types · puppetlabs/razor-server Wiki · GitHub https://github.com/puppetlabs/razor-server/wiki/Writing-broker-types
Brokers are just scripts that are called, at the end of install, to hand off the newly installed node to some other service.
Location:
/opt/puppetlabs/server/apps/razor-server/share/razor-server/brokers/
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
- Install the Windows Assessment and Deployment in the default location.
- Copy the build-winpe directory content to a Windows machine. If it’s absent from your Razor server, use this archive.
- Change into that directory, for example, c:\build.
- 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