Congress role for OpenStack-Ansible¶
- tags
openstack, congress, cloud, ansible
- category
*nix
To clone or view the source code for this repository, visit the role repository for os_congress.
Default variables¶
## Verbosity Options
debug: False
#python venv executable
congress_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}"
# Set the host which will execute the shade modules
# for the service setup. The host must already have
# clouds.yaml properly configured.
congress_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
congress_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((congress_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
## Set the package install state for distribution packages
congress_pip_package_state: "latest"
congress_package_state: "latest"
## Git repositories and their branches
congress_git_repo: https://opendev.org/openstack/congress
congress_git_install_branch: master
congress_upper_constraints_url: "{{ requirements_git_url | default('https://releases.openstack.org/constraints/upper/' ~ requirements_git_install_branch | default('master')) }}"
congress_git_constraints:
- "git+{{ congress_git_repo }}@{{ congress_git_install_branch }}#egg=openstack-congress"
- "--constraint {{ congress_upper_constraints_url }}"
congress_pip_install_args: "{{ pip_install_options | default('') }}"
## Virtual environment to deploy into
congress_venv_tag: "{{ venv_tag | default('untagged') }}"
congress_bin: "/openstack/venvs/congress-{{ congress_venv_tag }}/bin"
## configuration directory
congress_etc_dir: "/etc/congress"
## Common PIP packages
congress_pip_packages:
- openstack-congress
- osprofiler
- pymysql
- python-congressclient
- python-heatclient
- systemd-python
congress_user_pip_packages: []
congress_services:
congress-server:
group: congress_all
service_name: congress-server
execstarts: "{{ congress_bin }}/congress-server --config-file={{ congress_etc_dir }}/congress.conf"
init_config_overrides: "{{ congress_server_init_overrides }}"
start_order: 1
## System info
congress_system_user_name: congress
congress_system_group_name: congress
congress_system_shell: /bin/false
congress_system_comment: congress system user
congress_system_user_home: "/var/lib/{{ congress_system_user_name }}"
## Service Type and Data
congress_service_region: RegionOne
congress_service_name: congress
congress_service_proto: http
congress_service_type: policy
congress_service_description: "congress service"
congress_service_publicuri: "{{ congress_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ congress_service_port }}"
congress_service_publicurl: "{{ congress_service_publicuri }}"
congress_service_internaluri: "{{ congress_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ congress_service_port }}"
congress_service_internalurl: "{{ congress_service_internaluri }}"
congress_service_adminuri: "{{ congress_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ congress_service_port }}"
congress_service_adminurl: "{{ congress_service_adminuri }}"
congress_service_registry_proto: "{{ congress_service_proto }}"
congress_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(congress_service_proto) }}"
congress_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(congress_service_proto) }}"
congress_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(congress_service_proto) }}"
## Keystone
congress_service_project_domain_id: default
congress_service_project_name: service
congress_service_user_domain_id: default
congress_service_user_name: congress
congress_keystone_auth_plugin: password
congress_service_in_ldap: false
## DB info
congress_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
congress_galera_address: "{{ galera_address | default('127.0.0.1') }}"
congress_galera_database: congress
congress_galera_user: congress
congress_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
congress_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('/etc/ssl/certs/galera-ca.pem') }}"
## Service info
congress_role_name: admin
congress_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}"
congress_service_port: 1789
congress_program_name: congress-server
## Oslo Messaging info
# RPC
congress_oslomsg_rpc_host_group: "{{ oslomsg_rpc_host_group | default('rabbitmq_all') }}"
congress_oslomsg_rpc_setup_host: "{{ (congress_oslomsg_rpc_host_group in groups) | ternary(groups[congress_oslomsg_rpc_host_group][0], 'localhost') }}"
congress_oslomsg_rpc_transport: "{{ oslomsg_rpc_transport | default('rabbit') }}"
congress_oslomsg_rpc_servers: "{{ oslomsg_rpc_servers | default('127.0.0.1') }}"
congress_oslomsg_rpc_port: "{{ oslomsg_rpc_port | default('5672') }}"
congress_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
congress_oslomsg_rpc_userid: congress
congress_oslomsg_rpc_vhost: /congress
# Notify
congress_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
congress_oslomsg_notify_setup_host: "{{ (congress_oslomsg_notify_host_group in groups) | ternary(groups[congress_oslomsg_notify_host_group][0], 'localhost') }}"
congress_oslomsg_notify_transport: "{{ oslomsg_notify_transport | default('rabbit') }}"
congress_oslomsg_notify_servers: "{{ oslomsg_notify_servers | default('127.0.0.1') }}"
congress_oslomsg_notify_port: "{{ oslomsg_notify_port | default('5672') }}"
congress_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
congress_oslomsg_notify_userid: "{{ congress_oslomsg_rpc_userid }}"
congress_oslomsg_notify_password: "{{ congress_oslomsg_rpc_password }}"
congress_oslomsg_notify_vhost: "{{ congress_oslomsg_rpc_vhost }}"
## (Qdrouterd) integration
# TODO(ansmith): Change structure when more backends will be supported
congress_oslomsg_amqp1_enabled: "{{ congress_oslomsg_rpc_transport == 'amqp' }}"
congress_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
## Tunable overrides
congress_congress_api_paste_ini_overrides: {}
congress_congress_conf_overrides: {}
congress_server_init_overrides: {}
Dependencies¶
This role needs pip >= 7.1 installed on the target host.
Example playbook¶
---
- name: Install congress server
hosts: congress_all
user: root
roles:
- { role: "os_congress", tags: [ "os-congress" ] }
Tags¶
congress-install
congress-config