Glen Knight

NYC Based IT Professional

Chef Recipe Overview

Recipes are a collection of resources, written in Ruby. Chef doesn’t have a custom DSL to learn(yay!). It doesn’t take a full fledged Ruby developer to write code for Chef, understanding the basics will be more than enough to functions productively while using Chef. Basic programming principles can also be applied to recipes. This means […]

0 Comments

Read More

Chef Resources Overview

A resource is a desire state of configuration for a given item, and the code block describes the desired state and steps for achieving the desired configuration. Resource are managed within “recipes” and are generally grouped together within cookbooks for specific software and tasks. A resource maps to a “provider”, which defines the steps to […]

0 Comments

Read More

Chef Convergence Overview

Whenever Chef runs on a node, a Convergence happens. There are 3 steps to a convergence. They can be a part of an automated workflow pipeline, or run manually. Pre-convergance Pre-convergance happens before Chef is run. It can be added using Chef Automate or Chef Workflow, it can be added manually, or using tools like […]

0 Comments

Read More

What is Chef?

Chef is a configuration management and deployment tool, designed for the management of nodes within an environment. Configuration management is the process of managing systems that ensures consistency of different settings, according to a known blueprint. It doesn’t rely on institutional or tribal knowledge gathered from multiple resources on the development or ops team, and […]

0 Comments

Read More

Python List Basics

Lists Lists are a data structure in Python that is mutable and each element of a list is referred to as an item, and are defined as comma delimited values between square brackets [ ]. Example: sea_creatures = [‘shark’, ‘cuttlefish’, ‘squid’, ‘mantis shrimp’, ‘anemone’] Lists can be compared to ArrayLists in other programming languages, and […]

0 Comments

Read More

AWS EC2 Overview

Amazon Elastic Compute Cloud(Amazon EC2) is a web service that provides resizable compute capacity int he cloud. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. EC2 Options On Demand – Allows you to […]

0 Comments

Read More

Links in the Linux File System

Hard Link vs Soft Link – a hard link is a file linked directly to an inode(a data structure on a file system that stores all the information about a file except its name and its actual data), while a soft/symbolic link is a link to another name in the file system. Deleting/renaming/moving the original […]

0 Comments

Read More

Reading From Files Using The Linux CLI

We can read from files using the cat command and the output is written to STDOUT. We can also use a pipe and redirect output elsewhere [glen.knight@expert-syn-srv-1 t1]$ cat f1 hello We can count the number of lines in a file using the command wc -l [glen.knight@expert-syn-srv-1 t1]$ wc -l /etc/services 11176 /etc/services We can […]

0 Comments

Read More

We are Live!

Welcome to KnightGlen.com! Here you will find some of my thoughts laid out regarding multiple topics. It will be primarily focused on Tech and the different projects I’ve worked on. Sit tight and enjoy the ride!

0 Comments

Read More