Question:- What are Puppet Manifests?
Answer:- Every Puppet Node or Puppet Agent has got its configuration details in Puppet Master, written in the native Puppet language. These details are written in a language that Puppet can understand and are termed as Puppet Manifests. These manifests are composed of Puppet codes, and their filenames use the .pp extension. For instance, we can write a manifest in Puppet Master that creates a file and installs Apache on all Puppet Agents or slaves that are connected to the Puppet Master.
Question:- How can I configure systems with Puppet?
Answer:- In order to configure systems with Puppet in a client or server architecture, we have to use the Puppet Agent and the Puppet Master applications. In a stand-alone architecture, we have to use the Puppet apply application.
Question:- What is a Puppet Module? How is it different from the Puppet Manifest?
Answer:- A Puppet Module is nothing but a collection of manifests and data (e.g., facts, files, and templates). Puppet Modules have a specific directory structure. They are useful for organizing the Puppet code because with Puppet Modules we can split the Puppet code into multiple manifests. It is considered as the best practice to use Puppet Modules to organize almost all of your Puppet Manifests. Puppet Modules are different from Puppet Manifests. Manifests are nothing but Puppet programs, composed of the Puppet code. File names of Puppet Manifests use the .pp extension.
Question:- Can you tell me what a Puppet codedir is?
Answer:- It is the main directory for code and data in Puppet. It consists of environments (containing manifests and modules), a global modules directory for all the environments, and your Hiera data.
Question:- Where do you find codedir in Puppet?
Answer:- It is found at one of the following locations: Unix/Linus Systems: /etc/puppetlabs/code Windows: %PROGRAMDATA%PuppetLabscode (usually, C:ProgramDataPuppetLabscode) Non-root users: ~/.puppetlabs/etc/code
Question:- How does Ansible work?
Answer:- Ansible is an open-source automation tool, which is categorized into two types of servers: Controlling machines Nodes Ansible will be installed on the controlling machine, and using that machine nodes are managed with the help of SSH. Nodes’ locations are specified by inventories in that controlling machine. Since Ansible is an agentless tool, it doesn’t require any mandatory installations on remote nodes. So, there is no need of background programs to be executed while it is managing any nodes. Ansible can handle a lot of nodes from a single system over an SSH connection with the help of Ansible Playbooks. Playbooks are capable of performing multiple tasks, and they are in the YAML file format. Are you interested in learning DevOps from experts? Enroll in the DevOps Course in Bangalore provided by Intellipaat!
Question:- Sometimes, we use ad-hoc commands instead of Playbooks in Ansible. Can you tell me what’s the difference between Ansible Playbook and an ad-hoc command? Also, cite when to use them.
Answer:- Ad-hoc commands are used to do something quickly, and they are for, mostly, one-time use. Whereas, Ansible Playbook is used to perform repeated actions. There are scenarios where we want to use ad-hoc commands simply to perform a non-repetitive activity.
Question:- Why should I use Ansible?
Answer:- Ansible can help in: • Configuration Management • Application Deployment • Task Automation
Question:- What are handlers in Ansible?
Answer:- Handlers in Ansible are just like regular tasks inside an Ansible Playbook, but they are only run if the task contains a ‘notify’ directive. Handlers are triggered when it is called by another task.
Question:- Have you heard about Ansible Galaxy? What does it do?
Answer:- Yes, I have. Ansible Galaxy refers to the ‘Galaxy website’ by Ansible, where users share Ansible roles. It is used to install, create, and manage Ansible roles.
Question:- Can you write the syntax for building a docker image?
Answer:- To build a docker image, we use the following command: docker build –f -t image_name:version
Question:- What is the concept of sudo in Linux?
Answer:- Sudo is a program for Unix/Linux-based systems that provides the ability to allow specific users to use specific system commands in the system’s root level. It is an abbreviation of ‘superuser do’, where ‘super user’ means the ‘root user’.
Question:- Can you tell me the purpose of SSH?
Answer:- SSH is nothing but a secure shell that allows users to login with a secure and encrypted mechanism into remote computers. It is used for encrypted communications between two hosts on an unsafe network. It supports tunneling, forwarding TCP, and also transferring files.
Question:- What is NRPE in Nagios?
Answer:- NRPE stands for ‘Nagios Remote Plugin Executor’. As the name suggests, it allows you to execute Nagios plugins remotely on other Linux or Unix machines. It can be helpful in monitoring remote machine performance metrics such as disk usage, CPU load, etc. It can communicate with some of the Windows agent addons. We can execute scripts and check metrics on remote Windows machines as well.