Skip to content

Instantly share code, notes, and snippets.

View logan2211's full-sized avatar

Logan V logan2211

View GitHub Profile
#!/bin/sh -e
#this script requires a routing table named $IFACE (ie. bond0) exists in /etc/iproute2/rt_tables
#the $IFACE routing table is used to place the default route in for the source routing table
#ip route list table $IFACE will list the routing table for this interface
set_netinfo() {
IPADDR=$(ifconfig "$IFACE" | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
NETMASK=$(ifconfig "$IFACE" | grep 'inet addr:' | cut -d: -f4 | awk '{ print $1}')
OLDIFS=$IFS
- name: apt-mirror
scm: git
src: http://github.com/Logan2211/ansible-apt-mirror
version: master
logan@LoganLTop ~/temp/osa-gate-profile $ php branchprofile.php
Fetching results for 2016.05.21
Analyzing 154 samples
Fetching results for 2016.05.20
Analyzing 2118 samples
Fetching results for 2016.05.19
Analyzing 1349 samples
Fetching results for 2016.05.18
Analyzing 844 samples
Fetching results for 2016.05.17
@logan2211
logan2211 / Aggregated by nodepool name
Created May 18, 2016 14:53
2016-05-18 OSA Gate Stats
ubuntu-trusty-rax-ord
repo_build | Create role based venv = 317.95
repo_build | Clone all upstream git repositories = 250.39
lxc_container_create | Create container = 177.81
repo_build | Create OpenStack-Ansible requirement wheels = 172.3
lxc_hosts | Prepare cached image = 168.84
os_tempest | Install requires pip packages = 127.11
repo_build | Run venv process script = 109.92
repo_build | Run clone process script = 108.92
lxc_hosts | Prepare cached image with packages = 80.29
haproxy_service_configs: "{{ haproxy_infra + haproxy_openstack_public + haproxy_openstack_internal }}"
haproxy_infra:
- service:
haproxy_service_name: galera
haproxy_backend_nodes: "{{ [groups['galera_all'][0]] | default([]) }}" # list expected
haproxy_backup_nodes: "{{ groups['galera_all'][1:] | default([]) }}"
haproxy_port: 3306
haproxy_balance_type: tcp
haproxy_timeout_client: 5000s