Patrick Dillon 800239a021 Move libvirt folder from test to hack. | vor 5 Jahren | |
---|---|---|
.. | ||
group_vars | vor 5 Jahren | |
playbooks | vor 5 Jahren | |
terraform | vor 5 Jahren | |
README.md | vor 5 Jahren | |
cleanup.sh | vor 5 Jahren | |
deploy.sh | vor 5 Jahren | |
deploy_centos.sh | vor 5 Jahren | |
dnsmasq_setup.sh | vor 5 Jahren | |
generate_assets.sh | vor 5 Jahren | |
generate_inventory.sh | vor 5 Jahren | |
install-config.yml.template | vor 5 Jahren | |
installrc | vor 5 Jahren | |
installrc_centos | vor 5 Jahren | |
inv.txt.template | vor 5 Jahren | |
node_scaleup.sh | vor 5 Jahren | |
rhel_setup.sh | vor 5 Jahren | |
run_ansible.sh | vor 5 Jahren | |
ssh_config.sh | vor 5 Jahren | |
terraform_provision.sh | vor 5 Jahren |
Anything contained in this directory is unsupported and should not be used to provision any OpenShift clusters. Please refer to official documentation for supported installation methods.
Don't use it.
clone https://github.com/openshift/aos-ansible/pull/74 to ~/git/aos-ansible (Red Hat use only)
Ensure openshift-install and terraform are in your path. You also need to install terraform-libvirt-provider from https://github.com/dmacvicar/terraform-provider-libvirt/releases:
mkdir -p ~/.terraform.d/plugins
cd ~/.terraform.d/plugins
get wget https://github.com/dmacvicar/terraform-provider-libvirt/releases/download/v0.5.1/terraform-provider-libvirt-0.5.1.CentOS_7.x86_64.tar.gz
tar zxvf terraform-provider-libvirt-0.5.1.CentOS_7.x86_64.tar.gz
cd to this directory.
You should run the following once ever.
./ssh_config.sh
sudo ./dnsmasq_setup.sh
This will configure ~/.ssh/config to ensure entries aren't added to know hosts and configure dnsmasq to route dns requests to the right interface.
source installrc; export variables you want to override. You'll need to at least update what image you want to use unless you have that exact image in that exact place.
If installing with CentOS, you can source installrc_centos after sourcing installrc. This will setup image URI and ssh user.
Only CentOS or RHEL is supported at this time, you cannot deploy both at the same time using these scripts.
./deploy.sh This will generate install assets (inventory, install-config.yml, tfvars), provision instances via terraform and start installation of openshift-ansible.
Image: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1809.qcow2.xz Be sure to save that to ~/images/ and xz -d.
./deploy_centos.sh
The console relies on a route exposed via the ingress operator which installs by default assuming cloud provider support for service type loadbalancers. Reconfigure it.
oc patch clusteringresses/default -n openshift-ingress-operator -p '{"spec":{"highAvailability":{"type":"UserDefined"}}}' --type merge
And until https://github.com/openshift/cluster-ingress-operator/pull/94 merges
delete all the objects in openshift-ingress namespace so the operator recreates them.
oc delete all --all -n openshift-ingress
Afterwards, you can cleanup with ./cleanup.sh