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

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