[root@puppetmaster ~]# cat /etc/puppet/modules/nginx/manifests/init.pp # Class: nginx # # This module manages NGINX. # # Parameters: # # There are no default parameters for this class. All module parameters are managed # via the nginx::params class # # Actions: # # Requires: # puppetlabs-stdlib - https://github.com/puppetlabs/puppetlabs-stdlib # # Packaged NGINX # - RHEL: EPEL or … Continue reading Nginx through puppet
Apache-though puppet
[root@puppetmaster ~]# cat /etc/puppet/modules/apache/manifests/init.pp # Class: apache # # This class installs Apache # # Parameters: # # Actions: # - Install Apache # - Manage Apache service # # Requires: # # Sample Usage: # class apache ( $apache_name = $::apache::params::apache_name, $service_name = $::apache::params::service_name, $default_mods = true, $default_vhost = true, $default_charset = undef, $default_confd_files … Continue reading Apache-though puppet
puppet modules
---------------------------------------------------------------------------------------------------------------------------------[root@puppetmaster ~]# puppet module search ftp Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS jhoblitt-pureftpd Manages the pure-ftpd package with comprehensive configuration support @jhoblitt mysql ldap ftp redhat rhel centos cyberious-pget Powershell Alternative to wget or curl @cyberious wget curl ftp sftp https http thias-vsftpd vsftpd FTP server @thias centos rhel ftp debian ubuntu example42-vsftpd … Continue reading puppet modules
zimbra
[root@www ~]# yum update Loaded plugins: fastestmirror, security Setting up Update Process Loading mirror speeds from cached hostfile * base: mirrors.usc.edu * extras: mirror.supremebytes.com * updates: centos.chicago.waneq.com Resolving Dependencies --> Running transaction check ---> Package initscripts.x86_64 0:9.03.49-1.el6.centos.4 will be updated ---> Package initscripts.x86_64 0:9.03.49-1.el6.centos.5 will be an update ---> Package kernel.x86_64 0:2.6.32-573.26.1.el6 will be installed … Continue reading zimbra
hostname
[root@RAID ~]# hostname RAID [root@RAID ~]# cat /etc/hosts 127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1     localhost localhost.localdomain localhost6 localhost6.localdomain6 RAID [root@RAID ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=RAID [root@RAID ~]# nano /etc/hosts [root@RAID ~]# nano /etc/sysconfig/network [root@RAID ~]# cat /etc/hosts 127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1     localhost localhost.localdomain … Continue reading hostname
How To Disable FIREWALLD In rhel-7 And Enable IPTABLES
[root@server ~]# cat /etc/system-release Red Hat Enterprise Linux Server release 7.1 (Maipo) [root@server ~]# systemctl  status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled) Active: active (running) since Mon 2016-03-28 10:06:01 PDT; 52min ago Main PID: 873 (firewalld) CGroup: /system.slice/firewalld.service └─873 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid Mar 28 10:06:01 server.puppet.in systemd[1]: … Continue reading How To Disable FIREWALLD In rhel-7 And Enable IPTABLES
FTP,SFTP,FTPS,TFTP
Difference between ftp,sftp,ftps,tftp FTP, FTPS and SFTP are the most widely used file transfer protocols in the industry today. All 3 of them are different in terms of the data exchange process, security provisions and firewall considerations. Let’s discuss how these are different so it’s easier for you to select the right protocol based your … Continue reading FTP,SFTP,FTPS,TFTP
top,htop
Top Command  Top Command: As a Linux system administrator, top command is a frequently used command and our daily tasks we used multiple times this commands to view resource utilization by processes on server. This command helps us to find which process is utilizing what resources of system. Result Row #1: Row 1 results … Continue reading top,htop
GRUB WITH PASSWORD
How to Protect GRUB with Password STEP 1: Create a password for GRUB, be a root user and open command prompt, type below command. When prompted type grub password twice and press enter. This will return MD5 hash password. Please copy or note it down. [root@localhost ~]# grub-md5-crypt Password: Retype password: $1$/98ml$JGwe1sR.R9o37DoFIMwHP0 Step 2: Now … Continue reading GRUB WITH PASSWORD
TCP WRAPPERS
Linux access control using TCP WRAPPERS Maintaining a good access control list is a nice practice, that must be adopted by any Linux system administrator. This can be achieved with the help of multiple tools. An additional layer of security after your firewall and before your service daemon is a good approach, because even if … Continue reading TCP WRAPPERS



