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
receivers: | |
filelog: | |
include: ["/var/log/redis/redis.log"] | |
start_at: beginning | |
operators: | |
- type: file_input | |
include: ["/var/log/redis/redis.log*"] | |
start_at: beginning | |
watch_poll_interval: 15s | |
- type: multiline |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"sync" |
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
docker-build: | |
docker build -t oleewere/cbd:latest . | |
docker run --rm --entrypoint cp -v $$(pwd):/src oleewere/cbd:latest build/Darwin/cbd /src/cbd | |
Dockerfile: | |
FROM golang:1.12 | |
ADD . /go/src/github.com/hortonworks/cloudbreak-deployer | |
WORKDIR /go/src/github.com/hortonworks/cloudbreak-deployer |
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/sh | |
export SUBSCRIPTIONID="3ddda1c7-d1f5-4e7b-ac81-0523f483b3b3" | |
export RESOURCEGROUPNAME="oszabo-rg" | |
export STORAGEACCOUNTNAME=$(az storage account list -g $RESOURCEGROUPNAME --subscription $SUBSCRIPTIONID|jq '.[]|.name'| tr -d '"') | |
export ASSUMER_OBJECTID=$(az identity list -g $RESOURCEGROUPNAME --subscription $SUBSCRIPTIONID|jq '.[]|{"name":.name,"principalId":.principalId}|select(.name | test("AssumerIdentity"))|.principalId'| tr -d '"') | |
export DATAACCESS_OBJECTID=$(az identity list -g $RESOURCEGROUPNAME --subscription $SUBSCRIPTIONID|jq '.[]|{"name":.name,"principalId":.principalId}|select(.name | test("DataAccessIdentity"))|.principalId'| tr -d '"') | |
export LOGGER_OBJECTID=$(az identity list -g $RESOURCEGROUPNAME --subscription $SUBSCRIPTIONID|jq '.[]|{"name":.name,"principalId":.principalId}|select(.name | test("LoggerIdentity"))|.principalId'| tr -d '"') | |
export RANGER_OBJECTID=$(az identity list -g $RESOURCEGROUPNAME --subscription $SUBSCRIPTIONID|jq '.[]|{"name":.name,"principalId":.principalId |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Tool to check consistency across FreeIPA servers | |
Author: Peter Pakos <peter.pakos@wandisco.com> | |
Copyright (C) 2017 WANdisco | |
This program is free software: you can redistribute it and/or modify |
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/sh | |
: ${LOGFILE_FOLDER:="/var/log/cdp-telemetry-logging-doctor"} | |
MINION_SCRIPTS_FOLDER="/opt/salt/scripts" | |
SALT_CMD_TIMEOUT=120 | |
LIVENESS_THRESHOLD_SECONDS=86400 # 1 day in seconds | |
BUFFER_LIMIT_BYTES=10485760 # 10 MB in bytes | |
# increase this to make sure to override the script in case of diagnostics | |
# todo: find better solution - pass by cli option? | |
VERSION=1 |
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
{ | |
edit | |
} |
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
#!/usr/bin/env python | |
import argparse | |
import sys | |
import os | |
import json | |
import subprocess | |
#import datetime | |
#from datetime import timezone, timedelta |
This file has been truncated, but you can view the full file.
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
{ | |
"images": { | |
"base-images": [ | |
{ | |
"created": 1571884856, | |
"date": "2019-10-24", | |
"description": "Official Cloudbreak image", | |
"images": { | |
"aws": { |
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
#!/usr/bin/env sh | |
function main() { | |
local defaultMsi=$1 | |
access_token=$(curl -s -k -H "Metadata: true" "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/" | jq .access_token | tr -d '"') | |
access_token_status=$? | |
if [[ "${access_token_status}" != "0" ]]; then | |
echo "$defaultMsi" | |
return 0 | |
fi |
NewerOlder