Puppet Survival Commands

Puppet Survival Commands

In this article i will be sharing the main puppet commands you will be using most frequently.

Below are other articles you may want to take a loot at:

 

Testing Puppet Agent

puppet agent --test --ca_server=master-server-name

Continue reading

Puppet Modules and How to Use them

What are Puppet Modules and How to Use them?

How to do automation tasks using Puppet modules and how they differ to manifests. In previous articles I discussed What is Puppet, How to install it and Puppet Manifests Basics.

Puppet Module

Puppet Module

What are Puppet Modules ?

Puppet modules are mainly for organizing and breaking your code into simpler and smaller files. For modules you can write your own or even download pre-made ones.

Continue reading

What are Puppet Modules and How to Use them?

What are Puppet Modules and How to Use them?

How to do automation tasks using Puppet modules and how they differ to manifests. In previous articles I discussed What is Puppet, How to install it and Puppet Manifests Basics.

 

What are Puppet Modules ?

Puppet modules are mainly for organizing and breaking your code into simpler and smaller files. For modules you can write your own or even download pre-made ones.

Continue reading

How to use Puppet Manifests

How to use Puppet Manifests

In this tutorial you will learn how to use Puppet Manifests, to understand this tutorial you need to have an idea about manifests and resources also if you would like to learn about how to install Puppet follow this link.

 

To learn how to use Puppet manifests for automation will go through a simple life scenario, imagine that we have an infrastructure of 100 servers which are all connected to Puppet master and we need to change certain file in them and be sure that the Apache HTTPD is running.

Simple Puppet Manifest Example

In real life scenario there should be nodes which in them you should groups the servers into different groups so you can call specific groups whenever you want to make a change, in this simple example we are creating a simple site.pp manifest file to accomplish the previous goal. Continue reading

What are Puppet Manifests and Puppet Structure

What are Puppet Manifests and Puppet Structure

In this tutorial you will know all about Puppet manifests and the main Puppet structure.

What are Manifests ?

Manifests are files with extension *.pp which have instructions or resources to be checked, installed or modified, resources can be packages, services or files.

What are Resources ?

Resources can be packages, executable, services, files, users or any other instructions to be made as part of automation manifest script.

For example you can write a manifest which will install apache in one server and yet create users and change some permissions for some files.

What are Classes

Classes is a way of organizing, you can group some of the code in a class and save it in a module which can be called later in a manifest.

Manifests Simple Examples

 

Install a Package

package {'httpd':
ensure => present,
}

Continue reading

How to Install Puppet Enterprise Server And Nodes

How to Install Puppet Enterprise Server And Nodes

In this tutorial I will show you how to install the Puppet Automation tool master and nodes.

Overview

It's good practice to have a Puppet master server which will be controlling the agents and yet agents/nodes will be pulling all info and configurations from there.

Requirements

Time should be accurately set and synced on Puppet master therefor will install the Network TIme Protocol.

yum install -y ntp

You must open firewall to port 8140 as this is the port which will be used from nodes too.

Continue reading