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
from kombu import Connection, Exchange, Queue | |
from kombu.mixins import ConsumerMixin | |
rabbit_url = "amqp://stackrabbit:pass@10.16.144.168:5672/" | |
class Worker(ConsumerMixin): | |
def __init__(self, connection, queues): | |
self.connection = connection | |
self.queues = queues |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: redis-master | |
labels: | |
app: redis | |
tier: backend | |
role: master | |
spec: | |
ports: |
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/env python | |
import sys | |
import os_client_config | |
from pprint import pprint | |
neutron = os_client_config.make_client('network', cloud='envvars') | |
nova = os_client_config.make_client('compute', cloud='envvars') |
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/env python | |
# coding: utf-8 | |
from collections import defaultdict | |
import os_client_config | |
neutron = os_client_config.make_client('network', cloud='envvars') | |
ports = neutron.list_ports(device_owner='compute:kuryr')['ports'] |
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/env python | |
# coding: utf-8 | |
import os_client_config | |
import sys | |
network_id = sys.argv[1] | |
port_amount = int(sys.argv[2]) | |
neutron = os_client_config.make_client('network', cloud='envvars') | |
ports = [{'device_owner': 'compute:kuryr', 'name': 'bulkport-%i' % i, 'network_id': network_id} for i in range(port_amount)] |
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
import itertools | |
import sys | |
import os | |
import os_client_config | |
neutron = os_client_config.make_client('network', cloud='envvars') | |
trunks = neutron.list_trunks()['trunks'] |
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/env python | |
# coding: utf-8 | |
import datetime | |
import sys | |
from kubernetes import client, config | |
config.load_kube_config() | |
v1 = client.CoreV1Api() | |
try: |
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/env python | |
# coding: utf-8 | |
from kubernetes import client, config | |
config.load_kube_config() | |
v1 = client.CoreV1Api() | |
ret = v1.list_namespaced_pod(namespace='default') | |
print '"Pod name","Pod creation","Pod running"' |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSqWRhDRsl/sUddHiXEEfIEpqkB4Wy9llnzT84f/3KWPqP8UdTC9KPWqVN4uP6h0/BVPVGKsZx1aPkBywrDMbBHwZhGx0QCVcKm14oL8ACC6ctcExIux68Hvjd0YnTmYqK81fI0mCjul2aAqVk5nbWO/tqEBro/xh8BiMSmLsgfPYTmlF5YSH2Mtb+EmvS222A1QNA2FYpIQpNAVYjwxwWX5b9Z3j7CwtXB9O4XWJcSojWFW9c925wxiva4oppH8j4N+I7X4/pItRkHjA8u/VNcFiMc8BrLEcDGM8Jltr7s+4pRP7sZd76lU0hm3/pPVwI7ny7mK9Eh42vvwSQILDZ celebdor@s21 |
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
[[local|localrc]] | |
RECLONE=no | |
LOGFILE=~/stack.sh.log | |
LOG_COLOR=False | |
ENABLED_SERVICES="" | |
# Credentials | |
DATABASE_PASSWORD=pass |