rpm -ivh <file-name>.rpm
Boot Strapping a node reference doc
- Spin an instance in aws (rhel-7) tag it as chef-node.
- Spin up the chef-workstation and test the ssh connectivity between chef-workstation and chef-node
ssh -i ~/path/to/key.pem username@<ip/domainname>
- Exit the test session once connected.
- Start the bootstrap process using key-based authentication.
Instructions to install chef-server 12.15.7-1 on RHEL 7.3. The official documentation for installation can be found here
Chef Server Installation
Optional packages installed
--> chef-manage
It is possible to bootstrap an EC2 instance by running a shell script on launch. The shell script that you want to run when a new EC2 instance is created should be placed in the userdata section. Userdata section can be found in the advanced options while configuring the new EC2 instance. The userdata that is provided on EC2 creation console is copied to the below mentioned folder
/var/lib/cloud/instance/scripts
Also, the log file for the userdata execution can be found here :
- Create a CentOS 7 Virtual machine on a Virtual box.
- Install Java jdk 1.8.0 by using the below command.
yum -y install java-1.8.0-openjdk.x86_64
- Once the java installation is completed configure the Environment Variables with the below paths
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
- Verify the java version and paths.
It is a way to define certain patterns and processes that exist across nodes in a organization as belonging to single job function. Each role consists of a run list and zero (or more) attributes.
Advantages and Disadvantages:
- Roles can not be versioned.
- It is easier to search for Chef nodes in a role than Chef nodes that ran a recipe.
- They're intended to be a lightweight way to group servers that shouldn't contain much business logic.
Example:
- Installation Add the Jenkins repository to the yum repos, and install Jenkins from here.
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
- Installation of a stable version /n There is also a LTS YUM repository for the LTS Release Line
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
Add Email-extension plugin
Gmail settings
ICMP (Internet Control Message Protocol) is an error-reporting protocol network devices like routers use to generate error messages to the source IP address when network problems prevent delivery of IP packets.