Skip to content

Instantly share code, notes, and snippets.

@gsmurali
gsmurali / gist:c45fa1913ef9ef5b79ba78df057e0272
Last active January 8, 2017 01:51
06 Linux Academy - Certified Chef Developer Basic Chef Fluency Badge- Lecture: Working with not_if and only_if Guards
+Terminal log:
C:\Users\shinidharan\Documents\GitHub> ssh [email protected]
Warning: Permanently added '54.86.131.236' (ECDSA) to the list of known hosts
[email protected]'s password:
Last login: Wed Jan 4 05:06:13 2017 from c-76-104-43-10.hsd1.va.comcast.net
[user@gsmurali1 ~]$ vim learn.rb
[user@gsmurali1 ~]$ cat learn.rb
package 'apache' do
package_name 'httpd'
end
@gsmurali
gsmurali / gist:d7159fabbcc3e0535fa09d50472445f8
Last active January 7, 2017 18:09
08 Linux Academy - Certified Chef Developer Basic Chef Fluency Badge- Lecture: Understanding Chef Recipes and Run Lists
#Understanding Chef Recipes and Run Lists
+ Recipes are a collection of resources, defined and written using patterns.
+ Helper code, such as loops and if statements, can be written around those resources to help customize the configurations of specific nodes. For example, if or case statements around package names.
+ Recipe is the most fundamental configuration element within the organization
+ A recipe is created using Ruby
+ must define everything that is required to configure part of a system
+ Recipe stored in a cookbook
+ May be included in a recipe(include_recipe)
+ May use the results of a search query and read the contents of a data bag
+ May have a dependency on one (or more) recipes
@gsmurali
gsmurali / gist:1116363c1cae293bccc818d15f857df2
Last active January 8, 2017 01:47
09 Linux Academy - Certified Chef Developer Basic Chef Fluency Badge- Lecture: Understanding Chef Cookbooks & Generating a Cookbook
#Cookbooks
+ A cookbook is the fundamental unit of configuration and policy distribution when using Chef
+ Cookbook contains
1. Recipes
1. Attribute Files
1. File distributions
1. Templates
1. Any extensions to Chef such as libraries and custom resources
+ Chef cookbook defines a scenario. For example, in case of an Apache cookbook
@gsmurali
gsmurali / README.md
Created January 18, 2017 21:13 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index: