-
Install Java on the VM by running the command
yum -y install java-1.8.0-openjdk.x86_64
-
Check the version of Java installed
java –version
-
Create a dedicated user for Apache Tomcat. For security purposes, you need to create a dedicated non-root user "tomcat" who belongs to the "tomcat" group:
Prerequisites : Machine running CentOS 7 and tomcat installed on it. Please find instructions to install tomcat on CentOS 7 here.
-
set two environment variables: "JAVA_HOME" and "JRE_HOME"
sudo cp /etc/profile /etc/profile_backup echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile echo 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profile source /etc/profile
-
Download jenkins.war file from internet
- Let us assume that we have two machines - MachineOne & MachineTwo running any flavour of Unix operating system. For this gist we are going to use two machines running CentOS 7.
Steps to do on MachineOne:
#Install Ansible
- To get Ansible for CentOS 7, first ensure that the CentOS 7 EPEL repository is installed
sudo yum install epel-release
- Once the repository is installed, install Ansible with yum:
sudo yum install ansible
In this guide, I am going to show you how to set up ansible on CentOS 7 to run a simple playbook. This guide assumes that you have already installed ansible on your machine. If you haven't done that yet, please find the instructions to install ansible here.
The playbook that we are going to use in this guide is going to have instructions to create an empty file in the home folder of the user that ansible runs the playbook as.
I will use the term controller-node to refer to the node on which ansible is installed and the playbook run is initiated.
I will use the term target-node to refer to the machine to which ansible makes the changes to.
Below is the contents of the playbook:
Prerequisites: Machine running any unix flavoured operating system
Steps to create a new SSH Keypair:
- Run the below command on the command prompt
ssh-keygen
- Give the new keypair a name
- Securing the keypair with a pass phrase is optional. So, just press return key twice
What is Kubernetes?
What is Docker?
What are Linux Containers?
What is rocket(rkt)?