Last active
August 29, 2015 14:17
-
-
Save beddari/078cd1b32de36151eaa9 to your computer and use it in GitHub Desktop.
foreman bootstrap
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
mgmt=eth1 | |
# shutdown the mgmt interface | |
ifdown $mgmt | |
Run ./foreman-bootstrap-setup.sh <location> | |
ip link set $mgmt master pxebr | |
ip link set dev $mgmt up | |
# PXE-boot and let <loc>-controller-1 run through kickstart | |
# Destroy the libvirt network & pxe bridge and re-up the mgmt interface | |
virsh net-destroy foreman-bootstrap | |
ifup $mgmt | |
sudo ssh iaas@<ip_from_controller_yaml> | |
# iptables rules example for jumphost if you need it to do NAT | |
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
iptables -A FORWARD -i eth0 -o $mgmt -m state --state RELATED,ESTABLISHED -j ACCEPT | |
iptables -A FORWARD -i $mgmt -o eth0 -j ACCEPT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment