ELK

What is ELK stack? ELK stands for Elasticsearch, Logstash and Kibana. Brief definitions: Logstash: It is a tool for managing events and logs. You can use it to collect logs, parse them, and store them for later use (like, for searching). Speaking of searching, logstash comes with a web interface for searching and drilling into … Continue reading ELK

Adding roles in Ansible

[root@aserver ~]# ls -l /etc/ansible/ total 28 -rw-r--r--. 1 root root 14396 Nov 4 14:58 ansible.cfg -rw-r--r-- 1 root root 1064 Dec 31 14:54 hosts -rw-r--r--. 1 root root 125 Nov 16 07:16 index.html drwxr-xr-x. 2 root root 4096 Nov 4 14:58 roles [root@aserver ~]# ls -l /etc/ansible/roles/ total 0 root@aserver ~]# ansible-galaxy search username.rolename … Continue reading Adding roles in Ansible

Basics In Ansible

======================================================== [root@bserver ~]# rpm -qa httpd [root@aserver ~]# ansible bserver.example.org -m yum -a "name=httpd state=present"bserver.example.org | SUCCESS => { "changed": true, "msg": "", "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.dhakacom.com\n * extras: mirror.dhakacom.com\n * updates: mirror.dhakacom.com\nResolving Dependencies\n--> Running transaction check\n---> Package httpd.x86_64 0:2.4.6-45.el7.centos will be installed\n--> Processing … Continue reading Basics In Ansible

working with gitlab

[root@git ~]# yum install curl openssh-server postfix cronie Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.nac.net * epel: mirror.us.leaseweb.net * extras: mirror.cc.columbia.edu * updates: mirror.trouble-free.net Package 2:postfix-2.10.1-6.el7.x86_64 already installed and latest version Package cronie-1.4.11-14.el7_2.1.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package curl.x86_64 0:7.29.0-25.el7.centos will be … Continue reading working with gitlab

working with git

root@NOC-RAFI:~# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 17:f8:ce:49:fa:61:23:37:61:e6:0e:97:f2:b0:5b:aa root@NOC-RAFI The key's randomart image is: +--[ RSA 2048]----+ … Continue reading working with git

Working with JIRA Instance

[root@li361-239 ~]# wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-core-7.2.4-x64.bin [root@li361-239 ~]# ll total 310188 -rw-r--r-- 1 root root 317624353 Dec 8 09:26 atlassian-jira-software-7.2.4-x64.bin [root@li361-239 ~]# chmod 755 atlassian-jira-software-7.2.4-x64.bin [root@li361-239 ~]# ll total 310188 -rwxr-xr-x 1 root root 317624353 Dec 8 09:26 atlassian-jira-software-7.2.4-x64.bin [root@li361-239 ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 96.126.104.239 netmask 255.255.255.0 broadcast 96.126.104.255 inet6 fe80::f03c:91ff:fee0:4c37 prefixlen 64 scopeid … Continue reading Working with JIRA Instance

salt stack configuration

Master-server server configuration [root@localhost ~]# 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:a0:15:c1 brd ff:ff:ff:ff:ff:ff inet 192.168.43.147/24 brd … Continue reading salt stack configuration

ossec

[root@server ~]# yum install epel-release -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.fibergrid.in * epel: epel.mirror.net.in * extras: mirror.fibergrid.in * updates: mirror.fibergrid.in Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-8 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================ Installing: epel-release … Continue reading ossec

tftp configuration

[root@aserver ~]# yum install tftp-server xinetd -y [root@aserver ~]# systemctl status tftp ● tftp.service - Tftp Server Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled) Active: inactive (dead) Docs: man:in.tftpd [root@aserver ~]# systemctl start tftp [root@aserver ~]# systemctl status tftp ● tftp.service - Tftp Server Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled) Active: active (running) since … Continue reading tftp configuration

Chef-server,workstation,node set-up

148.72.244.143 chefserver.linuxmadeeasy.in 160.153.228.67 chefworkstation.linuxmadeeasy.in 107.180.72.87 chefclient.linuxmadeeasy.in =============== SERVER =================== 148.72.244.143 chefserver.linuxmadeeasy.in [root@chefserver ~]# wget https://packages.chef.io/stable/el/7/chef-server-core-12.10.0-1.el7.x86_64.rpm --2016-11-18 14:06:15-- https://packages.chef.io/stable/el/7/chef-server-core-12.10.0-1.el7.x86_64.rpm Resolving packages.chef.io (packages.chef.io)... 151.101.8.65 Connecting to packages.chef.io (packages.chef.io)|151.101.8.65|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://packages.chef.io/files/stable/chef-server/12.10.0/el/7/chef-server-core-12.10.0-1.el7.x86_64.rpm [following] --2016-11-18 14:06:16-- https://packages.chef.io/files/stable/chef-server/12.10.0/el/7/chef-server-core-12.10.0-1.el7.x86_64.rpm Reusing existing connection to packages.chef.io:443. HTTP request sent, awaiting response... 200 OK Length: 343413282 … Continue reading Chef-server,workstation,node set-up