How to Run Puppet 7 Server on Rocky Linux/Centos 8 – BollyInside

How to Run Puppet 7 Server on Rocky LinuxCentos 8 ProxyEgg How to Run Puppet 7 Server on Rocky Linux/Centos 8 - BollyInside

This tutorial is about the How to Run Puppet 7 Server on Rocky Linux/Centos 8. We will try our best so that you understand this guide. I hope you like this blog How to Run Puppet 7 Server on Rocky Linux/Centos 8. If your answer is yes then please do share after reading this.
Table of contents

Check How to Run Puppet 7 Server on Rocky Linux/Centos 8

Chef Infra is one of the popular open source infrastructure as code (IAC) tools used in configuring, managing, and deploying server resources in networks. CHEF is written in the Ruby and Erlang languages ​​and is released under the Apache 2.0 License.

How to run Puppet 7 server on Rocky Linux/Centos 8

Make sure servers are up to date

Before we continue, let’s make sure the server packages are up to date with the following command:

sudo dnf -y update

Set the hostname. Puppet uses server hostnames to send manifests to nodes. Connect with the puppeteer.

The configured hostname

sudo hostnamectl set-hostname Make sure the hostname has a proper DNS record and also update the /etc/hosts file.

sudo vim /etc/hostsAdd this content: puppetmasterConfirm that the hostname reflects:

$ sudo hostnamectlStatic hostname: puppetmaster.citizix.comIcon name: Computer-vmChassis: vmMachine ID: ee3563997878469ebfcc3f721aec3c66Boot id: 2f916497602e4ecabe551a72b3f4ad74Virtualization: kvmOperating system: kvmOperating system: 4 o.cpe Name: rock: rock o.8 CPE: rocky Linux 8.4 (obsidian) : GA Kernel : Linux 4.18.0-305.3.1.el8_4.x86_64 Architecture: x86-64

Disable SELinux

Edit SELinux configuration using vim.

vim /etc/sysconfig/selinuxChange the value of SELINUX to ‘disabled’.


Save and exit. You will need to reboot for the changes to take effect. To apply the changes without rebooting, use this command:

sudo setenforce 0

Install the puppet server

Enabling the Puppet Platform repository makes the components necessary for the installation available on your system.

sudo dnf install Server is a required application that runs on the Java Virtual Machine (JVM) on the main server.

In addition to hosting endpoints for the CA service, Puppet Server also powers the Catalog Builder, which compiles configuration catalogs for agent nodes, using Puppet code and other data sources. In this section, you will install the puppet server package and start the service. Install the puppet server package.

sudo dnf install -y puppet server

Configure Puppet Master and Agent

Once the installation is complete, we need to configure the memory allocation for the puppet server. We will set the maximum memory allocation for the puppet server to 1 GB. Edit the ‘puppetserver’ configuration using vim.

sudo vim /etc/sysconfig/puppetserver Now change the line as shown below, then save and exit.

JAVA_ARGS=”-Xms1g -Xmx1g …”Define Puppet Master DNS and FQDN Alternative Names:

sudo vim /etc/puppetlabs/puppet/puppet.conf Add the DNS configuration in the section.

vardir = /opt/puppetlabs/server/data/puppetserverlogdir = /var/log/puppetlabs/puppetserverrundir = /var/run/puppetlabs/puppetserverpidfile = /var/run/puppetlabs/puppetserver/puppetserver.pidcodedir = /etc/puppetlabs/codedns_alt_names =puppetmaster.citizix,puppetmasterAdd Parent Section – This is the puppet agent configuration.


Start and enable the puppet service

Once the installation and configuration is done, we can start the puppet server using this command:

sudo systemctl start puppetserver Check the status of puppetserver using this command:

$ sudo systemctl status puppetserver● puppetserver.service – puppetserver ServiceLoaded: loaded (/usr/lib/systemd/system/puppetserver.service; disabled; provider default: disabled)Active: active (running) since Thursday 18 Nov 2021:47:34 UTC; 1 min 0 s ago Process: 132886 ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver start (code=exit, status=0/SUCCESS) Main PID: 132913 (java) Tasks: 45 (limit: 4915) Memory: 988.9MCGroup: /system.slice/puppetserver.service132913 /usr/bin/java -Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:OnOutOfMemoryError=kill -9 %p – XX: ErrorFile=/var/log/puppetlabs/puppetserver/puppetserver_err_pid%p.log -cp /opt/puppet>

Nov 04 18:47:09 systemd: Starting puppet server service… Nov 04 18:47:34 systemd: Puppet server service started. Check if you installed the puppet server correctly, by running: puppet server -v

puppetserver -vpuppetserver version: 7.4.1 You can now enable the puppet server to always start on boot:

sudo systemctl enable puppet server

Open service port on firewall

With the service started, open the port in the firewall so you can access the server from the network. This is only necessary if you apply firewall rules and have firewalld installed.

sudo firewall-cmd –add-port=8140/tcp –permanentsudo firewall-cmd –reload

Add Puppet Binary folder to $PATH

The puppet binaries are located in /opt/puppetlabs/bin. This default directory is not in your $PATH.

echo ‘export PATH=$PATH:/opt/puppetlabs/bin’ | tee -a ~/.bashrcsource ~/.bashrc9. Start the Puppet client

Let’s start the puppet agent service as we will be using it for some tests. Let’s register the puppet agent with the puppeteer.

Start puppet agent

sudo systemctl start puppet Check the status with this command:

$ sudo systemctl status puppet● puppet.service – Puppet agent Loaded: loaded (/usr/lib/systemd/system/puppet.service; disabled; vendor default: disabled) Active: active (running) since Fri 05/ 2021/11:37:08 UTC; 15s ago Main PID: 142622 (puppet) Tasks: 1 (limit: 23168) Memory: 52.6MCGroup: /system.slice/puppet.service142622 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/ puppet agent –not-demonize

Nov 05 07:37:08 systemd: Puppet agent started. Nov 05 07:37:09 puppet-agent: As of Puppet client version 7.12.0 Nov 5 07:37:11 puppet-agent: Catalog applied in 0.02 seconds10. Verify Puppet Agent Configuration

After the puppeteer has signed the certificate file for the agent, run the following command on the puppet agent to verify the settings

# puppet-agent –testInfo: ‘production’ environment usage Info: pluginfactsInfo retrieval: pluginInfo retrieval: catalog caching for puppetmaster.citizix.comInfo: configuration version app ‘1636097982’

The puppet agent pulled the puppeteer configuration and applied it to the server without any errors.

Create a simple manifest to deploy Nginx

With the installation and configuration of the agent and puppet master complete, let’s create a simple manifest for testing. We will create a manifest to install the Nginx web server. The puppet manifest will be stored in the environment specific directory at the path /etc/puppetlabs/code/environments/. We have defined production in our case, so let’s change to the production manifests directory using this.

cd /etc/puppetlabs/code/environments/production/manifestsCreate new manifest file.

vim site.pp Paste the following configuration.

node ‘’ {package { ‘nginx’:ensure => “installed”,}service { ‘nginx’:ensure => running,enable => true}}Save and exit.

Now open the puppet agent server shell and run the following command.

puppet agent -t

The command will retrieve a new puppeteer manifest configuration file and then apply it to the agent server. The following is the result.

# puppet agent –test

Info: ‘production’ environment usage Info: pluginfacts retrieval Info: plugin retrieval Info: catalog caching for Info: config version app ‘1636098770’ Notice: /Stage/Main/Node/Package/ensure: createdWarning: /Stage/Main/Node/Service/ensure: make sure ‘stopped’ has been changed to ‘running’ Info: /Stage/Main/Node/Service: Deprogramming of the update in the Service

You can check Nginx using this command:

# sudo systemctl status nginx● nginx.service – The nginx HTTP and reverse proxy server Loaded – Loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor default: disabled) Active – Active (running ) from Friday 2021- 11-05 07:53:49 UTC; 57s ago Main PID: 144600 (nginx) Tasks: 3 (limit: 23168) Memory: 6.1MCGroup: /system.slice/nginx.service144600 nginx: master process /usr/sbin/nginx144602 nginx: worker 144603 nginx: process of work

Nov 05 07:53:49 systemd: Starting the nginx HTTP and reverse proxy server… Nov 5 07:53:49 nginx: nginx: /etc/nginx/nginx.conf config file syntax is ok Nov 5 07:53:49 nginx: nginx: /etc/nginx/nginx.conf config file test successfulNov 05 07:53:49 systemd: Started The nginx HTTP and reverse proxy server.

Final words: How to Run Puppet 7 Server on Rocky Linux/Centos 8

I hope you understand this article How to Run Puppet 7 Server on Rocky Linux/Centos 8, if your answer is no then you can ask anything via contact forum section related to this article. And if your answer is yes then please share this article with your family and friends.

Source of this news:

Related posts:

Eugenio Suárez Needs More Power - FanGraphs
Eugenio Suárez is not a major league caliber shortstop. That’s no knock on him — pretty much no one in the entire world is, and he picked the position up out of necessity rather than because it was i...
HAProxy Found Vulnerable to Critical HTTP Request Smuggling Attack a considerable Internet
A critical assurance vulnerability has been disclosed regarding HAProxy , a widely used open-source insert balancer and proxy internet protokol, that could be abused by a adversary to possibly...
'Tis the Season for the Wayward Car finance package Phish – Krebs concerned with Security - Krebs av...
The holiday shopping season really want means big business with phishers, who tend to have increased success this time of year possessing lure about a wayward product that needs redelivery. Here’s a...
The Importance of Rotating IP Addresses in Ecommerce Sites -
The Importance of Rotating IP Addresses in Ecommerce Sites is to be explained. It is a common practice in the world to use proxies to collect data from the internet. The practice is often used to he...
Is there a difference between a web proxy and proxy server? guidebook AndroidGuys
If it turns out you‘re interested in boosting your digital security, you might want to try out one proxy. In general, these some other can keep your data safe from cyber attacks, enhance your p...
7 Must-Haves For Fast, Secure WordPress Shared Hosting - Search Engine Journal
Ready to build your first website? Are you shopping for affordable WordPress web hosting?There are multiple types of web hosting solutions to choose from: shared hosting, dedicated hosting, cloud hos...
Proxy Services Are Not Safe. Try These Alternatives - Wired
Millions of people across the world use free proxy services to bypass censorship filters, improve online security, and access websites that aren't available in their country. But an analysis has foun...
The Complete Guide to Private Proxies and How They are Disrupting SEO - Techstory
A proxy server is a computer that sits between the user’s internet connection and the internet itself. When a request for data comes in from your web browser, it goes out to the proxy server and then...
Five tips for web scraping - Web Hosting | Cloud Computing | Datacenter | Domain News - Daily Host N...
Web scraping can be challenging, given popular sites’ techniques and strategies to prevent developers from scraping their website. The most common of them is IP address detection. Many big sites have...
PC Cannot Connect To Some Sites - Networking - BleepingComputer
Issue: My PC cannot connect to some sites periodically. It may connect at one moment then 5 minutes later, it cannot connect again. The only way where I can consistently connect to these sites is whe...
Mandiant: SolarWinds Attackers Continue to Innovate -
Cyberwarfare / Nation-State Attacks , Fraud Management & Cybercrime , Governance & Risk Management Suspected Russian Group Hitting Cloud, Managed Service Providers Prajeet Nair (@prajeetsp...
What is a cURL? - TechnoChops
If this is the first time you hear about cURL, you’ll be surprised to learn that cURL is very widespread. If you use a device to transfer any data through the internet – cURL is hidden in there somew...
How To Fix '502 Bad Gateway Error' issue - BollyInside
This tutorial is about the How To Fix ‘502 Bad Gateway Error’ issue. We will try our best so that you understand this guide. I hope you like this blog How To Fix ‘502 Bad Gateway Error’ issue. If you...
Transitions: Eric Cantrell, 7thSense - InPark Magazine
Interview by Jordan Zauha Eric Cantrell has worked for show control solutions company Medialon since 2008. Founded in 1992, Medialon was acquired by imaging technology company Barco in 2016, and subs...
80 million Russians banned from Instagram - Kashmir News flash Service
  April 22:   Popular social media platform Instagram is now inaccessible for the great majority of Russia’s population, fueling the demand for  instagram-proxies   of ensu...
Rockwell Automation CIP Security Proxy - Automation World
With high-profile cyberattacks growing in frequency, industry has become all too aware of the potential dark side of internet-connected devices. While plant-floor networks were once air-gapped to sep...
Be pressent Microsoft's new Bug Attack and win rewards 1st WindowsReport. com
by Alexandru Poloboc News Editor With an overpowering decision to always get to the bottom involving things and uncover the fact remains, Alex spent most of the puppy's time working ...
Geonode Proxies As a Cybersecurity Measure - TechBullion
The Geonode Proxies website is a great way to understand how to use Geonode and how to set up a proxy server. Most websites that will offer you advice on how to set up proxy servers will us...

IP Rotating Proxy Onsale


First month free with coupon code FREE30