Skip to content

Instantly share code, notes, and snippets.

View aakarshg's full-sized avatar
:atom:

Aakarsh Gopi aakarshg

:atom:
  • New York, NY
View GitHub Profile
---
- name: get the rpm package facts
package_facts:
manager: "auto"
when: "ansible_version.full.split('.')[0] >= '2' and ansible_version.full.split('.')[1] >= '5'"
register: packages_run
ignore_errors: True
name: Yum_repos configuration schema
type: map
mapping:
yum_repos:
required: True
type: map
mapping:
repo_id:
type: str
required: True
@aakarshg
aakarshg / gist:cdbd7f4cc625248f9ebd065b9bcbb4e7
Last active August 23, 2018 17:20
Sample elastic document indexed into browbeat-rally-* from a perfci run
{
"_index": "browbeat-rally-2018.08.16",
"_type": "result",
"_id": "AWVEH1MJJVJauqs3QShm",
"_score": 1,
"_source": {
"cloud_name": "microbrow-ha-2-compute-1",
"version": {
"osp_deployment_installer": "oooq",
"dlrn_hash": "Not a pipeline build",
import sqlite3
import pandas as pd
df = pd.read_csv('Plans_shortlisted.csv')
plans_list = []
for row in df.iterrows():
plans_list.append(row[1][1])
print plans_list
def check_hash(hash_value,puddle):
if 'trunk' or 'pipeline' in hash_value:
if 'pipeline' not in puddle:
return True
else:
return False
else:
return True
rerun: 1
times: 1
concurrency: 1
UUID: ff3803c1-bf6a-463e-8aea-7f82487511cf
http://norton.perf.lab.eng.rdu.redhat.com:3000/dashboard/db/openstack-general-system-performance?from=1499367399414&to=1499367427223&var-Cloud=agopi_opt&orgId=1
rerun: 1
times: 2
[DEFAULT]
local_ip = 192.168.24.1/24
network_gateway = 192.168.24.1
undercloud_public_host = 192.168.24.2
undercloud_admin_host = 192.168.24.3
local_interface = eno1
local_mtu = 1500
network_cidr = 192.168.24.0/24
masquerade_network = 192.168.24.0/24
{
"nodes": [
{
"pm_type":"ipmi",
"pm_user":"ADMIN",
"pm_password":"ADMIN",
"pm_addr":"10.12.9.31"
},
{
"pm_type":"ipmi",