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
roles:
- { role: 'role', foo: 'bar' }
View test-puppet-with-delorean
#!/bin/bash
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 http://trunk.rdoproject.org/centos7/current/delorean.repo -o /etc/yum.repos.d/delorean.repo
curl http://trunk.rdoproject.org/centos7/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
git clone https://github.com/openstack/puppet-openstack-integration.git
cd puppet-openstack-integration
./run_tests.sh
View test packstack
yum -y install git
git clone https://github.com/openstack/packstack.git
cd packstack/
git fetch https://review.openstack.org/openstack/packstack refs/changes/70/269870/5 && git checkout FETCH_HEAD
export SCENARIO=$1
./run_tests.sh
View ceph.pp
# Call class { 'ceph::profile::params': } with vars that look like what is
# in https://github.com/openstack/puppet-ceph/blob/master/examples/common.yaml
include ceph::profile::base
include ceph::profile::mon
include ceph::profile::osd
View bot.json
{
"handlers": {
"bot": {
"command": "/etc/sensu/handlers/bot.py --endpoint http://bot",
"type": "pipe",
"filters": [
"recurrences-60"
],
"severities": [
"ok",
View functions
# -*-Shell-script-*-
#
# functions This file contains functions to be used by most or all
# shell scripts in the /etc/init.d directory.
#
TEXTDOMAIN=initscripts
# Make sure umask is sane
umask 022
@dmsimard
dmsimard / install-packstack.sh
Last active Mar 21, 2016
Packstack from Trunk repositories
View install-packstack.sh
#!/bin/bash
yum -y install yum-plugin-priorities
# Add Mitaka repositories
curl http://trunk.rdoproject.org/centos7-mitaka/delorean-deps.repo |tee /etc/yum.repos.d/delorean-deps.repo
curl http://trunk.rdoproject.org/centos7-mitaka/current-passed-ci/delorean.repo |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
try:
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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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.