This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Workaround for known issues installing Packstack for OpenStack Mitaka RDO Test days | |
# https://etherpad.openstack.org/p/rdo-test-days-mitaka-m1 | |
yum -y install yum-plugin-priorities | |
# Add Mitaka repositories | |
curl http://trunk.rdoproject.org/centos7/delorean-deps.repo |tee /etc/yum.repos.d/delorean-deps.repo | |
curl http://trunk.rdoproject.org/centos7/current/delorean.repo |tee /etc/yum.repos.d/delorean.repo | |
# Install packstack and dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Did you really run this ?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
tasks: | |
- block: | |
- debug: msg='I execute normally' | |
- command: /bin/false | |
rescue: | |
- include: rescue.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class { 'ceph::repo': | |
release => "dumpling" | |
} | |
class { 'ceph::init': } | |
Class['ceph::repo'] -> Class['ceph::init'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# | |
# 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key: 6bf597e0-8a98-478b-9a88-e9e389fdfd38 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Capture facts for output to file | |
setup: | |
register: ansible_facts | |
- name: Output facts to file | |
copy: | |
content: "{{ ansible_facts | to_nice_json }}" | |
dest: "./before.txt" | |
- set_fact: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roles: | |
- { role: 'role', foo: 'bar' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
else | |
exit 1 | |
fi | |
if [ $(id -u) != 0 ]; then |
OlderNewer