- Related Questions & Answers
The MISP software is an open source and free software released under the AGPL (Affero General Public License). We are committed to ensure that MISP will remain a free and open source project on the long-run. The MISP taxonomies and galaxy are licensed under CC0 1.0 Universal (CC0 1.0) - Public Domain Dedication or 2-clause BSD open source license. It contains all the aspects of RHEL 7 and how you can work with command line, GUI, basic system configuration, managing services, monitoring and automation, Kernel, module and driver configuration etc. This FREE guide on RHEL 7 is available for download and also in online form. You can read it at your own comfort.
- Selected Reading
Centos 7Linux
In this article, we will learn about how to install and configure open source Puppet agent/master on the CentOS 7, which is from Puppet Labs. Puppet is a configuration management tool that helps system administrator to automate the configuration, provisioning and management of the server infrastructure. The Puppet agents are called as nodes and we will be using the Puppet Server packages instead of the Passenger or any other environments.
We needed a root or super-users access to the servers where we want to install the Puppet master.
Prerequisites
We needed a proper DNS which is configured on the puppet server so that they the clients are able to communicate with your infrastructure. Firewall ports are open at 8140 from server to client and client to server to send instructions to the nodes/clients.
Preparing the Puppet Master Server
We needed to install CentOS 7 x64 bit for using with Puppet Master and the host name should be Puppet and the hardware requirements depends on the how many agents or nodes we want to manager, normally we needed 2 core CPU and minimum of 1GB of RAM and set the host file with the DNS record of the server
Installing NTP
As we use certificate authorities for agent nodes, the Puppet master must maintain the accurate time to avoid potential problems when it issues the agents certificates, which may expire if there are some time differences, to avoid these issues we will install NTP (Network Time Protocol).
Installing NTP using the YUM
below is the command –
We needed to update the pool zones in the configuration files so that it will update the correct time from the pools
Run the below command to update the time on the Puppet Master
Restarting the NTP services and enable the service to start at boot time
Installing the Puppet Server
As the environment is ready now we will install the puppet master server, we will install the Puppet server from official repository, to enable the repository we needed to run the below command.
![Install Install](https://windows-cdn.softpedia.com/screenshots/WinUtilities-Free_59.png)
After we update the repository we install the Puppet server using this command
Start the Puppet Server and enable the server to start at boot time using the below command.
Installing the Puppet Agent
We also needed to install the ager software on all the Puppet servers to manage. We needed to install this agent in all the node or client machines so that they are available for puppet server.
Enable the official Puppet Labs official repository with below command
Installing the puppet-agent package with the below command
Now we needed to star the Puppet agent which is installed with below command:
First time when we run the Puppet agent it will generate an SSL certificate and sends a signing request to the Puppet Master.
Getting Started with Puppet
Now we will learn the basic task for Puppet Master
Collectings Facts of nodes
‘factor’ which gathers the information about the nodes connected like OS names, host names of the client, SSH keys, IP address and more) we can also add custom facts that are not a part of default facts
To list the facts that are automatically being gathered, run the below command to do.
Main Manifest File
Puppet uses a specific language to tell the system configuration which manifests with extension .pp as default configuration file. The manifests are located at the following – /etc/puppetlabs/code/environments/production/manifests/site.pp
They are executed using the Puppet agents periodically executed in 30 minutes by default, when it checks the facts sends itself to the master which are pulled to the current catalog and the desired state which are relevant to the agent are determined by the main manifest.
Execution on a Particular Agent Node
We can also initiate the check for a particular agent manually and run the below command to manual execution.
Example Manifest for Demo
This will display the IP address located in the /tmp folder and the manifest will ensure that all the nodes will have the example-ip file in the /tmp folder.
Executing on a Specific a Node
We can also define a resource for the specific nodes in the manifest which can be done using node in the manifest.
The above example will ensure that node1 and node2 will have the file at /tmp/dns.
Executing a Module from Puppet Master
Modules can be useful for the grouping tasks to run together. There are many modules available in the Puppet community or we can write our own modules.
If we needed to install puppetlabs-apache modules.
Now edit the site.pp and add the following to install apache on the node2
This will install the apache package and configure a virtual host called demo.com for listening on the port 80 and the document root will be /var/www/html
![Install Puppet Free Edition In Rhel7 Install Puppet Free Edition In Rhel7](https://www.cyberciti.biz/media/new/faq/2009/05/How-to-install-yum-cron-on-CentOS-RHEL-server.jpg)
Note: before running this example, be careful that this will remove all the existing Apache configuration if anything there existing in the nodes.
After the configuration and setup we have covered the basic Master/agent installation with some manifest, modules we can manage the clients are infrastructure using the Puppet, as Puppet has many more features we will cover them in the further articles.
Installation and Configuration of RHEL 7.x
Learn about Installation and initial configuration of Red Hat Enterprise Linux, RHEL 7.3
For this Linux step by step installation guide we will use RHEL 7.3 64Bit iso image, the installation procedure is same for all RHEL 7.x releases in case you want to use a different RHEL version to install.
Learn about Installation and initial configuration of Red Hat Enterprise Linux, RHEL 7.3
For this Linux step by step installation guide we will use RHEL 7.3 64Bit iso image, the installation procedure is same for all RHEL 7.x releases in case you want to use a different RHEL version to install.
Here are the 10 Steps to Install RHEL 7.x distribution.
Step 1 Download the distribution
Download the RHEL 7.x ISO image from access.redhat.com
Write this ISO image to a create a bootable DVD or USB.
Write this ISO image to a create a bootable DVD or USB.
Step 2 Boot with Media
Use DVD/USB to boot and install RHEL 7.x
Make sure boot from CD/DVD or USB option is enabled in the CMOS setup of your computer. Different computers have different key sequences to press to enter setup at boot; you have to know the key sequence for your computer if you want to make any CMOS changes.
Make sure boot from CD/DVD or USB option is enabled in the CMOS setup of your computer. Different computers have different key sequences to press to enter setup at boot; you have to know the key sequence for your computer if you want to make any CMOS changes.
Installer screen is displayed after booting
Press <Up Arrow> to go to “Install Red Hat Enterprise Linux 7.x” and press <Enter>.
Press <Up Arrow> to go to “Install Red Hat Enterprise Linux 7.x” and press <Enter>.
Step 3. Setting Language
The graphical installer starts after a few seconds presenting a Language selection screen.
Select your language and click on “Continue”. Based on your selection your RHEL language and keyboard language will be selected.
Pressing continue gets you to next Screen presenting configuration options for localization, Software and System.
From this window, you can do most of the configuration.
Select your language and click on “Continue”. Based on your selection your RHEL language and keyboard language will be selected.
Pressing continue gets you to next Screen presenting configuration options for localization, Software and System.
From this window, you can do most of the configuration.
Step 4. Setting Date & Time
In the main configuration screen, Click on “DATE & TIME” to select your time zone following window.
You can select a Region and City from the drop down menu, select the date and time as applicable to your location time zone. You can enable “Network Time” from the top right corner to allow time sync from NTP servers over the internet but this option needs network to be up and you can leave it off here.
Once you’re done click on “Done”.
Once you’re done click on “Done”.
Once you click “Done”, it will take you to the main configuration window again.
Step 5. Setting Network and Host Name
5.1 Configuring Host Name:
Click on “NETWORK & HOST NAME” in the configuration window to start configuring network and the host name .
Following window is displayed indicating network status and host name config option at the bottom .
Change the “Host name” field on the bottom right to name of your choice or something like “server.yourdomain.com”.
Once you’re done, click on “Apply”
5.2 Configuring network
Once you’re done, click on “Apply”
5.2 Configuring network
click on “Configure” to configure your network adapter. If your router uses DHCP to give an IP address there’s no additional configuration required. You can assign ip address and subnet mast if you want, at this step.
Once you’re done setting up your network adapter, just enable the adapter from the top right corner.
Once you’re done setting up your network adapter, just enable the adapter from the top right corner.
you can see that, it’s connected to the internet.
Now click on “Done” on the top left corner .
Clicking “Done” leads you to main screen.
Step 6. Installing OS
You can do a minimal install of RHEL 7.x where minimal package are installed and it does not have any GUI after the installation. You have to manage the server from the terminal.
If you need GUI, you can click on “SOFTWARE SELECTION” to change by clicking on “Server with GUI” and click on “Done”.
If you need GUI, you can click on “SOFTWARE SELECTION” to change by clicking on “Server with GUI” and click on “Done”.
Setting Installation Destination
To select the installation destination, click on “INSTALLATION DESTINATION” from the main window.
To select the installation destination, click on “INSTALLATION DESTINATION” from the main window.
Next screen allows you to select the installation destination.
Select the disk and click on “Done”.
If you need, you can do other disk configuration such as, installing RHEL on Network Disk etc.
For this tutorial we will select local hard drive in this tutorial.
If you need, you can do other disk configuration such as, installing RHEL on Network Disk etc.
For this tutorial we will select local hard drive in this tutorial.
Step 7. Beginning Installation
Once everything is configured, your configuration window looks like this. Now click on “Begin Installation” to start installation with selected configurations.
7.1 Setting root (super user) password.
The installation starts with option to create user and set root (super user) password. Click on “ROOT PASSWORD” to set the password.
Enter your root password and keep it somewhere safe, so you won’t lose it.
7.2 Creating a new User :
Now click on “USER CREATION” and create a user. This can be alternate user name with super user access.
Make sure to mark “Make this user administrator”, otherwise you won’t be able to use ‘sudo command to use root privileges ’. Click on “Done” and wait till the installation finishes.
7.3 Finishing up with System Reboot.
Once it’s finished, click on “Reboot”
Rhel Free Download
Post Reboot Steps:
Step 8. Verify subscription.
After restart, A window to add our RHEL credentials to verify subscription.
First, click on “LICENSE INFORMATION”
Mark “I accept the license agreement” and click on “Done”.
Now from the main window, click on “Subscription Manager”
Now from the main window, click on “Subscription Manager”
8.1 Using activation key
You can use an activation key or your Red Hat username & password to verify your purchase of Red Hat license.
To use activation key, mark “I will use an Activation Key” and click on “Next”.
If you want to use the username and password, just click on “Next”, no need to mark “I will use an Activation Key”.
If you want to use the username and password, just click on “Next”, no need to mark “I will use an Activation Key”.
8.2Using username and password
We will use username and password here.
8.3 Completing RHEL Registration
After you provide the details and click on “Register” you will see the following window, It may be a different product depending on your purchase. Click on “Attach” to complete RHEL registration step.
Install Puppet Rhel 7
On successful registration, you will see this window.
Click on “Done”.
Click on “Done”.
Step 9. Finishing Installation
To finish the installation click on “FINISH CONFIGURATION”
Step 10. Logging in to the system
Login screen is presented and you can login using the username, created earlier.
Rhel 7 Download
After successful login, your Linux installation is ready to use
Rhel 7 Install Python 3
You can start exploring the system by using installed applications by using Applications drop down menu.