Archive for Automation

[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

[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] A Beginner’s Concept Guide for Puppet [part#1]

Posted in AbhishekKr, Blogroll, tutorial with tags , , , , , , , , , on July 10, 2012 by abhishekkr

justfewtuts.blogspot.in [29/May/2012]

http://justfewtuts.blogspot.in/2012/05/puppet-beginners-concept-guide-part-1.html

Puppet beginners concept guide (Part 1)
[] What  it  is?  When  is  it  required?  (for all new guys, who came here while just browsing internet)
Puppet is an…..

[] Quickie.
Install …..

[] Dumb  usage  structure.
Create…..

[] How  it  evolves?
Now, as any …..

…..click here to read full post

[justfewtuts] Basics of Powershell ~ empowering Windows Config/Admin Automation

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

justfewtuts.blogspot.com [24-December-2011]

http://justfewtuts.blogspot.com/2011/12/basics-of-powershell-empowering-windows.html

Basics  of  MS Windows Powershell

Introduction
A dotNet framework based scripting language to automate the configuration/administration of Microsoft Windows machine.
Powershell is loaded with several cmdlets (special command-lets) acting as a built-in shell utilities to perform different tasks on Windows machine for performing administrative tasks.

Getting Started
Powershell’s cmdlets act upon and return objects as a result of any action taken.
These can be used in combination with traditional Windows services like Registry, Net and more.

To try your hands over powershell, access it at ‘Start Menu’ > ‘Accessories’ > ‘Windows Powershell’;
there you’ll get mainly a shell from ‘Powershell’, and an interactive IDE-like shell‘Powershell ISE’.

Using powershell, cmdlets are the main power-source of this Powershell which are discussed briefly below…..

to get a quick /Hello World/ feel of Powershell, you could try on few next steps
* emulating a …..

 [+] to have a Powershell script, check for a system service….. start it if stopped

  $svc_name = “aspnet_state
  $svc_status = Get-Service | Where {$_.name -eq $svc_name} | %{ $_.status }
if (-not $svc_status) {
     Write-Host “Error: $svc_name not found”
}
  elseif ($svc_status -eq “running”){
     Write-Host “status ok $svc_name”
  } else {
     Start-Service $svc_name
}

  [+] Now …..

…..click here to read in detail

[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

[hackersmag] DevOps & SecureOps

Posted in AbhishekKr, security with tags , , , , , , , , on November 14, 2011 by abhishekkr

@ hackersmag.blogspot.com [29-August-2011]

http://hackersmag.blogspot.com/2011/08/devops-with-secops-short-intro-to.html

http://www.slideshare.net/AbhishekKr/devops-with-secops

This presentation just mentions the security considerations related to all these 3 DevOps processes

…..click here to read in detail