Posts

Showing posts from May, 2022

DOCKER

Image
Docker : Virtualization splitting  one server into many logical servers with in the limit of server capacity.  Difference between Virtual Machines and Docker Containers (Source: Docker) This makes containers much smaller, faster, and more efficient. While a VM can take about a minute to spin up and can weigh several Gigabytes, a container weighs, on average, 400 to 600mb (the biggest ones). They also take only seconds to spin up. This is mostly because they don't have to spin a whole operating system before running the process. DOCKER  Installation Using username "root". Last login: Wed May 18 16:12:16 2022 from 192.168.2.1 [root@chef-workstation ~]# curl -fsSL https://get.docker.com -o get-docker.sh [root@chef-workstation ~]#  sh get-docker.sh # Executing docker install script, commit: 614d05e0e669a0577500d055677bb6f71e822356 + sh -c 'yum install -y -q yum-utils' Delta RPMs disabled because /usr/bin/applydeltarpm not installed. Warning: RPMDB altered outside of ...

Cookbook Recipe : 10

Image
  Creating users & group using databag , undefault recipe. [root@chef-workstation chef-repo]#  ls  -lrt total 4 -rw-r--r--.  1 root root 2284 May  5 20:30 README.md drwxr-xr-x.  2 root root   24 May  6 09:21 roles drwxr-xr-x. 10 root root  140 May  9 17:40 cookbooks [root@chef-workstation chef-repo]# [root@chef-workstation chef-repo]#  mkdir data_bags [root@chef-workstation chef-repo]#  cd data_bags/ [root@chef-workstation data_bags]#  mkdir users groups [root@chef-workstation chef-repo]#  cd ../.. [root@chef-workstation chef-repo]#  knife data bag create users Created data_bag[users] [root@chef-workstation chef-repo]# [root@chef-workstation chef-repo]#  knife data bag create groups Created data_bag[groups] [root@chef-workstation chef-repo]# [root@chef-workstation chef-repo]#  cat data_bags/users/sai.json { "id":"sai", "comment":"Test-user", "uid":2002, "gid":0, "home":"/home/sai", "shell":...