Apache management with puppet

===================================================== [root@server ~]# puppet module search httpd Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS thias-apache_httpd Manage the Apache httpd web server and its configuration... @thias apache httpd web puppetlabs-apache Installs, configures, and manages Apache virtual hosts, ... @puppetlabs web httpd rhel ssl wsgi proxy ===================================================== [root@server ~]# puppet module install puppetlabs-apache --version 1.10.0 Notice: … Continue reading Apache management with puppet

ssh-authentication with puppet

=================================================================== [root@server ~]# puppet module search ssh Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS ghoneycutt-ssh Manages SSH @ghoneycutt ssh sshd openssh sshkey =================================================================== [root@server ~]# puppet module install ghoneycutt-ssh Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules └─┬ ghoneycutt-ssh (v3.49.0) ├── ghoneycutt-common … Continue reading ssh-authentication with puppet

samba-share with puppet

============================================ [root@server ~]# puppet module search samba Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS kakwa-samba Module managing Samba, including Samba as a AD Domain Controller @kakwa samba cifs smb domain dc ad ============================================ [root@server ~]# puppet module install kakwa-samba Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- … Continue reading samba-share with puppet

nfs share with puppet

================================================= [root@server ~]# puppet module search nfs Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS derdanne-nfs Installs and configures NFS server and clients @derdanne nfs nfs4 exports mount mfc ================================================= [root@server ~]# puppet module install derdanne-nfs Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... … Continue reading nfs share with puppet

ftp-server with puppet

=========================================================== [root@server ~]# puppet module search ftp Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS thias-vsftpd vsftpd FTP server @thias rhel ftp debian ubuntu centos [root@server ~]# puppet module install thias-vsftpd Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules └── thias-vsftpd (v0.2.1) ============================================================= … Continue reading ftp-server with puppet

Ruby Basics

                                               puts [root@ruby ~]# irb irb(main):001:0> 1+5 => 6 irb(main):002:0> puts "hello world" hello world => nil irb(main):003:0> quit ======================================== [root@ruby ~]# cat >hello.rb print(10+5) print("\n") puts "Hai how are you" [root@ruby ~]# … Continue reading Ruby Basics

hard-soft links for files and directories

what is soft&hard links Hard Link acts like a mirror copy of the original file. These links share the same inodes. Changes made to the original or hard linked file will reflect in the other. When you delete Hard Link nothing will happen to the other file. Hard links can't cross file systems. Soft Link … Continue reading hard-soft links for files and directories

How to increase root file system if it’s mounted with standard partition(By extending Space on same disk)

Before adding extra disk space [root@localhost ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 ext4 8.8G 855M 7.5G 11% / devtmpfs devtmpfs 480M 0 480M 0% /dev tmpfs tmpfs 489M 0 489M 0% /dev/shm tmpfs tmpfs 489M 6.7M 483M 2% /run tmpfs tmpfs 489M 0 489M 0% /sys/fs/cgroup /dev/sda1 ext4 969M … Continue reading How to increase root file system if it’s mounted with standard partition(By extending Space on same disk)

HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk)

HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk) [root@master ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 18G 1.3G 17G 8% / devtmpfs devtmpfs 479M 0 479M 0% /dev tmpfs tmpfs 489M 0 489M 0% /dev/shm tmpfs tmpfs 489M 6.7M 483M 2% /run tmpfs … Continue reading HOW TO INCREASE ROOT FILE SYSTEM IF ITS MOUNTED ON LVM(By extending existing disk)