How to share code between Chef recipes using module?
The simplest thing would be is moving this do stuff to library. my_cookbook/libraries/myhelper.rb: Then you can use this module in recipes like that: Just make sure you add a dependency…
Read more »
How to call another chef recipe within same or other Cookbook?
How to call another chef recipe within same or other Cookbook? How to call another chef recipe within same Cookbook? You can use include_recipe with a file name of the…
Read more »
Chef Errors and Solutions Database
Chef Error: Could not find cookbook cookbooks_test in your cookbook path, sk Chef Error: Network Error: getaddrinfo: nodename nor servname provided, or Chef Error: Getting Error while executing Che recipe…
Read more »
Chef Lab and Excercise – roles – Part 4
Create a role and assign any two cookbooks to role and setup a 2 nodes assigned to role and conerse the role. Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing…
Read more »
Chef Lab and Excercise – Cookbooks – Part 3
Write a cookbook using install version of latest tomcat and deploy a Jenkins.war file into tomcat web directory. Write a cookbook using you can install apache http server in CentOs…
Read more »
Terraform Install Ansible and Run Playbook Example
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Example Code of Terraform AWS VPC
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform Implicit and Explicit Dependencies
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform Output Variable Tutorials with Example
Terraform will store hundreds or even thousands of attribute values for all the defined resources in our infrastructure in state file. An outputed attributes can not only be used for…
Read more »
Terraform Tutorials: Variables – Data Type – Boolean
The last of the available variable types is boolean. They give the option to employ simple true or false values. For example, you might wish to have a variable that…
Read more »Terraform Tutorials: Variables – Data Type – Map
In this example, the instance_tags variable is defined with a type of map(string), and it is given a default value of { Name = “my-instance” }. The AWS provider is…
Read more »
Example of terraform terraform.tfvars
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform variable using TF_VAR environment variables example
How to set Terraform Variables in Windows? Terraform will read environment variables in the form of TF_VAR_name to find the value for a variable. For example, the TF_VAR_region variable can…
Read more »
Terraform variable using anyotherfile.tfvars example
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform variable using command line example
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform Tutorials: Variables – Data Type – String
In this example, the instance_name variable is defined with a type of string, and it is given a default value of “my-instance”. The AWS provider is then configured to use…
Read more »
Terraform Example Code for Hello world Program
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform example program for aws_security_group, aws_instance and provisioner
Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market…
Read more »
Terraform Error: Key is not in valid OpenSSH public key format
Code Error Solutions: Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday…
Read more »
Example Terraform Code for AWS provider, resources aws_key_pair
This command would generate a public and private key $ ssh-keygen -f terraform_ec2_key This resources would import aws key pair Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and…
Read more »
Terraform state explained!!!
By – christophchamp Terraform keeps the remote state of the infrastructure It stores it in a file called terraform.tfstate There is also a backup of the previous state in terraform.tfstate.backup When you execute terraform apply, a new terraform.tfstate and…
Read more »
What is SEO?
SEO means (search engine optimization) is a process whereby we optimize our page and our website at the top of Google page. Google is the most popular search engine in…
Read more »
Update the taints on one or more nodes in Kubernetes
What is meaning of taint? a trace of a bad or undesirable substance or quality. What is tainted? spoiled; damaged in quality, taste, or value: Follwing are workload which run…
Read more »
Setup NFS server and use inside a Kubernetes pods in RHEL/CENTOS7
Setup a NFS server in one of the node of Kubernetes Cluster using rhel 7.X Validate NFS server is working Manually Using NFS server in Kubernetes Pods Rajesh KumarI’m a…
Read more »
Kubernetes Configmap explained using example
Content of reverseproxy.conf Commands to execute to create configmap Example pod using configmap Validating configmap inside a pod Rajesh KumarI’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I…
Read more »
Detailed explaination of joining Kubernetes Nodes aka workers in Kubernetes master?
Step 1 – Install Docker https://www.devopsschool.com/tutorial/docker/install-config/ https://www.devopsschool.com/tutorial/docker/install-config/docker-install-commuityedition-centos-rhel.html Step 2 – How to find discovery-token-ca-cert-has in kubernetes master node? Mehtod 1 – Using openssl Method 2 – Using Ansible Python Filter…
Read more »
Kubernetes PersistentVolume and PersistentVolumeClaim using NFS volume types
Save the definition to a file, for example nfs-pv.yaml, and create the PV: $ kubectl create -f nfs-pv.yaml persistentvolume “pv0001” created $ get pv $ kubectl create -f nfs-claim.yaml Pods…
Read more »
AWS Certified Advanced Networking – Specialty Explained
AWS Certified Advanced Networking – Specialty Certification is an industry-supported credential designed for network practitioners looking forward to starting a career in the field of networking and hybrid IT architectures….
Read more »
Kubernetes Errors and Solutions Database
Kubernetes minikube errors and Solutions kubeadm error – kubelet isn’t running or healthy and connection refused EKS cluster setup error: the server doesn’t have a resource type “services minikube error…
Read more »
How to expose multiple port in services in kubernetes or Multi-Port Services
You have two options: You could have multiple services, one for each port. As you pointed out, each service will end up with a different IP address You could have…
Read more »