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
#For a new components that has to be proxied by haproxy, just create the component here and add | |
newcomponent_hosts: | |
nameofthehost1: | |
ip: <ip> | |
container_vars: | |
haproxy_service_configs: | |
- newcomponent_haproxied1: | |
haproxy_service_name: first_config_file | |
haproxy_backend_nodes: "{{ [groups['newcomponent_hosts'] }}" | |
- newcomponent_haproxied2: |
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
{% set processes = 0 %} | |
{% for host in groups['swift_hosts'] %} | |
{% if inventory_hostname in host %} | |
processid = {{ processes }} | |
{% else %} | |
{% set processes = processes + 1 %} | |
{% endif %} |
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 bash | |
# This is a simple script to do bulk operations on all projects we support | |
# Operation: | |
# The script clones project config from OpenStack infra then parses the gerrit | |
# projects for all of our known projects. Known projects are determined by the | |
# name using "openstack/openstack-ansible". Once all projects are discovered a | |
# string is built with the "<NAME>|<URL>" and printed. The script then clones | |
# all projects into the workspace and runs the ``bulk_function``. When complete | |
# the script commits the changes using the message provided and submits |
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
apt-get update -qq | |
apt-get install -qq git git-core python2.7 python-dev python-apt python-pycurl libyaml-dev libpython2.7-dev build-essential libssl-dev libffi-dev |
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
--- | |
keepalived_sync_groups: | |
haproxy: | |
instances: | |
- internal | |
keepalived_instances: | |
internal: | |
interface: eth0 | |
state: MASTER |
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
# Defaults file for HAProxy | |
# | |
# This is sourced by both, the initscript and the systemd unit file, so do not | |
# treat it as a shell script fragment. | |
# Change the config file location if needed | |
#CONFIG="/etc/haproxy/haproxy.cfg" | |
# Add extra flags here, see haproxy(1) for a few options | |
#EXTRAOPTS="-de -m 16" |
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
## The default networking requires several bridges. These bridges were named to be informative | |
## however they can be named what ever you like and is adaptable to any network infrastructure | |
## environment. This file serves as an example of how to setup basic networking and was ONLY | |
## built for the purpose of being an example of an environment with a single bonded interface. | |
# Physical interface | |
# ------------------ | |
# All nodes will have some physical interface | |
auto eth0 |
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
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml" | |
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml" | |
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml" | |
- "{{ ansible_distribution | lower }}.yml" | |
- "{{ ansible_os_family | lower }}.yml" |
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
--- | |
keystone_service_adminuri_insecure: true | |
keystone_service_internaluri_insecure: true | |
haproxy_ssl_self_signed_subject: "/C=US/ST=GA/L=Atlanta/O=IT/CN=haproxy.vlab.cso.att.com" | |
horizon_ssl_self_signed_regen: true | |
ceilometer_db_type: mongodb | |
ceilometer_db_ip: localhost | |
ceilometer_db_port: 27017 | |
swift_ceilometer_enabled: True | |
heat_ceilometer_enabled: True |
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
--- | |
cidr_networks: | |
container: 10.2.31.0/24 # 172.29.236.0/22 | |
tunnel: 172.22.1.0/24 # 172.29.240.0/22 | |
storage: 172.20.98.0/24 # 172.29.244.0/22 | |
used_ips: | |
- "172.20.98.1,172.20.98.149" | |
- "172.20.98.240,172.20.98.254" | |
- "10.2.31.1,10.2.31.149" | |
- "10.2.31.240,10.2.31.254" |
OlderNewer