Author: Surendra Anne

Opscode Chef terminology you should know

Opscode Chef is a bit complex when compared to other configuration management tools like Puppet and Ansible. With complexity, it is heard to remember what component do what. This post will help you learning different Chef terms as well as the basic architecture of Chef. In our next post we will show you what different terms we use in Puppet, Ansible, and Chef. We will approach this in a different fashion ie just not terms but where they fit in Chef setup. We will go with a top-down approach in describing each component related coding of cookbooks and related...

Read More

What is Opscode chef?

Before learning about “What is Chef”, we should know what is a configuration management tool. A configuration management tool is a software which configure systems programatically using some predefined set of configurations. Suppose if we want to update /etc/hosts file on all our machines. This can be done either login to all the machines through SSH and change the hosts file with your new hostname and IP address. The other way is to write some kind of script which updates your file with required data. When the tasks are simple and less number of hosts we can depend on...

Read More

Linux Shell scripting: Hide User input on terminal

This is a small tip when dealing with interactive shell scripting on how to hide sensitive information displaying on the terminal. Scenario: Suppose you want to connect some site using username and password in a shell script, you can use read command to take input from a user. By default whatever you type read command will print in plain text on the screen. This is a security issue, and we have to hide that sensitive information not to write on the screen. Example: My code in my script is read -p "Please provide bitbucket username(Ex. surendra.anne): " userName read -p "Please provide bitbucket password: " passWord Output when executing the entire script: [email protected]:~$ bash Please provide bitbucket username(Ex. surendra.anne): surendra.anne Please provide bitbucket password: XYZabc123 --2017-03-21 12:50:30-- Resolving (,,, ... Connecting to (||:443... connected. HTTP request sent, awaiting response... 401 Unauthorized Authentication selected: Basic realm=" HTTP" Reusing existing connection to HTTP request sent, awaiting response... 302 Found Location: [following] --2017-03-21 12:50:32-- Resolving ( Connecting to (||:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1494336 (1.4M) [application/x-tar] Saving to: '/tmp/mypackage.tar.gz’ mypackage.tar.gz 100%[=======================================================>] 1.42M 231KB/s in 7.3s 2017-03-21 12:50:41 (201 KB/s) - '/tmp/mypackage.tar.gz’ saved [1494336/1494336]   If you observe the password(XYZabc123) for my account is plain text. This can be avoided using the silent option with the...

Read More

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.


My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.

Pin It on Pinterest