Skip to content

Instantly share code, notes, and snippets.

View snandam's full-sized avatar

Sanjeev Nithyanandam snandam

View GitHub Profile
@snandam
snandam / check_for_directory.yml
Created November 4, 2014 16:28
Ansible playbook to check for a directory/file in ansible
---
-
hosts: dev
gather_facts: yes
vars:
app_name: creditcompliance
path_to_verify: /var/www/edge-app/{{app_name}}/web/config/app.conf.json
tasks:
-
name: "Check if path exists for {{ path_to_verify }}"
@snandam
snandam / gist:8a124b2ed9002d3097d5
Created October 30, 2014 19:41
exml error centos 6.1
==> exml (compile)
Compiled src/exml.erl
Compiled src/exml_query.erl
Compiled src/exml_event.erl
Compiled src/exml_stream.erl
Compiling /root/sources/mongooseim/deps/exml/c_src/exml_event.c
In file included from /root/sources/mongooseim/deps/exml/c_src/exml_event.c:1:
c_src/exml_event.h:5:19: error: expat.h: No such file or directory
In file included from /root/sources/mongooseim/deps/exml/c_src/exml_event.c:1:
c_src/exml_event.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ms’
@snandam
snandam / gist:c113a0b882e7fdb5b9f3
Created October 23, 2014 15:12
node and npm upgraded on centos
[] ~ () $ npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb config Skipping project config: /home/nithyans/.npmrc. (matches userconfig)
@snandam
snandam / gist:b22b86880eaee3a8aa39
Created October 23, 2014 14:59
Error stack plus npm debug log for centOS box
[] ~ () $ npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb node symlink /usr/bin/node
@snandam
snandam / gist:7de8d471ab375a3ea932
Created October 22, 2014 21:32
npm install error
sudo npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb readDependencies using package.json deps
sudo npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]

Chef Fundamentals Labs

Exercise 1 - Download and Modify Haproxy Cookbook

a. Search for a copy of the haproxy cookbook by issuing the following commands.

 knife cookbook site search haproxy

 knife cookbook site show haproxy