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
Month: November 2016
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
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
