Skip to content

Instantly share code, notes, and snippets.

View eperdeme's full-sized avatar

Nathan Flynn eperdeme

View GitHub Profile
[
{
"id": "4df1db11.780364",
"type": "tab",
"label": "Energy Money Maker",
"disabled": false,
"info": ""
},
{
"id": "f5bdf687714d6141",
equality:
port: 9888
repo: https://github.com/Equality-Network/equality-blockchain.git
branch: 1.1.716
goji:
port: 7444
repo: https://github.com/GetGoji/goji-blockchain.git
branch: 0.2.3
chaingreen:
port: 8744
{{- $fullName := include "istio-config.fullname" . -}}
{{- if .Values.grafana.enabled -}}
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: grafana-gateway
labels:
app.kubernetes.io/name: {{ include "istio-config.name" . }}
helm.sh/chart: {{ include "istio-config.chart" . }}
@eperdeme
eperdeme / keybase.md
Last active September 12, 2019 08:38

Keybase proof

I hereby claim:

  • I am eperdeme on github.
  • I am eperdeme (https://keybase.io/eperdeme) on keybase.
  • I have a public key ASDhqNWb6N-whGoy9ms6OzingdADIst9Z5zYjNK7TGXq-Ao

To claim this, I am signing this object:

class profile_saltstack ($master = false, $minion = false) {
if str2bool($minion) == true {
include ::salt::minion
}
if str2bool($master) == true {
include ::salt::master
}
}
/var/log/daemon.log.12.gz:Dec 27 11:57:01 graphing01 puppet-agent[17149]: Reopening log files
/var/log/daemon.log.12.gz:Dec 27 11:57:25 graphing01 puppet-agent[17149]: Unable to fetch my node definition, but the agent run will continue:
/var/log/daemon.log.12.gz:Dec 27 11:57:25 graphing01 puppet-agent[17149]: SSL_connect SYSCALL returned=5 errno=0 state=unknown state
/var/log/daemon.log.12.gz:Dec 27 11:57:43 graphing01 puppet-agent[17149]: (/File[/var/lib/puppet/lib]) Failed to generate additional resources using 'eval_generate': end of file reached
graphing01:~# ps auxwww | grep puppet
root 14318 0.0 0.0 3120 740 pts/0 S+ 13:46 0:00 grep puppet
root 17149 1.8 0.3 39360 28432 ? Ssl 2014 318:35 /usr/bin/ruby /usr/bin/puppet agent --onetime --pidfile /var/run/puppet-cron.pid
require 'puppet/provider/package'
require 'uri'
# Ruby gems support.
Puppet::Type.type(:package).provide :sensu_gem, :parent => Puppet::Provider::Package do
desc "Ruby Gem support. If a URL is passed via `source`, then that URL is used as the
remote gem repository; if a source is present but is not a valid URL, it will be
interpreted as the path to a local gem file. If source is not present at all,
the gem will be installed from the default gem repositories."
input {
file {
path => "/var/log/nginx/access.log"
type => "nginx-access"
sincedb_path => "/var/log/.nginxaccesssincedb"
}
}
input {
file {
path => "/var/log/nginx/error.log"
udp {
port => 514
type => "syslog"
host => "212.2.8.65"
}
# Windows AMIs don't have WinRM enabled by default -- this script will enable WinRM
# AND install the CloudInit.NET service, 7-zip, curl and .NET 4 if its missing.
# Then use the EC2 tools to create a new AMI from the result, and you have a system
# that will execute user-data as a PowerShell script after the instance fires up!
# This has been tested on Windows 2008 R2 Core x64 and Windows 2008 SP2 x86 AMIs provided
# by Amazon
#
# To run the script, open up a PowerShell prompt as admin
# PS> Set-ExecutionPolicy Unrestricted
# PS> icm $executioncontext.InvokeCommand.NewScriptBlock((New-Object Net.WebClient).DownloadString('https://raw.github.com/gist/1672426/Bootstrap-EC2-Windows-CloudInit.ps1'))