Skip to content

Instantly share code, notes, and snippets.

View wolfoo2931's full-sized avatar
🎯
Focusing

Wolf Oliver wolfoo2931

🎯
Focusing
View GitHub Profile
redis_service:
network: dynamic
stemcells:
service: *a9s-stemcell-default
plans: *a9s-stemcell-default
services:
a9s-redis32:
name: a9s-redis32
guid: ce7d9d95-6877-4151-9e58-249745aebd77
description: 'This is a service creating and managing dedicated Redis service instances, powered by the anynines Service Framework'
mapping_config: |
*.*.*.*.*.system_cpu_user
name="bosh_job_cpu_user"
bosh_name="$1"
bosh_deployment="$2"
bosh_job_name="$3"
bosh_job_id="$4"
bosh_job_index="$4"
*.*.*.*.*.system_load_1m
#!/var/vcap/packages/ruby/bin/ruby
require 'tempfile'
class CleanerCommand
attr_reader :deployment_list_filename
def self.run!(deployment_list_filename)
new(deployment_list_filename).execute!
#!/var/vcap/packages/ruby/bin/ruby
require 'tempfile'
class CleanerCommand
attr_reader :deployment_list_filename
def self.run!(deployment_list_filename)
new(deployment_list_filename).execute!
#!/bin/bash
cert_names=`credhub curl -p /api/v1/certificates | jq '.certificates | .[].name'`
for cert in $cert_names; do
cert_json=`credhub get -n $cert --output-json`
echo $cert_json | jq '.value | .ca' -r > /tmp/tmpca
echo $cert_json | jq '.value | .certificate' -r > /tmp/tmpcert
if [[ $(< /tmp/tmpca) != "null" ]]; then
@wolfoo2931
wolfoo2931 / gist:c51fd608e5b9d1ef42038cc31b2f9c6a
Last active November 16, 2018 09:22
a9s PostgreSQL mappings
*.postgres.*.node.dc1.001bosh001pde1.bicsvc.com.conflicts.*.*.*
name="postgres_conflicts_${5}"
guid="$1"
node="$2"
conflict_number="$3"
database="$4"
*.postgres.*.node.dc1.001bosh001pde1.bicsvc.com.database.*.*.*
name="postgres_database_${5}"
guid="$1"
diff --git a/iaas-config/a9s-concourse-vsphere.yml b/iaas-config/a9s-concourse-vsphere.yml
index c4d051a..899bfd8 100644
--- a/iaas-config/a9s-concourse-vsphere.yml
+++ b/iaas-config/a9s-concourse-vsphere.yml
@@ -8,15 +8,15 @@ iaas:
app_domain: apps.a9s-ds-concourse.a9s-ops.de
consul_ips:
- 10.244.5.17
- consul_instances: 3
+ consul_instances: 1
Updated a9s BOSH Releases
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/rabbitmq37-1.1.0.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/rabbitmq36-12.1.0.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/backup-agent-26.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/logstash-35.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/logstash-34.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/service-smoke-tests-53.16.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/template-uploader-errand-65.tgz
https://s3-eu-west-1.amazonaws.com/anynines-bosh-releases/template-uploader-errand-68.tgz
- type: replace
path: /instance_groups/name=prometheus/jobs/-
value:
name: graphite_exporter
release: prometheus
properties:
graphite_exporter:
graphite:
mapping_strict_match: true
mapping_config: |