Archive for devops

[just.few.tuts] Puppet ~ Beginner’s Concept Guide (Part 4) Where Is My Data?

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , , , , on August 2, 2013 by abhishekkr

justfewtuts.blogspot.in [26/July/2013]

http://justfewtuts.blogspot.com/2013/07/wip-puppet-beginners-concept-guide-part.html

Puppet
beginners concept guide (Part 4)

Where is my Data?

When I started my Puppet-ry, the examples I used to see had all configuration data buried inside the DSL code of manifests, people were trying to use inheritance to push down data. Then got to see a design pattern in puppet manifests keeping out separate parameters manifest for configuration variables. Then came along the External Data lookup via CSV files as a Puppet function. Then with enhancements in puppet and other modules came along more.

Below are few usable to fine ways utilizing separate data sources within your manifests,

Here, we will see usage styles of data for Puppet Manifests, Extlookup CSV, Hiera, Plug-in Facts and PuppetDB.

params-manifest:

It is the very basic way of separating out data from your functionality code, and the preferred way for in-future growing value-set type of data. It will keep it separate from the code since start.

…..

…..click here to read full post

Advertisements

[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] ci-go-nfo v0.0.1 : console util for ThoughtWorks’ Go CI Server

Posted in AbhishekKr, tutorial with tags , , , , , , , , , , , on October 5, 2012 by abhishekkr

justfewtuts.blogspot.in [19/Sep/2012]

http://justfewtuts.blogspot.in/2012/09/ci-go-nfo-v001-console-util-for.html

Just a rubygem console utility to get focussed INFO about your Go Continuous Integration pipeline easily, no more switching again to browsers.

@RubyGemshttps://rubygems.org/gems/ci-go-nfo

@GitHub:  https://github.com/abhishekkr/ci-go-nfo

Installation 
$ gem install ci-go-nfo

Usage Ci-Go-Nfo ver.0.0.1
to set-up credential config for your go-ci
ci-go-nfo setup
it asks for
(a.) the location where you want to store your configuration file
(b.) the URL for your Go Server like http://my.go.server:8153
(c.) then username and password (create a read-only a/c for it)

to show go-ci info of all runs
ci-go-nfo

to show go-ci info of failed runs
ci-go-nfo fail

to show go-ci info of passed runs
ci-go-nfo pass

…..click here for full post

[just.few.tuts] Puppet ~ Beginners Concept Guide [Part#3] :: Modules much more

Posted in AbhishekKr, Blogroll, tutorial with tags , , , , , , , , , on September 1, 2012 by abhishekkr

justfewtuts.blogspot.in [5/August/2012]

http://justfewtuts.blogspot.in/2012/08/puppet-beginners-concept-guide-part-3.html

MODULES WITH MORE

here some time on the practices to prefer while writing most of your modules

[] HowTo Write Good Puppet Modules  
(so everyone could use it and you could use it everywhere)

  • platform-agnostic
    With change in Operating System …..
  • untangled puppet strings
    You are…..
  • no data in c~o~d~e
    Now when you are…..
  • puppet-lint
    To keep the …..
  • do-undo-redo
    It’s suggested to …..

[] More about Modules  (moreover…..)
Where to get…..

…..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

[just.few.tuts] Puppet ~ Beginner’s Concept Guide [Part#2] :: The Road To Modules

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

justfewtuts.blogspot.com [8/July/2012]

http://justfewtuts.blogspot.com/2012/07/puppet-beginners-concept-guide-part-2.html

[] Puppet Modules?  (no, no….. nothing different conceptually)
Puppet Modules (like in most other technological references,…..

[] Logic of Structure Logic  (just how is your module structured and )
The different components of …..

[] Modules Fundamental Live  (mean the actual code sample…..)
…..https://gist.github.com/3070758…..

…..click here to read full post