Skip to content

Instantly share code, notes, and snippets.

View psalaberria002's full-sized avatar

Paul Salaberria psalaberria002

View GitHub Profile
@psalaberria002
psalaberria002 / ambassador_envoy_prometheus_grafana_dashboard.json
Created July 1, 2019 21:14
Grafana dashboard for Ambassador Envoy metrics per destination cluster
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
2019-06-14T14:16:45.848+0200 [DEBUG] plugin.terraform-provider-google_v2.8.0_x4: 2019/06/14 14:16:45 [DEBUG]: Binding for role "roles/cloudkms.cryptoKeyEncrypterDecrypter" not found in policy for KMS KeyRing "projects/cognitedata-greenfield/locations/global/keyRings/nostromo", removing from state file.
2019/06/14 14:16:45 [DEBUG] module.nostromo.google_kms_key_ring_iam_binding.nostromo_key_ring_encrypter_decrypter: apply errored, but we're indicating that via the Error pointer rather than returning it: Provider produced inconsistent result after apply: When applying changes to module.nostromo.google_kms_key_ring_iam_binding.nostromo_key_ring_encrypter_decrypter, provider "google" produced an unexpected new value for was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own issue tracker.
2019/06/14 14:16:45 [TRACE] module.nostromo: eval: *terraform.EvalMaybeTainted
2019/06/14 14:16:45 [TRACE] EvalMaybeTainted: module.nostromo.google_kms_key_ring_iam_binding.no
18-05-07 20:21:10,703 INFO 76:cognite_logger.py(1) - Live worker enabled. Initializing queue...
2018-05-07 20:21:10,710 INFO 76:cognite_logger.py(1) - Backfill worker enabled. Initializing queue...
2018-05-07 20:21:10,715 INFO 76:cognite_logger.py(1) - ElasticsearchLoader initialized, not started yet.
2018-05-07 20:21:10,717 DEBUG 59:dispatcher.py(1) - Started helper thread Thread-CallbackRequestDispatcher
2018-05-07 20:21:10,719 DEBUG 466:bidi.py(1) - Started helper thread Thread-ConsumeBidirectionalStream
2018-05-07 20:21:10,719 DEBUG 108:leaser.py(1) - The current p99 value is 10 seconds.
2018-05-07 20:21:10,720 DEBUG 161:leaser.py(1) - Snoozing lease management for 4.173182 seconds.
2018-05-07 20:21:10,720 DEBUG 178:leaser.py(1) - Started helper thread Thread-LeaseMaintainer
2018-05-07 20:21:10,722 INFO 76:cognite_logger.py(1) - Started loader queue projects/cognitedata-production/topics/resource-changes-livewith subscription projects/cognitedata-production/subscriptions/search-loader-resource-changes-liv
# Kubeon/Kubeoff
if [ ! -f ~/.kube-ps1/kube-ps1.sh ]; then
echo "Kube PS1 not installed. Installing from https://github.com/jonmosco/kube-ps1 ..."
git clone https://github.com/jonmosco/kube-ps1 ~/.kube-ps1
fi
KUBE_PS1_SYMBOL_USE_IMG="${KUBE_PS1_SYMBOL_USE_IMG:-false}"
KUBE_PS1_CTX_COLOR="${KUBE_PS1_CTX_COLOR:-blue}"
KUBE_PS1_SYMBOL_ENABLE="${KUBE_PS1_SYMBOL_ENABLE:-true}"
KUBE_PS1_SEPARATOR="${KUBE_PS1_SEPARATOR:-}"
@psalaberria002
psalaberria002 / app-server.yaml
Created September 30, 2015 20:37
Configure puppet for using hiera as configuration source.
#node_type/app-server.yaml
---
classes:
- java
- jboss
- apache
- vms_deploy
# Java directives (The node definitin overrides this)
java::install_version:
#!/bin/bash
################INSTALLING PUPPET AGENT#############################
# Variables to change:
# - MASTER_HOSTNAME
# - AGENT_NAME
# - AGENT_HOST
####################################################################
set -e -x
#Updating hostname
MASTER_HOSTNAME=puppetmaster.xxx.com
#!/bin/bash
########################################################################
# Create new user and remove existing default user.
# Functions:
# - Create a new user. REMEMBER TO CHANGE THE PASSWORD!
# - Copy existing .ssh folder to new user
# - Change owner to new user
# - Delete default user (ubuntu in ec2 plain images)
#
# Variables to change:
@psalaberria002
psalaberria002 / gist:62cbf59a99d3a121230b
Last active August 29, 2015 14:22 — forked from traylenator/gist:4065084
Puppet augeas Properties file
augeas{'xyz':
lens => 'Properties.lns',
incl => "/tmp/voms.service.properties",
changes => ['set "abc.def" "2345"']
}
(function () {
var root = $(document.getElementsByTagName('html'));
var watchers = [];
var f = function (element) {
if (element.data().hasOwnProperty('$scope')) {
angular.forEach(element.data().$scope.$$watchers, function (watcher) {
watchers.push(watcher);
});
}