Skip to content

Instantly share code, notes, and snippets.

View Tombar's full-sized avatar

Martin Loy Tombar

View GitHub Profile
{{- if and .Values.connect.enabled .Values.monitoring.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: connect-dashboard
labels:
grafana-dashboard: "true"
app: {{ template "name" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
@Tombar
Tombar / zk-plain-service.yaml
Created October 11, 2018 07:34
strimzi non-tls zookepeer example
# non tls zk service
---
apiVersion: v1
kind: Service
metadata:
name: my-cluster-zookeeper-plain
labels:
app: my-cluster-zookeeper-plain
spec:
selector:
---
description: 'Devteam General User, read/run access'
context:
application: 'rundeck'
for:
resource:
- allow: 'read'
project:
- allow: ["read", "run"]
by:
Error: Failed to apply catalog: Duplicate declaration: File[/etc/facter/facts.d] is already declared in file /etc/puppet/environments/infradev/modules/btngbase/manifests/facter/extras.pp:20; cannot redeclare at /etc/puppet/environments/infradev/modules/rundeck/manifests/facts.pp:34
Veewee::Definition.declare({
:cpu_count => '1',
:memory_size=> '256',
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
:os_type_id => 'Debian_64',
:iso_file => "debian-7.6.0-amd64-netinst.iso",
:iso_src => "http://mirror.i3d.net/pub/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-netinst.iso",
:iso_md5 => "8a3c2ad7fd7a9c4c7e9bcb5cae38c135",
:iso_download_timeout => "1000",
@Tombar
Tombar / gist:3f9bcb7d0253f9c7cf2a
Created December 29, 2014 17:38
Ultimate Puppet Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
node_defaults = {
:domain => 'dev',
:memory => 384,
}
single = {:ip => '172.16.11.30', :memory => 1024, :cpus => 2}
@Tombar
Tombar / gist:252d7722b852dc5d3abf
Created December 18, 2014 15:57
Vagrantfile for puppet and puppetmaster
# -*- mode: ruby -*-
# vi: set ft=ruby :
puppetmaster = {:node_name => 'pm', :ip => '172.16.0.250', :memory => 1024, :cpus => 2}
nodes = {
'node10' => {:ip => '172.16.11.10'},
'node11' => {:ip => '172.16.11.11'},
'node12' => {:ip => '172.16.11.12', :memory => 1024, :cpus => 2},
}
@Tombar
Tombar / gist:b84703af1b43b01c6c6f
Created November 21, 2014 13:34
hiera resources
I want to use a YAML/Hiera definition of resources as a `template` to create multiple instances of it
For example, having an nginx conf for drupal like below, I would like to create multiple sites using it
I understand i need to paremetrize some stuff also.
Is it possible?
---
### SAMPLE NGINX VHOST CONFIG FOR DRUPAL
nginx::nginx_vhosts:
file { $logdir:
ensure => 'directory',
owner => 'root' ,
group => 'root',
mode => '0775'
}
apt::key { "php-repo-${$version}-key":
key => 'E9C74FEEA2098A6E'
}
@Tombar
Tombar / gist:98151902a1fad0763dc9
Created June 11, 2014 12:44
Vagrantfile with puppet provisioner
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "debian-70rc1-x64-vbox4210"