Skip to content

Instantly share code, notes, and snippets.

David Moreau Simard dmsimard

Block or report user

Report or block dmsimard

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
View play
- { role: 'role', foo: 'bar' }
View test-puppet-with-delorean
yum -y install python-setuptools redhat-lsb-core wget "@Development Tools" git yum-plugin-priorities libxml2-devel libxslt-devel ruby-devel rubygems
gem install bundler
export SCENARIO="scenario002"
export MANAGE_REPOS="false"
curl -o /etc/yum.repos.d/delorean.repo
curl -o /etc/yum.repos.d/delorean-deps.repo
git clone
cd puppet-openstack-integration
View test packstack
yum -y install git
git clone
cd packstack/
git fetch refs/changes/70/269870/5 && git checkout FETCH_HEAD
export SCENARIO=$1
View ceph.pp
# Call class { 'ceph::profile::params': } with vars that look like what is
# in
include ceph::profile::base
include ceph::profile::mon
include ceph::profile::osd
View bot.json
"handlers": {
"bot": {
"command": "/etc/sensu/handlers/ --endpoint http://bot",
"type": "pipe",
"filters": [
"severities": [
View functions
# -*-Shell-script-*-
# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
# Make sure umask is sane
umask 022
dmsimard /
Last active Mar 21, 2016
Packstack from Trunk repositories
yum -y install yum-plugin-priorities
# Add Mitaka repositories
curl |tee /etc/yum.repos.d/delorean-deps.repo
curl |tee /etc/yum.repos.d/delorean.repo
# Install packstack and dependencies
yum -y install openstack-packstack
View gist:bd49f7ec459e66ec7b94
#!/usr/bin/env python
# This script is a Sensu mutator meant to accept data from Sensu as stdin in
# order to merge data from the event and check 'occurrences' fields in order
# to make them usable together in a filter.
import sys
import simplejson as json
except ImportError:
View filter.rb
# /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-0.22.0/lib/sensu/server/filter.rb
require "sensu/server/sandbox"
module Sensu
module Server
module Filter
# Determine if a period of time (window) is subdued. The
# provided condition must have a `:begin` and `:end` time, eg.
# "11:30:00 PM", or `false` will be returned.
View check_retry_occurrences.rb
# Copyright Red Hat, Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
You can’t perform that action at this time.