Giter Club home page Giter Club logo

chef_fundamentals's Introduction

CHEF Fundamentals

Stuff related to the CHEF Funadamentals Training Course.

This repository will help you play around with CHEF. You will be able to spin-up a bunch of VMs, using vagrant. All needed tools plus the example recipes will be available in the VMs.

Contents

  • notes_raw.txt: some raw notes from CHEF Funadamentals Training training.

  • chef/: CHEF recipies and examples. This directory will be mounted under /chef on all VMs.

  • vms/: a set of Vagrant VMs that can run the course. To spin-up any of these VMs, you can run vagrant up <vm_name> under this directory. Available VMs as per the list below:

    • devbox: workstation VM with ChefDK that manages the chef-code.
    • node1: VM with client tools installed (i.e. chef-apply)

Examples

Example #1 - Local Configuration Management

Objective: customise /etc/motd file on a linux node.

Prerequisites:

  • binary chef-apply needs to be installed on the node
  • sudo chef-apply should be privilege granted for the user
  • the actuall chef-recipe (source file) needs to be locally available

Tools: chef-apply

Try example #1 ...

References

TODOs

  1. Enable debug mode in vagrant up for VMs.

  2. Add more training examples.

  3. Import custom folder per VM (for own recipies/customization files, etc.).

  4. Avoid hard-coding Chef-Server rpm URL; use an equivalent of the following instead:

$ curl 'https://www.opscode.com/chef/metadata?v=12&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64'
url    https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.3.0-1.el6.x86_64.rpm
md5    c19fefcb3d033107e9fbdb3839312584
sha256 4b7c846a9ad93564cc203a5ac99890431f7d6ad159c424aa89827fd772c9881d
  1. Possibly use Ubuntu for the devbox/workstation VM.

chef_fundamentals's People

Contributors

idrositis avatar jdros avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.