Skip to content

Instantly share code, notes, and snippets.

View dmsimard's full-sized avatar

David Moreau Simard dmsimard

View GitHub Profile
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
@dmsimard
dmsimard / ceph.pp
Created January 25, 2016 22:57
ceph
# 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
{
"handlers": {
"bot": {
"command": "/etc/sensu/handlers/bot.py --endpoint http://bot",
"type": "pipe",
"filters": [
"recurrences-60"
],
"severities": [
"ok",
# -*-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
#!/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:
# /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.
#
# 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
@dmsimard
dmsimard / .gitignore
Created March 21, 2016 20:40
Prepare Puppet modules before upload to Puppetlabs forge
puppet-*
puppetforge
git clone https://github.com/openstack/packstack
cd packstack
git checkout stable/mitaka
git tag -s 8.0.0.0rc1 -m 8.0.0.0rc1
git review -s
git push gerrit 8.0.0.0rc1
@dmsimard
dmsimard / install-packstack.sh
Last active March 21, 2016 22:12
Packstack from Trunk repositories
#!/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