sftp configuration

[root@aserver ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:62:c0:ef brd ff:ff:ff:ff:ff:ff inet 192.168.43.133/24 brd 192.168.43.255 scope global … Continue reading sftp configuration

Nginx with Ansible

Ansible deployment server ====================================================================== [root@aserver ~]# ansible --version ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides ====================================================================== [root@aserver ~]# mkdir -p ansible-nginx/tasks/ [root@aserver ~]# touch ansible-nginx/deploy.yml [root@aserver ~]# touch ansible-nginx/tasks/install_nginx.yml [root@aserver ~]# tree ansible-nginx/ ansible-nginx/ |-- deploy.yml `-- tasks `-- install_nginx.yml [root@aserver ~]# vim $HOME/ansible-nginx/deploy.yml - hosts: nginx tasks: … Continue reading Nginx with Ansible

Working with Ansible

[root@localhost ~]# ip a 1: lo: mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eno16777736: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:62:c0:ef brd ff:ff:ff:ff:ff:ff inet 192.168.43.133/24 brd 192.168.43.255 scope global dynamic eno16777736 … Continue reading Working with Ansible

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