Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav J. Shah initcron

View GitHub Profile
@initcron
initcron / hiera.yaml
Last active August 29, 2015 14:02
hiera.yaml
---
:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hieradata
:hierarchy:
- "%{clientcert}"
- common
@initcron
initcron / agent.example.com.yaml
Last active August 29, 2015 14:02
agent.example.com.yaml
---
ntp::restrict:
-
ntp::autoupdate: false
ntp::enable: true
ntp::servers:
- 0.us.pool.ntp.org iburst
- 1.us.pool.ntp.org iburst
- 2.us.pool.ntp.org iburst
- 3.us.pool.ntp.org iburst
@initcron
initcron / common.yaml
Created June 5, 2014 11:07
common.yaml
---
ntp::restrict:
- -6 ::1
ntp::autoupdate: true
ntp::enable: true
ntp::servers:
- agent.example.com iburst
- agent1.example.com iburst
- agent2.example.com iburst
@initcron
initcron / mcollective-howto.bash
Last active August 29, 2015 14:02
mcollective tutorial
# Open Git Bash
cd ~/learn
mkdir mcollective
wget -c https://github.com/ripienaar/mcollective-vagrant/archive/master.zip
#Alternately download the above repo as a zip file directly from https://github.com/ripienaar/mcollective-vagrant and unzip inside mcollective dir.
cd mcollective-vagrant-master
#Edit Vagrantfile, set instances to 2
@initcron
initcron / default.vcl
Last active August 29, 2015 14:02
varnish configurations
include "director.vcl";
include "devicedetect.vcl";
sub vcl_recv {
set req.backend = ikuna_director;
if (! req.backend.healthy) {
set req.grace = 5m;
} else {
@initcron
initcron / cloudformation.template
Last active August 29, 2015 14:04
Cloudformation Tempaltes
# Cloudformation Template URI for Puppet Master
http://initcron-training.s3.amazonaws.com/puppet/cfn-puppet-master.template
# Cloudformation Template URI for Puppet Agent
http://initcron-training.s3.amazonaws.com/puppet/cfn-puppet-agent.template
# vagrant config for aws
config.vm.provider :aws do |aws, override|
@initcron
initcron / site.pp
Created July 18, 2014 05:52
puppet manifest for vagrant-aws exercise
file { '/etc/motd':
content => "Welcome to Training virtual machine!
Managed by Puppet.\n"
}
package{'emacs23-nox':}
package{'ntp':}
@initcron
initcron / gist:af46b2495e1b4b89f417
Last active August 29, 2015 14:06
Git Workflow
1. Clone Repository
$ git clone https://[email protected]/SST-Cengage/hackathon.git
(replace USERNAME with your github id)
2. Change into the directory created
$ cd hackathon/
3. Check the current branch
$ git branch
@initcron
initcron / chef-server-install
Last active May 13, 2019 06:40
Installing and configuring Open Source Chef Server 11.x on Ubuntu
Installing Chef Server
1. Download chef server installer
https://www.getchef.com/download-open-source-chef-server-11/
2. Install Chef Server using dpkg on ubuntu
$ dpkg -i chef-server_11.1.3-1_amd64.deb
3. Configure Chef Server
$ sudo chef-server-ctl reconfigure
@initcron
initcron / Vagrantfile
Created November 16, 2014 09:55
Vagrantfile for Puppet Enterprise Master Agent Setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# change the box name with your own box
# to find out the box name, use following command,
# $vagrant box list
config.vm.box = "puppet-razor-centos-6.6-x86_64-v2"