Managing Puppet Environment with r10k

Managing Environment with r10k r10k is a code management tool that allows you to manage your environment configurations (such as production, testing, and development) in a source control repository. Based on the code in your control repo branches, r10k creates environments on your master and installs and updates the modules you want in each environment. … Continue reading Managing Puppet Environment with r10k

Installing and using librarian-puppet

[root@www ~]# yum install gem -y [root@www ~]# gem install librarian-puppet --no-rdoc --no-ri Fetching: thor-0.20.0.gem (100%) Successfully installed thor-0.20.0 Fetching: librarianp-0.6.3.gem (100%) Successfully installed librarianp-0.6.3 Fetching: rsync-1.0.9.gem (100%) Successfully installed rsync-1.0.9 Fetching: multipart-post-2.0.0.gem (100%) Successfully installed multipart-post-2.0.0 Fetching: faraday-0.9.2.gem (100%) Successfully installed faraday-0.9.2 Fetching: faraday_middleware-0.10.1.gem (100%) Successfully installed faraday_middleware-0.10.1 Fetching: fast_gettext-1.1.0.gem (100%) Successfully installed fast_gettext-1.1.0 … Continue reading Installing and using librarian-puppet

IT Infrastructure with Virtual-box Vagrant Puppet Git & Jenkins

VirtualBox is a general-purpose full virtualizer for x86 hardware. mohammedrafi@NOC-RAFI:~$ vboxmanage --version 4.3.36_Ubuntur105129 Vagrant is an open-source software product for building and maintaining portable virtual software development environments, e.g. for VirtualBox, Hyper-V, Docker, VMware, and AWS. mohammedrafi@NOC-RAFI:~$ vagrant version Installed Version: 1.8.1 Latest Version: 1.9.7 To upgrade to the latest version, visit the downloads page … Continue reading IT Infrastructure with Virtual-box Vagrant Puppet Git & Jenkins

Docker Machine

Docker Machine is a tool that lets you install Docker Engine on virtual hosts, and manage the hosts with docker-machine commands. You can use Machine to create Docker hosts on your local Mac or Windows box, on your company network, in your data center, or on cloud providers like Azure, AWS, or Digital Ocean. Using … Continue reading Docker Machine

Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration. Install Docker Compose https://github.com/docker/compose/releases [root@jenkins ~]# curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.15.0/docker-compose-$(uname -s)-$(uname -m)" % Total % Received % Xferd Average Speed Time Time … Continue reading Docker Compose

Docker Deep Dive

[root@jenkins ~]# docker Usage: docker COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "/root/.docker") -D, --debug Enable debug mode --help Print usage -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string … Continue reading Docker Deep Dive

Linux namespaces

A namespace wraps a global system resource in an abstraction that makes it appear to the processes within the namespace that they have their own isolated instance of the global resource. Changes to the global resource are visible to other processes that are members of the namespace, but are invisible to other processes. One use … Continue reading Linux namespaces

Environments usage in puppet

[root@server ~]# puppet module list /etc/puppetlabs/code/environments/production/modules ├── bashtoni-timezone (v1.0.0) ├── fschaer-omd (v1.0.3) ├── puppetlabs-apache (v1.8.1) ├── puppetlabs-apt (v2.4.0) ├── puppetlabs-concat (v2.2.1) ├── puppetlabs-firewall (v1.9.0) ├── puppetlabs-inifile (v1.6.0) ├── puppetlabs-ntp (v6.2.0) ├── puppetlabs-postgresql (v4.9.0) ├── puppetlabs-puppetdb (v5.1.2) ├── puppetlabs-stdlib (v4.17.1) ├── puppetlabs-xinetd (v2.0.0) ├── saz-ssh (v3.0.1) ├── saz-sudo (v4.2.0) └── users (???) /etc/puppetlabs/code/modules (no modules installed) … Continue reading Environments usage in puppet

nagios plugins functionality

[root@localhost ~]# locate nagios/plugins |head -n1 /usr/lib64/nagios/plugins check_swap  [root@localhost ~]# /usr/lib64/nagios/plugins/check_swap --help check_swap v2.2.1 (nagios-plugins 2.2.1) Copyright (c) 2000-2014 Nagios Plugin Development Team <devel@nagios-plugins.org> Check swap space on local machine. Usage: check_swap [-av] -w % -c % -w -c Options: -h, --help Print detailed help screen -V, --version Print version information --extra-opts=[section][@file] Read options from … Continue reading nagios plugins functionality

How Containers Work’s

What is a Linux container? LXC (Linux Containers) is an operating-system-level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel. ... LXC combines the kernel's cgroups and support for isolated namespaces to provide an isolated environment for applications. What is a chroot? Chroot is an operation … Continue reading How Containers Work’s