This file contains hidden or 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 "@Development Tools" python-devel python-setuptools libffi-devel libxml2-devel libxslt-devel openssl-devel ruby-devel | |
easy_install pip | |
pip install setuptools --upgrade | |
pip install ansible | |
git clone https://github.com/centos-opstools/opstools-ansible | |
cd opstools-ansible | |
cat << EOF > hosts |
This file contains hidden or 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
- ara_record: | |
key: "something" | |
value: "nothing for now" | |
register: record | |
- debug: | |
var: record |
This file contains hidden or 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
#!/usr/bin/env python | |
# 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 |
This file contains hidden or 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 | |
# Iterate through failed tasks with ignore_errors False | |
IFS=$'\n' | |
for result in $(ara result list --all -f value -c ID -c Action -c Status -c "Ignore Errors" | grep "failed False") | |
do | |
id=$(echo $result | awk '{print $1}') | |
action=$(echo $result | awk '{print $2}') | |
echo "$action task failure: http://url/result/${id}/" | |
done |
This file contains hidden or 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: Reproducer | |
hosts: localhost | |
gather_facts: no | |
tasks: | |
- set_fact: | |
foo: bar | |
- debug: | |
msg: "{{ foo }}" |
This file contains hidden or 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
from __future__ import (absolute_import, division, print_function) | |
from ansible.plugins.callback import CallbackBase | |
class CallbackModule(CallbackBase): | |
CALLBACK_VERSION = 2.0 | |
CALLBACK_TYPE = 'notification' | |
CALLBACK_NAME = 'callback_race' |
This file contains hidden or 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 "@Development Tools" python-devel python-setuptools libffi-devel libxml2-devel libxslt-devel openssl-devel ruby-devel | |
easy_install pip | |
pip install setuptools --upgrade | |
pip install ansible | |
git clone https://github.com/centos-opstools/opstools-ansible | |
cd opstools-ansible | |
cat << EOF > hosts |
This file contains hidden or 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 "@Development Tools" python-devel python-setuptools libffi-devel libxml2-devel libxslt-devel openssl-devel ruby-devel | |
easy_install pip | |
pip install setuptools --ugprade | |
pip install ansible | |
mkdir roles | |
pushd roles | |
git clone https://github.com/rdo-infra/ansible-role-rdomonitoring monitoring | |
cd monitoring | |
git fetch https://review.rdoproject.org/r/rdo-infra/ansible-role-rdomonitoring refs/changes/06/6406/6 && git checkout FETCH_HEAD |
This file contains hidden or 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 "@Development Tools" python-devel python-setuptools libffi-devel libxml2-devel libxslt-devel openssl-devel ruby-devel | |
easy_install pip | |
pip install setuptools --upgrade | |
git clone https://github.com/openstack/puppet-openstack-integration | |
cd puppet-openstack-integration | |
git fetch https://git.openstack.org/openstack/puppet-openstack-integration refs/changes/71/404471/36 && git checkout FETCH_HEAD | |
./run_tests.sh |
This file contains hidden or 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
/home/dmsimard/dev/dlrn/venv/bin/python2.7 /home/dmsimard/dev/ara/treeview.py | |
{ | |
"home": { | |
"jenkins": { | |
"workspace": { | |
"gate-openstack-ansible-openstack-ansible-aio-ubuntu-xenial": { | |
"playbooks": [ | |
{ | |
"roles": { | |
"system_crontab_coordination": { |