You can use below command to update puppet client certificate using below commands. Go to your puppet master and clean client certificate: # puppetserver ca clean <hostname> Now login to client and run below commands: # systemctl stop puppet # rm -r /var/lib/puppet/ssl # systemctl start puppet On Server go and register if needed: # […]
To block public access to an S3 bucket from multiple AWS accounts, you can follow these steps: Access Control Policies:Ensure that there are no bucket policies or access control lists (ACLs) that grant public access.Bucket Policy:Attach a bucket policy that explicitly denies all public access. Here’s an example policy: { "Version": "2012-10-17", "Statement": [ { […]
Below is the playbook which will create a LVM partition. Here, It will create PV, VG and then LVM which will be mounted on /dir. ## To create pv, vg:vg_test, lv:lv_test, filesystem, and mount it on /dir – hosts: server remote_user: ansible become: yes become_method: sudo connection: ssh gather_facts: yes tasks: – name: To create […]
To disable Nagios alerts for a hostgroup, You need login to nagios server and make changes in your Nagios configuration. Basically, you’ll need to modify the hostgroup definition. Below are the setps needed to disable alerts for a hostgroup.Step1: Login to your Nagios server using SSH:Log in to the Nagios Server using SSH with user […]
Let’s take an example of below playbook which has variables defined. You can see “vars” section of playbook. It has multiple variables like pkg, myuser etc. Now user is looking to change one variable during run time and rest can go same. You need to just pass value if variable while running playbook using option […]
Q.1 What is Ansible and what are its features? Ansible is an open-source automation tool that helps the deployment, configuration management, and orchestration of IT infrastructure. It is designed to automate repetitive tasks and you can configure lot of things using this tool.It is Agentless. Ansible uses a push-based architecture so it does not require […]
Q.1: What are the most common DevOps tools we use and let us know benefits of them. The most DevOps tools are Ansible, Puppet, Chef, Git, Jenkins, Bamboo, Docker, Docker Swarm, Kubernetes, Openshift, Nagios etc. Few details are as: Ansible, Puppet are configuration Management tool. Git is versioning tool. Docker is used for container services. […]
Step 1: On your client machine, Login via root. Step 2: Run below command to sync via NTP server. # ntpdate -u server-ntp.example.com (Where server-ntp.example.com is your NTP server) Step 3: Now go and add your ntp server to “ntp.conf” file. # vi /etc/ntp.conf server server-ntp.example.com Step 4: Start ntp service. # systemctl start ntpd […]
Differences between RHEL 6 and RHEL 7 ? What is bonding/Teaming ? How we can check what process are taking high CPU/Memory utilization? What type files/directory are present in /boot, /dev and /opt path ? Where are log file present and how we can change it ? What is runlevel and difference between runlevel vs […]
What is the basic difference between UNIX and Linux Operating System ? Define LINUX Kernel ? What do you understand by swap space in Linux ? How will you find which operating system your system is running on in UNIX ? How do you check how much space left in current drive ? How do […]
Recent Blog