Skip to content

Instantly share code, notes, and snippets.

David Moreau Simard dmsimard

View GitHub Profile
# Workaround for known issues installing Packstack for OpenStack Mitaka RDO Test days
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
View role_tasks_main.yml
- block:
- debug: msg='I execute normally'
- command: /bin/false
- include: rescue.yml
dmsimard / gist:7304179
Created Nov 4, 2013
Example init.pp puppet-ceph (stackforge)
View gist:7304179
class { 'ceph::repo':
release => "dumpling"
class { 'ceph::init': }
Class['ceph::repo'] -> Class['ceph::init']
dmsimard / gist:7305126
Created Nov 4, 2013
View gist:7305126
# Copyright (C) iWeb Technologies Inc.
# 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,
View role_defaults_main
key: 6bf597e0-8a98-478b-9a88-e9e389fdfd38
View main
- name: Capture facts for output to file
register: ansible_facts
- name: Output facts to file
content: "{{ ansible_facts | to_nice_json }}"
dest: "./before.txt"
- set_fact:
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
#!/bin/bash -ex
# Exit if we're not running on rhel-like
if [ -f /etc/os-release ]; then
source /etc/os-release
test "$ID" = "fedora" -o "$ID" = "centos"
exit 1
if [ $(id -u) != 0 ]; then
You can’t perform that action at this time.