Skip to content

Instantly share code, notes, and snippets.

View evrardjp's full-sized avatar

Jean-Philippe Evrard evrardjp

View GitHub Profile
@logan2211
logan2211 / bootstrap_host_overrides.yml
Last active September 14, 2017 18:03
OSA CI Configuration for unbound + ceph + calico
---
# Copyright 2016, Logan Vig <logan2211@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@adambom
adambom / README.md
Last active May 22, 2020 05:09
Backup Kubernetes Cluster State

Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp.

Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.

Please note: This has not been tested with all resource types. Supported resource types include:

  • services
  • replicationcontrollers
  • secrets
  • deployments
  • horizontal pod autoscalers
@odyssey4me
odyssey4me / 0-setup-hosts.sh
Created July 17, 2016 14:30
Testing the local and remote lxc connection plugins
# Note: This test is executed on Ubuntu Trusty
# do this on localhost (deployment host)
# ensure that there's a local ssh private key
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
# now make sure that the public key is in the second host's authorized_keys
# then do a test ssh connection to make sure it works, and to add the host
# to known hosts
diff --git a/playbooks/plugins/filters/osa-filters.py b/playbooks/plugins/filters/osa-filters.py
index 61ca112..f18f873 100644
--- a/playbooks/plugins/filters/osa-filters.py
+++ b/playbooks/plugins/filters/osa-filters.py
@@ -187,6 +187,34 @@ def git_link_parse_name(repo):
return git_link_parse(repo)['name']
+def format_haproxy_servers(servers_group, default_port, params,
+ connection='ansible_ssh_host'):