Make sure you have already installed vagrant and virtual-box https://shaikmdrafi.wordpress.com/2017/01/13/vagrant/ mohammedrafi@NOC-RAFI:~$ mkdir practise && cd practise mohammedrafi@NOC-RAFI:~/practise$ mohammedrafi@NOC-RAFI:~/practise$ vim Vagrantfile VAGRANTFILE_API_VERSION = "2" $bootstrap=<<SCRIPT apt-get update apt-get -y install wget wget -qO- https://get.docker.com/ | sh gpasswd -a vagrant docker service docker restart SCRIPT Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" config.vm.network "private_network", ip: "192.168.33.10" config.vm.provider "virtualbox" … Continue reading Managing Container in docker
Month: August 2017
Types of Modules (roles & profiles) file structure in puppet
Types of Modules Component Modules: Modules managing specific technologies. Profile Modules: Wrapper modules which used multiple component modules to create a technology stack. ex: creating app server module by using webserver and tomcat Role Module: Wrapper modules which uses multiple profiles to create complete system configuration. ex: create web-serve role with by using web-server host … Continue reading Types of Modules (roles & profiles) file structure in puppet
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
