Archive for chef

[just.few.tuts] Testing Chaos with Automated Configuration Management solutions

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , , , , , , on June 23, 2013 by abhishekkr

justfewtuts.blogspot.in [31/May/2013]

http://justfewtuts.blogspot.in/2013/05/testing-chaos-with-automated.html

…..That’s the shift. The logic developed for Infrastructure acts as a glue to all other applications created in house and 3rd party. Here in Infrastructure feature development there is more to test for the effect it has on the it’s users (software/hardware) and less on internal changes (dependencies and dynamic content). Now the stuff in parentheses here means a lot more than seems… let’s get into detail of it.

Real usability of Testing is based on keeping sanctity of WHAT needs to be tested WHERE.

Software/Hardware services that collaborate with the help of Automated Infrastructure logic needs major focus of testing. These services can be varying from the
  • in-house ‘Product’, that is the central component you are developing
  • 3rd Party services it collaborates with,
  • external services it utilizes for what it doesn’t host,
  • operating system that it supports and Ops-knows what not.
Internal changes mainly revolve around
  • Resources/Dependencies getting called in right order and grouped for specific state.
  • It also relates to correct generation/purging of dynamic content, that content can itself range as
    • non-corrupt configuration files generated of a template
    • format of sent configuration data from one Infra-component to another for reflected changes
    • dynamically creating/destroying service instances in case of auto-scalable infrastructure

One can decide HOW, on ease and efficiency basis.

Unit Tests work for the major portion of ‘Internal Changes’ mentioned before usingchefspecrspec-chefrspec-puppet like libraries are good enough. They can very well test the dependency order and grouping management…..

…..click here for full blogpost

[tekwalk] foodcritic rake task ~ one that works for me

Posted in Blogroll, tutorial with tags , , , , , , on April 30, 2013 by abhishekkr

@ tekwalk.blogspot.com [3/Dec/2012]

http://tekwalk.blogspot.in/2012/12/foodcritic-rake-task-works-for-me.html

FoodCritic (a lint tool for your OpsCode Chef cookbooks)
$ gem install foodcritic –no-ri –no-rdoc

Rake Task to get the FoodCritic rolling at your cookbooks…
https://gist.github.com/abhishekkr/4078239/raw/5249d3e693330d7fc69fffb7e64d323a8e862493/gistfile1.rb

…click here to read full post

[just.few.tuts] DevOps AND 12FactorApp ~ some obsolete & much valid

Posted in Uncategorized with tags , , , , , , , , , , , , , , , , , on August 21, 2012 by abhishekkr

justfewtuts.blogspot.in [28/July/2012]

http://justfewtuts.blogspot.in/2012/07/devops-and-12factorapp-some-obsolete.html

What?

Actually what 12FactorApp is… it is a good set of ideas around basic set of concerns. The concerns are right, the solutions suggested are situational and the situation is the default/basic setup. With the teams following good DevOps-y practices, they don’t turn out to be exactly same.

…..

What @12FactorApp doesn’t suit at all for DevOps-y Solutions

  1. ~
  2. Dependencies
    [+] Obsolete: ‘If the app needs to shell out to a system tool, that tool should be vendored into the app.’
    Changed-to: Make your automation configuration management system handle it.

…..

Cumulative Correct Concerns 3C@12FactorApp and DevOps-y Solutions

Overall aiming to achieve a easy-to-setup, clean-to-configure, quick-to-scaleand smooth-to-update software development ambiance.
The 12 Concerns+Solutions:

  1. Problem: Maintaining Application Source Code
    Solution:
    a.
     Using Version Control Mechanism, if possible Distributed VCS like git. Private hosted (at least private account) code repository.
    b. Unique application

…..

…..click here to read full post

[tekwalk] when chef’s changes can be re-edited but un-available to Search

Posted in Blogroll, Uncategorized with tags , , , , , , , , , , , , , on December 28, 2011 by abhishekkr

tekwalk.blogspot.com [21-November-2011]

http://tekwalk.blogspot.com/2011/11/opscode-chef-why-chefs-changes-can-be.html

[DevOps:///OpsCode.Chef]

ate a weird meal last evening, chef was angry I think…..

When I created an AWS instance in same way (by swiss-‘knife ec2 server create…’toolset) using same old boot-up script to get that insance auto-configured as chef-client; instance got created and was visible in the instance list  but not available to my recipes trying to search for it using its applied role and other tags.

The same procedure has worked successfully for all previous time, and with no change it suddenly started failing.

logged-in to the freshly created instance and exec ‘chef-client –once‘ again, it had asuccessful run but still the…..

…..click here to read in detail