Skip to content

Instantly share code, notes, and snippets.

View moolitayer's full-sized avatar

Mooli Tayer moolitayer

View GitHub Profile
Adding a datawarehouse manager:
prov = ManageIQ::Providers::Hawkular::DatawarehouseManager.new(
:name => 'centos7-6',
:zone => Zone.first,
:connection_configurations => [{:endpoint => {:role => :default,
:hostname => 'mtayer-centos7-6.eng.lab.tlv.redhat.com',
:port => "8080"},
:authentication => {:authtype => :default,
:password => "password",
:userid => "jdoe"}}])
#########################################
/api/v1/
#########################################
{
"kind": "APIResourceList",
"groupVersion": "v1",
"resources": [
{
"name": "bindings",
"namespaced": true,
require 'kubeclient'
def toggle_pod(client)
hash = {
:kind => "Pod",
:metadata => {
:name => "nginx",
:namespace => "default",
:labels => "nginx",
:app => "nginx"
---
- MiqPolicySet:
name: 0bf2e43a-1211-11e6-aa9c-02424d459b45
description: OpenSCAP profile
set_type: MiqPolicySet
guid: 0bf2e43a-1211-11e6-aa9c-02424d459b45
read_only:
set_data:
mode: control
owner_type:
***********
* content *
***********
1.) data parsed by refresh_parser
2.) kubernetes pods
**************************************
* 1.) data parsed by refresh_parser: *
**************************************