Skip to main content

Posts

Showing posts from April, 2015

Installing Puppet 4 On RHEL/CentOS-7

Installing Puppet Open Source 4 Pre-Install Checks: 1. Decide on a Deployment Type: Because Puppet can run in Mater/Agent(Server/Client) mode and also in stand-alone mode, So we need to decide which type of installation we are going to install. Accordingly we need to choose the packages. 2. Hardware Requirements: I. The Puppet agent service has no particular hardware requirements and can run on nearly anything. II. At minimum, Puppet master server should have two processor cores and at least 1 GB RAM. III. To comfortably serve at least 1000 nodes, it should have 2-4 processor cores and at least 4 GB RAM. 3. Network Configuration. I. In an agent/master deployment, we must prepare our network for Puppet’s traffic. Firewall : 8140 port Name Resolution : Every node must have a unique hostname. Forward and reverse DNS must both be configured correctly. Or we can create entries in /etc/hosts file. ...

Remote Docker Host Using Docker Client

Connecting remote docker host using docker client In previous post ( here ) we have seen, by default docker is going to start within host using UNIX socket  unix:///var/run/docer.sock.  At this time we can only manage docker from the local machine, if we want to accept the connection requests from a remote client we need to start the docker daemon on remote port. So here we are going to setup the remote port. First we need to stop the existing socket, we can stop it by using the following comamnd: # systemctl stop docker Some time socket not get closed by stopping the service, so we can remove the socket manually as well. # rm -r /var/run/docker.sock Now we can start it on a specific port by using following command: # docker -H tcp://0.0.0.0:5050 -H unix:///var/run/docker.sock -d & Now we can verify it using following command: # netstat -tupnl | grep 5050...

LINUX CONTAINERS

LINUX CONTAINERS What is Linux Container:  Linux containers have different approach than the Virtualization technology. Simply we can say this is OS level Virtualization, which means all containers run on top of one linux operating system.  We can start containers on a hardware running machine or inside of running virtual machine. Each container run's as a fully isolated operating sysem. In container virtualization rather than having an entire Operating System guest OS, containers isolate the guest but do not virtualize the hardware. For running containers one needs a patched kernel and user tools, the kernel provides process isolation and performs resource management. Thus all containers are running under the same kernel but they still have their own file system, processes, memory etc. Linux based containers mainly involved with two concepts: 1. Namespaces 2. Cgroups ( Controll Groups) There are total 6 types of Namespaces: 1. PID Na...