Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10898 from mgugino-upstream-stage/40-new-net
40 new network and centos support
- Loading branch information
Showing
7 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
#. installrc | ||
set -e | ||
./generate_assets.sh | ||
./terraform_provision.sh | ||
echo "sleeping 20" | ||
sleep 20 | ||
openshift-install create ignition-configs | ||
./run_ansible.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# run this as sudo | ||
cat << EOF > /etc/NetworkManager/dnsmasq.d/byo-dev.conf | ||
server=/ttb.testing/192.168.128.1 | ||
address=/.apps.byo-dev.ttb.testing/192.168.128.21 | ||
EOF | ||
|
||
systemctl reload NetworkManager |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
#!/bin/bash | ||
|
||
export OCP_BASE_DOMAIN="tt.testing" | ||
export OCP_BASE_DOMAIN="ttb.testing" | ||
export OCP_CLUSTER_ID=$(uuidgen --random) | ||
export OCP_MASTERS=1 | ||
export OCP_WORKERS=1 | ||
export OCP_CLUSTER_NAME="byo-dev" | ||
export OCP_PULL_SECRET=$(cat ~/try.openshift.com.json) | ||
export OCP_SSH_PUB_KEY=$(cat ~/.ssh/id_rsa.pub) | ||
export OCP_IMAGE=~/images/rhel-guest-image-7.5-146.x86_64.qcow2 | ||
export OCP_NETDEV=tt0 | ||
export OCP_NETCIDR="192.168.126.0/24" | ||
export OCP_NETDEV=ttb0 | ||
export OCP_NETCIDR="192.168.128.0/24" | ||
# OCP_MASTERS is a list of quoted ips, no trailing comma. eg: | ||
# "\"192.168.126.11\", \"192.168.126.12\"" | ||
export OCP_MASTER_IPS=\"192.168.126.11\" | ||
export OCP_BOOTSTRAP_IP="192.168.126.10" | ||
# "\"192.168.128.11\", \"192.168.128.12\"" | ||
export OCP_MASTER_IPS=\"192.168.128.11\" | ||
export OCP_BOOTSTRAP_IP="192.168.128.10" | ||
export OCP_WORKER_IPS=\"192.168.128.21\" | ||
export OCP_LIBVIRT_URI='qemu+tcp://192.168.124.1/system' | ||
export OCP_INSTALL_CONFIG_PATH="$PWD/install-config-ansible.yml" | ||
export OCP_IGNITION_PATH="$PWD/bootstrap.ign" | ||
|
||
export OCP_WORKER_IPS=\"192.168.126.21\" | ||
|
||
export ANSIBLE_HOST_KEY_CHECKING=False | ||
|
||
# RHEL specific stuff | ||
export OCP_IMAGE=~/images/rhel-guest-image-7.5-146.x86_64.qcow2 | ||
export OCP_SSH_USER="cloud-user" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
# source installrc first. | ||
export OCP_IMAGE=~/images/CentOS-7-x86_64-GenericCloud-1809.qcow2 | ||
export OCP_SSH_USER="centos" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
cat << EOF >> ~/.ssh/config | ||
Host *.ttb.testing | ||
StrictHostKeyChecking no | ||
UserKnownHostsFile /dev/null | ||
EOF |