From ba8b449577612a637299ab78d2f81d806b6ba5e9 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Wed, 6 Mar 2019 09:06:18 +0100 Subject: [PATCH 01/21] added --- all-in-one-hetzner-bare-metal.md | 104 +++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 all-in-one-hetzner-bare-metal.md diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md new file mode 100644 index 00000000..a869159c --- /dev/null +++ b/all-in-one-hetzner-bare-metal.md @@ -0,0 +1,104 @@ +This decribes a way of how to run the installation on a bare metal hetzner Box. + +This is done without installing the logging/metrics System, because there is absolutly no value added when +The purpose is to have a real openshift smell like development-sandbox and is siutable for presestions as well. + +There is a preparation to be achieved. + + + +This is taken from: + +https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp#install-instructions + +The simplest way of partitioning is: +´´´ + +´´´ + + + +Fst tinh to to is enable SELinux, as it comes disabled: + +´´´ +vi /etc/selinux/config +SELINUX=enforcing +reboot/login +getenfore +-> Enfocing + + +yum -y install screen git +´´´ + +then follow: + +But skip 1. + +1. Create a VM as explained in https://www.youtube.com/watch?v=ZkFIozGY0IA (this video) by Grant Shipley + +2. Clone this repo + +``` +git clone https://github.com/gshipley/installcentos.git +``` + +3. Execute the installation script + +``` +cd installcentos +./install-openshift.sh +``` + +## Automation +1. Define mandatory variables for the installation process + +``` +# Domain name to access the cluster +$ export DOMAIN=.nip.io + +# User created after installation +$ export USERNAME= + +# Password for the user +$ export PASSWORD=password +``` + +2. Define optional variables for the installation process + +``` +# Instead of using loopback, setup DeviceMapper on this disk. +# !! All data on the disk will be wiped out !! +$ export DISK="/dev/sda" +``` + +3. Run the automagic installation script as root with the environment variable in place: + +``` +curl https://raw.githubusercontent.com/gshipley/installcentos/master/install-openshift.sh | INTERACTIVE=false /bin/bash +``` + +## Development + +For development it's possible to switch the script repo + +``` +# Change location of source repository +$ export SCRIPT_REPO="https://raw.githubusercontent.com/gshipley/installcentos/master" +$ curl $SCRIPT_REPO/install-openshift.sh | /bin/bash +``` + +## Testing + +The script is tested using the tooling in the `validate` directory. + +To use the tooling, it's required to create file `validate/env.sh` with the DigitalOcean API key + +``` +export DIGITALOCEAN_TOKEN="" +``` + +and then run `start.sh` to start the provisioning. Once the ssh is connected to the server, the +script will atatch to the `tmux` session running Ansible installer. + +To destroy the infrastructure, run the `stop.sh` script. From 2d7f9b7e6a314979c1c05c254906b7f448a8d7bc Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Wed, 6 Mar 2019 09:15:40 +0100 Subject: [PATCH 02/21] made Metrics and Logging optional export METRICS=${METRICS:="True"} export LOGGING=${LOGGING:="True"} --- install-openshift.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-openshift.sh b/install-openshift.sh index 40c50bab..53cda7ee 100755 --- a/install-openshift.sh +++ b/install-openshift.sh @@ -147,8 +147,8 @@ if [ ! -f ~/.ssh/id_rsa ]; then ssh -o StrictHostKeyChecking=no root@$IP "pwd" < /dev/null fi -export METRICS="True" -export LOGGING="True" +export METRICS=${METRICS:="True"} +export LOGGING=${LOGGING:="True"} memory=$(cat /proc/meminfo | grep MemTotal | sed "s/MemTotal:[ ]*\([0-9]*\) kB/\1/") From f99083c3094d089b12ef9331075555748d7f0619 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Thu, 7 Mar 2019 21:02:34 +0100 Subject: [PATCH 03/21] almost completed --- all-in-one-hetzner-bare-metal.md | 90 +++++++++++++------------------- 1 file changed, 36 insertions(+), 54 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index a869159c..1b833b6d 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -13,12 +13,28 @@ https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp#install-instructions The simplest way of partitioning is: ´´´ - +DRIVE1 /dev/sda +DRIVE2 /dev/sdb +SWRAID 1 +SWRAIDLEVEL 1 +BOOTLOADER grub +HOSTNAME CentOS-76-64-minimal +PART /boot ext3 512M +PART lvm vg0 all + +LV vg0 root / ext4 200G +LV vg0 swap swap swap 5G +LV vg0 tmp /tmp ext4 10G +LV vg0 home /home ext4 40G + + +IMAGE /root/.oldroot/nfs/install/../images/CentOS-76-64-minimal.tar.gz ´´´ +for a box 2*2GB. If the imgage is not avalilible just check for the next version of CentOS. -Fst tinh to to is enable SELinux, as it comes disabled: +After installting the the image the first to to is enable SELinux, as it comes disabled: ´´´ vi /etc/selinux/config @@ -29,76 +45,42 @@ getenfore yum -y install screen git -´´´ - -then follow: - -But skip 1. - -1. Create a VM as explained in https://www.youtube.com/watch?v=ZkFIozGY0IA (this video) by Grant Shipley - -2. Clone this repo -``` -git clone https://github.com/gshipley/installcentos.git -``` - -3. Execute the installation script -``` -cd installcentos -./install-openshift.sh -``` +´´´ -## Automation -1. Define mandatory variables for the installation process +then follow: -``` -# Domain name to access the cluster -$ export DOMAIN=.nip.io -# User created after installation -$ export USERNAME= -# Password for the user -$ export PASSWORD=password -``` +Please read the section upfront but shlighly change some commands -2. Define optional variables for the installation process +https://github.com/gshipley/installcentos -``` -# Instead of using loopback, setup DeviceMapper on this disk. -# !! All data on the disk will be wiped out !! -$ export DISK="/dev/sda" -``` +Skip 2. -3. Run the automagic installation script as root with the environment variable in place: +and clone with: ``` -curl https://raw.githubusercontent.com/gshipley/installcentos/master/install-openshift.sh | INTERACTIVE=false /bin/bash +export GIT_BASE_DIR=https://github.com/wrenkredhat/installcentos +git clone $GIT_BASE_DIR ``` - -## Development - -For development it's possible to switch the script repo +Then Export the follwing variables; these will take control over the +process os installation where relevant: ``` -# Change location of source repository -$ export SCRIPT_REPO="https://raw.githubusercontent.com/gshipley/installcentos/master" -$ curl $SCRIPT_REPO/install-openshift.sh | /bin/bash +export SCRIPT_REPO=$GIT_BASE_DIR/blob/master +export METRICS="False" +export LOGGING="False" ``` -## Testing - -The script is tested using the tooling in the `validate` directory. - -To use the tooling, it's required to create file `validate/env.sh` with the DigitalOcean API key +3. Execute the installation script ``` -export DIGITALOCEAN_TOKEN="" +cd installcentos +./install-openshift.sh ``` -and then run `start.sh` to start the provisioning. Once the ssh is connected to the server, the -script will atatch to the `tmux` session running Ansible installer. +While the installation is running you might want to configure the FireWall: -To destroy the infrastructure, run the `stop.sh` script. + From 153609c2a3cd245d125f570c731e454681a1725d Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Fri, 8 Mar 2019 11:29:44 +0100 Subject: [PATCH 04/21] Added Firewall setup --- all-in-one-hetzner-bare-metal.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 1b833b6d..9c6a2e16 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -62,7 +62,9 @@ Skip 2. and clone with: ``` -export GIT_BASE_DIR=https://github.com/wrenkredhat/installcentos +#Use your Git-Fork or use: +export GIT_BASE_DIR=https://github.com/gshipley/installcentos + git clone $GIT_BASE_DIR ``` Then Export the follwing variables; these will take control over the @@ -83,4 +85,4 @@ cd installcentos While the installation is running you might want to configure the FireWall: - +https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp#firewall From f4c295275791f85ef71083de98180f41625736eb Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Fri, 8 Mar 2019 13:36:57 +0100 Subject: [PATCH 05/21] headlines added --- all-in-one-hetzner-bare-metal.md | 33 ++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 9c6a2e16..e1a013df 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -1,18 +1,26 @@ -This decribes a way of how to run the installation on a bare metal hetzner Box. -This is done without installing the logging/metrics System, because there is absolutly no value added when -The purpose is to have a real openshift smell like development-sandbox and is siutable for presestions as well. +# ODK on Bare Metal Deploymnet -There is a preparation to be achieved. +This manual describes a way of how to run the installation on a bare metal hetzner box. + +It is meant to complement [Hetzner OCP](https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp), where a cluster like setup is not needed or appropriate. + +This is done without installing the logging/metrics System, because there is no value added when someone needs an environment for app-developement/customising apps or executing a showcase. +The purpose is to have a real openshift smell like development-sandbox but not a fully blown cluster. +The procedure can be executed in approximatly 3-4h, where attention is needed for 1-2h approx. +#Install Base OS + +There is a preparation to be achieved. + This is taken from: https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp#install-instructions The simplest way of partitioning is: -´´´ +``` DRIVE1 /dev/sda DRIVE2 /dev/sdb SWRAID 1 @@ -29,14 +37,14 @@ LV vg0 home /home ext4 40G IMAGE /root/.oldroot/nfs/install/../images/CentOS-76-64-minimal.tar.gz -´´´ +``` -for a box 2*2GB. If the imgage is not avalilible just check for the next version of CentOS. +for a box 2*2GB. If the imgge is not avalilible just check for the next version of CentOS. -After installting the the image the first to to is enable SELinux, as it comes disabled: +After installing the the image the first to to is enable SELinux, as it comes disabled: -´´´ +``` vi /etc/selinux/config SELINUX=enforcing reboot/login @@ -47,10 +55,9 @@ getenfore yum -y install screen git -´´´ - -then follow: +``` +# Install ODK Please read the section upfront but shlighly change some commands @@ -83,6 +90,8 @@ cd installcentos ./install-openshift.sh ``` +# Secure System with Firewallh + While the installation is running you might want to configure the FireWall: https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp#firewall From d08b673b37bce30fdc180541f34475c5579471c3 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 00:14:19 +0100 Subject: [PATCH 06/21] Update install-openshift.sh no download of inventory --- install-openshift.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-openshift.sh b/install-openshift.sh index 53cda7ee..954507bc 100755 --- a/install-openshift.sh +++ b/install-openshift.sh @@ -160,7 +160,8 @@ if [ "$memory" -lt "16777216" ]; then export LOGGING="False" fi -curl -o inventory.download $SCRIPT_REPO/inventory.ini +#curl -o inventory.download $SCRIPT_REPO/inventory.ini +cp inventory.ini inventory.download envsubst < inventory.download > inventory.ini # add proxy in inventory.ini if proxy variables are set From 5e83edcbf6eac5bc53ee02c69f25f581e95cd427 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 12:17:37 +0100 Subject: [PATCH 07/21] Update all-in-one-hetzner-bare-metal.md small corrections, no export of SCRIPT_REPO --- all-in-one-hetzner-bare-metal.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index e1a013df..b8b9e09d 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -78,7 +78,6 @@ Then Export the follwing variables; these will take control over the process os installation where relevant: ``` -export SCRIPT_REPO=$GIT_BASE_DIR/blob/master export METRICS="False" export LOGGING="False" ``` @@ -90,7 +89,7 @@ cd installcentos ./install-openshift.sh ``` -# Secure System with Firewallh +# Secure System with Firewall While the installation is running you might want to configure the FireWall: From de3170d9e042e63e8227c8831be7ee21a03cd20e Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 16:10:40 +0100 Subject: [PATCH 08/21] Update inventory.ini --- inventory.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inventory.ini b/inventory.ini index 7562f4ab..1f168123 100644 --- a/inventory.ini +++ b/inventory.ini @@ -3,6 +3,8 @@ masters nodes etcd +##TEST## + [masters] ${IP} openshift_ip=${IP} openshift_schedulable=true From 308f5ac1d05c0df9b8839e13942eb90539061326 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 17:38:13 +0100 Subject: [PATCH 09/21] Update all-in-one-hetzner-bare-metal.md Introduced GIT_USER --- all-in-one-hetzner-bare-metal.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index b8b9e09d..422961c7 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -64,20 +64,24 @@ Please read the section upfront but shlighly change some commands https://github.com/gshipley/installcentos -Skip 2. +Skip strep 2. and clone with: ``` #Use your Git-Fork or use: -export GIT_BASE_DIR=https://github.com/gshipley/installcentos - -git clone $GIT_BASE_DIR +export GIT_USER=gshipley +git clone https://github.com/${GIT_USER}/installcentos ``` Then Export the follwing variables; these will take control over the process os installation where relevant: + + ``` +### Optional: export SCRIPT_REPO=browse to your **RAW** fork of rep: +### export SCRIPT_REPO=https://raw.githubusercontent.com/${GIT_USER}/installcentos/master + export METRICS="False" export LOGGING="False" ``` From 9c115e41c423a298fc550536d94fd07f52073562 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 17:44:28 +0100 Subject: [PATCH 10/21] Update install-openshift.sh rollback of curl-command --- install-openshift.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-openshift.sh b/install-openshift.sh index 954507bc..53cda7ee 100755 --- a/install-openshift.sh +++ b/install-openshift.sh @@ -160,8 +160,7 @@ if [ "$memory" -lt "16777216" ]; then export LOGGING="False" fi -#curl -o inventory.download $SCRIPT_REPO/inventory.ini -cp inventory.ini inventory.download +curl -o inventory.download $SCRIPT_REPO/inventory.ini envsubst < inventory.download > inventory.ini # add proxy in inventory.ini if proxy variables are set From a90dfe46903b9a494fedb295885768b45ff487e9 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 18:04:08 +0100 Subject: [PATCH 11/21] Update README.md Adding bare metal ODK. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c69bc367..73ab2478 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Install ODK in a virtual box + Install RedHat OKD 3.11 on your own server. For a local only install, it is suggested that you use CDK or MiniShift instead of this repo. This install method is targeted for a single node cluster that has a long life. This repository is a set of scripts that will allow you easily install the latest version (3.11) of OKD in a single node fashion. What that means is that all of the services required for OKD to function (master, node, etcd, etc.) will all be installed on a single host. The script supports a custom hostname which you can provide using the interactive mode. @@ -15,6 +17,11 @@ https://github.com/mpeterson/rdo-openshift-tools > Let's Encrypt only works if the IP is using publicly accessible IP and custom certificates." > This feature doesn't work with OpenShift CLI for now. +# Install on Hetzner-bare-metal Server + +In oder to have a more openshift-a-like environment there is now a manual of how to run this on a bare-metal-box +Please check: [all-in-one-hetzner-bare-metal](all-in-one-hetzner-bare-metal.md) + ## Installation 1. Create a VM as explained in https://www.youtube.com/watch?v=ZkFIozGY0IA (this video) by Grant Shipley From 89cf45fa4b80733fcc8cb064c88e046ca55346f6 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 18:04:40 +0100 Subject: [PATCH 12/21] Update all-in-one-hetzner-bare-metal.md --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 422961c7..f9d4eb46 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -1,5 +1,5 @@ -# ODK on Bare Metal Deploymnet +# ODK bare Metal Deploymnet This manual describes a way of how to run the installation on a bare metal hetzner box. From e0e71228ab56a89e53610724c26ebc553398dcbf Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 18:05:56 +0100 Subject: [PATCH 13/21] Update all-in-one-hetzner-bare-metal.md --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index f9d4eb46..2099f958 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -1,5 +1,5 @@ -# ODK bare Metal Deploymnet +# ODK bare metal deploymnet This manual describes a way of how to run the installation on a bare metal hetzner box. From 6708eda154dc3f16ece337e388cabe7dc0df5745 Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 18:06:11 +0100 Subject: [PATCH 14/21] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 73ab2478..e2be7434 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Install ODK in a virtual box +# Install ODK in a CentOS virtual box Install RedHat OKD 3.11 on your own server. For a local only install, it is suggested that you use CDK or MiniShift instead of this repo. This install method is targeted for a single node cluster that has a long life. From a520ada54165ef7a8f9290e341b5e4d517a5b28a Mon Sep 17 00:00:00 2001 From: Wolfgang Renk Date: Mon, 11 Mar 2019 18:07:16 +0100 Subject: [PATCH 15/21] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2be7434..220e1a91 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ https://github.com/mpeterson/rdo-openshift-tools # Install on Hetzner-bare-metal Server -In oder to have a more openshift-a-like environment there is now a manual of how to run this on a bare-metal-box +In oder to have a more openshift-a-like environment there is now a manual of how to run this on a bare-metal-box. Please check: [all-in-one-hetzner-bare-metal](all-in-one-hetzner-bare-metal.md) ## Installation From 32f7cf8804df62766142aedee9a56d829610bbaf Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:18:39 +0200 Subject: [PATCH 16/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 38 +++++++++++++++++++------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 2099f958..0cef6be9 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -1,5 +1,5 @@ -# ODK bare metal deploymnet +# ODK bare metal deployment This manual describes a way of how to run the installation on a bare metal hetzner box. @@ -8,7 +8,7 @@ It is meant to complement [Hetzner OCP](https://github.com/RedHat-EMEA-SSA-Team/ This is done without installing the logging/metrics System, because there is no value added when someone needs an environment for app-developement/customising apps or executing a showcase. The purpose is to have a real openshift smell like development-sandbox but not a fully blown cluster. -The procedure can be executed in approximatly 3-4h, where attention is needed for 1-2h approx. +The procedure can be executed in approximately 3-4h, where attention is needed for 1-2h approx. #Install Base OS @@ -39,48 +39,56 @@ LV vg0 home /home ext4 40G IMAGE /root/.oldroot/nfs/install/../images/CentOS-76-64-minimal.tar.gz ``` -for a box 2*2GB. If the imgge is not avalilible just check for the next version of CentOS. +To specify the rest of available space on the drive, you can easily use "all" at the last partition. +There is more information about the installimage script, [click here](https://wiki.hetzner.de/index.php/Installimage/en). -After installing the the image the first to to is enable SELinux, as it comes disabled: +For a box 2*2GB, if the image is not available just check for the next version of CentOS. + +After the image has installed, first update packages and enable SELinux, as it comes disabled: ``` +yum -y update vi /etc/selinux/config SELINUX=enforcing -reboot/login -getenfore --> Enfocing - -yum -y install screen git +# Restart the server. +sync; reboot now +# Check SELinux status. +getenforce +-> Enforcing +``` +Install the following packages: +``` +yum -y install screen git ``` # Install ODK -Please read the section upfront but shlighly change some commands +Please read the section upfront but slightly change some commands https://github.com/gshipley/installcentos -Skip strep 2. +Skip step 2. and clone with: ``` +# I recommend use screen to prevent session termination or connection issues once install script executed. +screen #Use your Git-Fork or use: export GIT_USER=gshipley git clone https://github.com/${GIT_USER}/installcentos ``` -Then Export the follwing variables; these will take control over the +Then Export the following variables; these will take control over the process os installation where relevant: - - ``` ### Optional: export SCRIPT_REPO=browse to your **RAW** fork of rep: -### export SCRIPT_REPO=https://raw.githubusercontent.com/${GIT_USER}/installcentos/master +### export SCRIPT_REPO=https://raw.githubusercontent.com/${GIT_USER}/installcentos/master export METRICS="False" export LOGGING="False" From d89b05eb8e7720a5460ae3c3b81d47f65669ac1b Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:22:05 +0200 Subject: [PATCH 17/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 0cef6be9..69b3af82 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -41,7 +41,7 @@ IMAGE /root/.oldroot/nfs/install/../images/CentOS-76-64-minimal.tar.gz To specify the rest of available space on the drive, you can easily use "all" at the last partition. -There is more information about the installimage script, [click here](https://wiki.hetzner.de/index.php/Installimage/en). +There is more information about the [**Installimage script**](https://wiki.hetzner.de/index.php/Installimage/en). For a box 2*2GB, if the image is not available just check for the next version of CentOS. From 32e353f7a3431a526e2a98db3249e94a4e7cceae Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:25:21 +0200 Subject: [PATCH 18/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 69b3af82..34b134b8 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -48,21 +48,23 @@ For a box 2*2GB, if the image is not available just check for the next version o After the image has installed, first update packages and enable SELinux, as it comes disabled: ``` -yum -y update -vi /etc/selinux/config +$ yum -y update +$ vi /etc/selinux/config + SELINUX=enforcing # Restart the server. -sync; reboot now +$ sync; reboot now + # Check SELinux status. -getenforce +$ getenforce -> Enforcing ``` Install the following packages: ``` -yum -y install screen git +$ yum -y install screen git ``` # Install ODK @@ -77,11 +79,11 @@ Skip step 2. and clone with: ``` -# I recommend use screen to prevent session termination or connection issues once install script executed. -screen +# I recommend use screen program to prevent session termination or connection issues once install script executed. +$ screen #Use your Git-Fork or use: -export GIT_USER=gshipley -git clone https://github.com/${GIT_USER}/installcentos +$ export GIT_USER=gshipley +$ git clone https://github.com/${GIT_USER}/installcentos ``` Then Export the following variables; these will take control over the process os installation where relevant: @@ -90,15 +92,16 @@ process os installation where relevant: ### Optional: export SCRIPT_REPO=browse to your **RAW** fork of rep: ### export SCRIPT_REPO=https://raw.githubusercontent.com/${GIT_USER}/installcentos/master -export METRICS="False" -export LOGGING="False" +$ export METRICS="False" +$ export LOGGING="False" + ``` 3. Execute the installation script ``` -cd installcentos -./install-openshift.sh +$ cd installcentos +$ ./install-openshift.sh ``` # Secure System with Firewall From 3477a9509f8e3bbdd1e03ed7a7ddc43cec2837b7 Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:26:28 +0200 Subject: [PATCH 19/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 34b134b8..44476a58 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -54,7 +54,7 @@ $ vi /etc/selinux/config SELINUX=enforcing # Restart the server. -$ sync; reboot now +$ sync; reboot # Check SELinux status. $ getenforce From 2851cd44aa3d90e1cff594b78b1c2ce9485c4eb5 Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:27:12 +0200 Subject: [PATCH 20/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index 44476a58..a35baba6 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -79,7 +79,7 @@ Skip step 2. and clone with: ``` -# I recommend use screen program to prevent session termination or connection issues once install script executed. +# I recommend use screen program to prevent session termination once install script executed. $ screen #Use your Git-Fork or use: $ export GIT_USER=gshipley From 2f78679f0cd340fb0c33b68f0f0c3c093221854a Mon Sep 17 00:00:00 2001 From: Bogdan Denysiuk Date: Wed, 3 Apr 2019 14:28:04 +0200 Subject: [PATCH 21/21] Updated all in one hetzner bare metal documentation --- all-in-one-hetzner-bare-metal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all-in-one-hetzner-bare-metal.md b/all-in-one-hetzner-bare-metal.md index a35baba6..4b98777a 100644 --- a/all-in-one-hetzner-bare-metal.md +++ b/all-in-one-hetzner-bare-metal.md @@ -81,7 +81,7 @@ and clone with: ``` # I recommend use screen program to prevent session termination once install script executed. $ screen -#Use your Git-Fork or use: +# Use your Git-Fork or use: $ export GIT_USER=gshipley $ git clone https://github.com/${GIT_USER}/installcentos ```