Skip to content

Instantly share code, notes, and snippets.

$pe_username = 'admin@puppetlabs.com'
$pe_password = 'puppetlabs'
$pe_version_string = '3.7.0'
$seteam_env_build = '2.0.5'
$aws_public_key = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxo0CLz8UIFMfhBGunu25HLwHSfkWzUpYUATOMHZOxV053YT6pRS+OLB5wc7M826JzriGQ8S5pweUPEbksN1OdzSfT/YDiw39uGep8Eoj5FoRwGAWv8Maoeif/t24KNHnW+IiI4hTnzPJXAmwoJXIXa2O6ZK323rYYBF/QmfPLcKXPWKKMSjfkskYPFcNIDyZ7Gfzou9UStZ85fTAhQa4KyKJ3v7UPvLVZChXbIoiC2xo0jW5ocKFfRUkktNfU2YvQZFT1/0wMnh2man7LbTlK9Wmh/BVnPO36iQ86PST7tw0ITf2ebHU1g4RTcruTwioyxwiF9Nxfi8LqQbccvHPJ'
$aws_region = 'us-west-1'
$aws_ami = 'ami-c154b385'
$demo = {
'department' => 'TSE',
'created_by' => "${::id}",
@nvalentine-puppetlabs
nvalentine-puppetlabs / jenkins.yaml
Last active August 29, 2015 14:11
Jenkins Job Builder YAML for testing Puppet modules
site::profile::jenkins::master::plugins:
buildresult-trigger:
version: 0.17
copyartifact:
version: 1.32.1
matrix-project:
version: 1.4
scm-api:
version: 0.2
credentials:
vagrant-pinterest-puppet-devtest
--------------------------------
# Summary
This is a self-contained VM-based environment for developing Puppet code at Pinterest.
# Requirements
You'll need to have downloaded and installed the following:
@nvalentine-puppetlabs
nvalentine-puppetlabs / jenkins.vagrant.vm.yaml
Last active August 29, 2015 14:11
Example of passing hash from Hiera to a profile and then to create_resources
---
classes:
- site::profile::jenkins::master
site::profile::jenkins::master::plugins:
git:
version: 2.2.7
ansicolor:
version: 0.4.0
build-failure-analyzer:
@nvalentine-puppetlabs
nvalentine-puppetlabs / Puppet_Code_Deployment_Workflow_technical_details.md
Last active August 29, 2015 14:03
Puppet Code Deployment Workflow technical details

Note: 's/myorg//g' in text below.

Create a feature branch in control repo for devtesting redis code.

$ mkdir ~/workspace && cd workspace 
$ git pull git@git.myorg.com:myorg/puppet-control.git
$ cd puppet-control
$ git fetch --all && git checkout staging && git pull origin staging
$ git checkout -b redis_modules
@nvalentine-puppetlabs
nvalentine-puppetlabs / common.yaml
Last active August 29, 2015 14:03
deploy to noop example
---
force_noop: true
classes:
- myorg::profile::puppet::agent
@nvalentine-puppetlabs
nvalentine-puppetlabs / gist:9a4901e89d18129bfa08
Created June 26, 2014 21:07
git diff of staging and cache
$ git diff --staging #(added but not committed)
$ git diff --cache #(committed but not pushed)
@nvalentine-puppetlabs
nvalentine-puppetlabs / ENC output for node foo
Last active August 29, 2015 14:00
Example of ENC output and RnP Puppet code
---
classes:
- myorg::profile::haproxy_lb
parameters:
- myorig::profile::haproxy_lb::listen_ports
- 80
- 8081
- 443
@nvalentine-puppetlabs
nvalentine-puppetlabs / gist:9485977
Created March 11, 2014 13:48
rename master branch to production *before* any pushes
mkdir foo
git init
git checkout -b production
touch README
git add -A
git commit -m 'initial commit'
git branch --delete master
git push --all