Skip to content

rh-messaging-qe/ansible-qpid-dispatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

A Qpid-Dispatch deployment role.

Requirements

None.

Build/Test Status

Build Status GitHub Issues GitHub Issues Contributions welcome License

Role Variables: Installation Variables

Variables controlling what will be executed by the role.

Name Default Value Description
dispatch_skip_install false Skip install qpid-dispatch.
dispatch_skip_config_default false Skip default config qpid-dispatch.
dispatch_skip_template_generator true Skip install qdrouter-jinja2 template generator on router nodes.
dispatch_skip_generate_template true Skip of generate templates.
dispatch_skip_generate_congfigs true Skip of generate config files for router nodes from templates.
dispatch_package_source_epel false Install qpid-dispatch from Epel source.
dispatch_package_pip false Install pip for qdrouter-jinja2 generator.

Role Variables: Daemon Variables.

Variables controlling router daemon parameters.

Name Default Value Description
dispatch_daemon qdrouterd Service name
dispatch_config_path /etc/qpid-dispatch/qdrouterd.conf Path to dispatch config file
dispatch_default_port 5672 Default port
router_daemon_implementation qpid-dispatch Implementation name for path to config file

Role Variables: Template Variables

Variables controlling the creation of a broker instance.

Name Default Value Description
template_generator_install qdrouter-jinja2 Template generator install package name
template_generator_use qdrouterjinja2 Template generator use package name
template_dir '/tmp/templates' Path to dir for templates
template_file_path_remote /tmp/templates/{{ template_file }} Path to template on remote machine
template_file_path_local /tmp/templates/{{ template_file }} Path to template on local machine
template_file "qdrouterd-{{ inventory_hostname }}.conf.j2" Template name
config_file_path '/etc/{{ router_daemon_implementation }}/{{ config_file }}' Path to config file on router-node
config_file 'qdrouterd.conf' Name of config file for router implementation
generated_router_vars '/tmp/router_vars.yml' Variables generated by topology generator

Dependencies

A dispatch_package_source_epel must be set to true when you don't have subscription for dispatch repository. A dispatch_package_pip must be set to true when you don't have installed pip and you want to install and use qdrouter-jinja2 generator.

Minimum Ansible version: 2.3.2.0

Inventory and user's variables

You can use two types of config files for generate final config:

  • Generated config file (example: test/vars/router_vars.yml) is file, gnerated by iqa-topology-generator. This file includes all components generated from network (graph) type as defaults and also all components from graph specification for iqa-topology-generator

  • Hostfile in inventory folder (example: test/inventory/hosts.yml) contains structure with router nodes and their specific variables for each host or group of hosts. You can more specify router configs by this file, but every record will overwrite generated components of same type (connectors from host.yml will erase conectors from router_vars.yml).

Example of host file:

- all:
    hosts:
      router_name:
         variables:
            machine: router_name
            router:
             - id: router_name
               mode: standalone
            connector:
             - host: 6.6.6.6
               port: 4567

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: docker_containers
  vars:
    dispatch_package_source_epel: true
    dispatch_package_pip: true
    dispatch_skip_template_generator: true
    dispatch_skip_generate_template: true
    dispatch_skip_generate_congfigs: true
    router_vars: files/vars/routers_vars.yml
  roles:
    - role: ansible-qpid-dispatch

Testing

To test this role we use provision_docker role. This role can be tested using the following command:

make test

License

Apache 2.0

Author Information

Messaging QE team @ redhat.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •