This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from subprocess import Popen, PIPE, check_output | |
metric_list = ['pxname', 'svname', 'qcur', 'qmax', 'scur', 'smax', 'slim', 'stot', 'bin', 'bout', 'dreq', 'dresp', | |
'ereq', 'econ', 'eresp', 'wretr', 'wredis', 'status', 'weight', 'act', 'bck', 'chkfail', 'chkdown', | |
'lastchg', 'downtime', 'qlimit', 'pid', 'iid', 'sid', 'throttle', 'lbtot', 'tracked', 'type', 'rate', | |
'rate_lim', 'rate_max', 'check_status', 'check_code', 'check_duration', 'hrsp_1xx', 'hrsp_2xx', | |
'hrsp_3xx', 'hrsp_4xx', 'hrsp_5xx', 'hrsp_other', 'hanafail', 'req_rate', 'req_rate_max', 'req_tot', | |
'cli_abrt', 'srv_abrt', 'comp_in', 'comp_out', 'comp_byp', 'comp_rsp', 'lastsess', 'last_chk', | |
'last_agt', 'qtime', 'ctime', 'rtime', 'ttime'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: HAProxy | |
Version: 1.6.11-1ppa1~trusty | |
Release_date: 2016/12/27 | |
Nbproc: 1 | |
Process_num: 1 | |
Pid: 27092 | |
Uptime: 3d 20h58m09s | |
Uptime_sec: 334689 | |
Memmax_MB: 0 | |
Ulimit-n: 200033 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for lb1 | |
global | |
daemon | |
user nobody | |
group nogroup | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/octavia/ea388223-a6ac-4654-adea-60cb14d0c315.sock mode 0666 level user | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for lb1 | |
global | |
daemon | |
user nobody | |
group nogroup | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/octavia/93723015-0e58-4c70-ab81-c489b5d7ca33.sock mode 0666 level user | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for lb1 | |
global | |
daemon | |
user nobody | |
group nogroup | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/octavia/7106bdf1-6f42-429c-945b-d4ccb68a83c5.sock mode 0666 level user | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for lb1 | |
global | |
daemon | |
user nobody | |
group nogroup | |
log /dev/log local0 | |
log /dev/log local1 notice | |
stats socket /var/lib/octavia/f2ec1a4d-54e0-4b26-9fda-97ca6c855646.sock mode 0666 level user | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstack secret store --name='cert1' --payload-content-type='text/plain' --payload="$(cat server.crt)" | |
openstack secret store --name='key1' --payload-content-type='text/plain' --payload="$(cat server.key)" | |
openstack secret store --name='intermediates1' --payload-content-type='text/plain' --payload="$(cat ca-chain.p7b)" | |
openstack secret container create --name='tls_container1' --type='certificate' --secret="certificate=$(openstack secret list | awk '/ cert1 / {print $2}')" --secret="private_key=$(openstack secret list | awk '/ key1 / {print $2}')" --secret="intermediates=$(openstack secret list | awk '/ intermediates1 / {print $2}')" | |
openstack secret store --name='cert2' --payload-content-type='text/plain' --payload="$(cat server2.crt)" | |
openstack secret store --name='key2' --payload-content-type='text/plain' --payload="$(cat server2-encrypted.key)" | |
openstack secret store --name='intermediates2' --payload-content-type='text/plain' --payload="$(cat ca-chain2.p7b)" | |
openstack secret store --name='passphrase2' --p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
NewerOlder