Skip to content

Instantly share code, notes, and snippets.

View jamesdmorgan's full-sized avatar

James Morgan jamesdmorgan

  • London
View GitHub Profile
@jamesdmorgan
jamesdmorgan / keybase.md
Created January 20, 2017 13:30
Keybase

Keybase proof

I hereby claim:

  • I am jamesdmorgan on github.
  • I am jamesdmorgan (https://keybase.io/jamesdmorgan) on keybase.
  • I have a public key whose fingerprint is 33A4 6070 C5A6 1ADD 363A 5E1F 821E 7E84 88BB EF6F

To claim this, I am signing this object:

import jenkins.model.*
import java.util.regex.Pattern
import java.util.Date
jenkins = Jenkins.instance
dryRun = true
numberOfDays= 60
excludeRegexp = ".*(yum|master|release|template|trunk|vm-ansible).*"
# Filters for retrieving jdbc information
#
# https://www.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.jdbc_pg.doc/ids_jdbc_036.htm?lang=en
#
# >>-jdbc:informix-sqli://-hostname:portnum--/database_name:------>
# >--+--------------------------------+--------------------------->
# '-USER=userid;-PASSWORD=password-'
# >--+----------------------------+------------------------------->
# '-INFORMIXSERVER=servername;-'
# >--+-----------------------------------------------------------+-><
@jamesdmorgan
jamesdmorgan / ansible-filesystem.yml
Created June 24, 2015 12:06
Anisble detect, format and mount filesystem
- hosts: all
vars:
mount_point:
fstype: ext4
dev: /dev/xvdf
mount: /opt
opts: "rw"
state: mounted
tasks:
@jamesdmorgan
jamesdmorgan / ansible-packer.yml
Last active August 29, 2015 14:13
Ansible Packer.io local playbook
- hosts: local
connection: local
vars:
packer_file: packer_0.7.5_linux_amd64.zip
packer_url: "https://dl.bintray.com/mitchellh/packer/{{ packer_file }}"
packer_install_dir: /usr/local/packer
tasks:
- name: Install common tools
yum: name={{ item }} state=present
with_items: