I have razor server all up and running (it's been running for a while, but was only building up esxi hosts before) and it can install centos 7 on a vm, but once the installation is done the razor_postinstall.sh script does not run properly and the PE agent never gets installed.
Unfortunately, there are no indications in the anaconda or other logs why the script isn't running properly.
#!/bin/bash
# Kickstart for RHEL/CentOS 7
install
url --url=<%= repo_url %>
cmdline
lang en_US.UTF-8
keyboard us
rootpw <%= node.root_password %>
network --hostname <%= node.hostname %> --noipv6
firewall --enabled --ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
timezone --utc America/Los_Angeles
# Avoid having 'rhgb quiet' on the boot line
bootloader --location=mbr --append="crashkernel=auto"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
zerombr
clearpart --all --initlabel
# Create primary partitions
part biosboot --fstype=biosboot --size=1
part /boot --fstype "xfs" --size=512 --asprimary
part swap --fstype swap --size=1024 --recommended --maxsize=32768
part btrfs.01 --size=1024 --grow
btrfs none --label=system/ btrfs.01
btrfs / --subvol --name=@ LABEL=system/
btrfs /home --subvol --name=@home LABEL=system/
btrfs /var --subvol --name=@var LABEL=system/
btrfs /var/log --subvol --name=@varlog LABEL=system/
btrfs /tmp --subvol --name=@temp LABEL=system/
btrfs /var/log/audit --subvol --name=@varlogaudit LABEL=system/
# reboot automatically
reboot
%packages --nobase
@core
@base
btrfs-progs
xfsdump
xfsprogs
nano
openssh-clients
%end
%post --log=/var/log/razor.log
echo Kickstart post
curl -s -o /root/razor_postinstall.sh <%= file_url("post_install") %>
# Run razor_postinstall.sh on next boot via rc.local
if [ ! -f /etc/rc.d/rc.local ]; then
# On systems using systemd /etc/rc.d/rc.local does not exist at all
# though systemd is set up to run the file if it exists
touch /etc/rc.d/rc.local
chmod a+x /etc/rc.d/rc.local
fi
echo bash /root/razor_postinstall.sh >> /etc/rc.d/rc.local
chmod +x /root/razor_postinstall.sh
curl -s <%= stage_done_url("kickstart") %>
%end
############