Skip to content

Instantly share code, notes, and snippets.

:octocat:
Being Awesome

Tim Hartmann tfhartmann

:octocat:
Being Awesome
Block or report user

Report or block tfhartmann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tfhartmann
tfhartmann / package_define.pp
Created Feb 12, 2014
Puppet Definition for perl module packages
View package_define.pp
So first I create a definition in a manifest called perl_modules.pp in the root of my module like this:
define radiator::perl_modules() {
package { "perl-$name": ensure => 'installed', before => Package['Radiator'] }
}
Then call the definition in packages.pp
View nagios_stub.pp
resources { 'nagios_service': purge => true }
file {
'/etc/nagios/nagios_command.cfg' : ensure => present;
'/etc/nagios/nagios_contact.cfg' : ensure => present;
'/etc/nagios/nagios_contactgroup.cfg' : ensure => present;
'/etc/nagios/nagios_host.cfg' : ensure => present;
'/etc/nagios/nagios_hostgroup.cfg' : ensure => present;
'/etc/nagios/nagios_servicegroup.cfg' : ensure => present;
'/etc/nagios/nagios_service.cfg' : ensure => present;
@tfhartmann
tfhartmann / cocoa_keypress_monitor.py
Created Dec 1, 2014
cocoa_keypress_monitor.py with logging to local example.log file
View cocoa_keypress_monitor.py
#!/usr/bin/env python
# cocoa_keypress_monitor.py by Bjarte Johansen is licensed under a
# License: http://ljos.mit-license.org/
from AppKit import NSApplication, NSApp
from Foundation import NSObject, NSLog
from Cocoa import NSEvent, NSKeyDownMask
from PyObjCTools import AppHelper
import logging
View beaker_error.md
Hypervisor for centos6 is docker
Beaker::Hypervisor, found some docker boxes to create
Provisioning docker
provisioning centos6
Creating image
Dockerfile is         FROM centos:centos6
          RUN yum clean all
          RUN yum install -y sudo openssh-server openssh-clients curl ntpdate
          RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
@tfhartmann
tfhartmann / hosts.yaml
Last active Aug 29, 2015
Beakers hosts.yml files
View hosts.yaml
HOSTS:
ubuntu-12-04:
platform: ubuntu-12.04-x64
image: ubuntu:12.04
hypervisor: docker
docker_preserve_image: true
#docker_image_commands:
# - 'apt-get install -y puppet'
centos6:
platform: centos-6-x64
@tfhartmann
tfhartmann / single-node-hdfs-yarn-thtest.json
Created Jan 6, 2015
Ambari Blueprint Tests based on single-node-hdfs-yarn
View single-node-hdfs-yarn-thtest.json
{
"host_groups" : [
{
"name" : "master",
"components" : [
{
"name" : "NAMENODE"
},
{
"name" : "SECONDARY_NAMENODE"
View keybase.md

Keybase proof

I hereby claim:

  • I am tfhartmann on github.
  • I am tfhartmann (https://keybase.io/tfhartmann) on keybase.
  • I have a public key whose fingerprint is 0089 15AD CFDE CCEB 5AC0 6316 03D4 E465 5325 524A

To claim this, I am signing this object:

@tfhartmann
tfhartmann / single-node-hdfs-yarn-demo.json
Created Feb 26, 2015
single-node-hdfs-yarn-demo.json
View single-node-hdfs-yarn-demo.json
{
"host_groups" : [
{
"name" : "master",
"components" : [
{
"name" : "NAMENODE"
},
{
"name" : "SECONDARY_NAMENODE"
View id_rsa.packer.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCvFrMhn7amgq3w91T+oyfzJKy6q/mN4WC+6KM8sK+j1204xGyz1/6jtEcktJSl21I4b/R5KcKBmD78WkHUcDt2h2njhICqX3/5sFwujrYb2/5DHnSo8T4o6B5PdQlu7+m4HR5B8xhJxdZjhULEJzHckiMyIh0HCYOf/RwQ1rtmZwu7j6aLdSgvICDWnPJGlwH3j2nd75ur1mhTKPtgBER44d8qQLHMA5q+CfXjGLa8/PDYczbqGwnMSMVfBk4O47Ff4vf9pd9c9SWg1zAlUwg1ZTrWpHa2mOMVv7smY/+9hZjc3jGfT/a0GPIKzo/5RIIWtc5hVyawsGS26GtcbCIaWEasCm9+azq3lJt1F+Nt8jhlJ3t6yMMq0qq/IWNrvjAGaQTrk8411pxC48vXSX9gAJJDzIkDRuMFBLn0Yf8soeMg6s9GK7HlQxK+YCy3MO9RKbpqcjMu6L182CQJo0lL0WJGPgwfhjmkWXBwjVzzUVuL6LxE9zTw7iNu4sGiIuXus3F4E5inV80zEuOfUMCXoL96uNogn3p503of+pT0QM2hMu1s/nqR5SLp/hfQc9qbGdlkNo559QWGCXobROo2Bkum9mwfcakE0bDsyFvaLqoeT+LyJOHtV/3/yPlpBs3o1JHoMhKfSJa30+QuI6R/lMmUJiXJ5BdWouSTyU/STw==
@tfhartmann
tfhartmann / lsf-commands.md
Last active Aug 29, 2015
Cheat Sheet for LSF
View lsf-commands.md

bstop Stops jobs

bstop -u <username - can be a group or all>

Drain / close Host

badmin hclose -C "explanation here" <hostname>

Open Host

badmin hopen <hostname>

You can’t perform that action at this time.