GithubHelp home page GithubHelp logo

ansible-playbook-rabbitmq's Introduction

Rabbitmq Playbook

Playbook to install and configure rabbitmq. Will come with various configuration tweaking later on.

If you wish to discuss modifications, or help to support more plateforms, open an issue.

Supported system

Currently only Debian Jessie and Wheezy on amd64 is supported. Patch welcome to support other OS.

Role Variables

Certificate

Name Type Description Default
rabbitmq_cacert String Name of the CA certificate file. Will be prefixed by rabbitmq_ and postfixed by .pem cacert
rabbitmq_server_key String Name of the SSL key file. Will be prefixed by rabbitmq_ and postfixed by .pem server_key
rabbitmq_cert_key String Name of the SSL certificate file. Will be prefixed by rabbitmq_ and postfixed by .pem server_cert

Default configuration file

Name Type Description Default
rabbitmq_conf_tcp_listeners_address String listening address for the tcp interface ''
rabbitmq_conf_tcp_listeners_port Integer listening port for the tcp interface 5672
rabbitmq_conf_ssl_listeners_address String listening address for the ssl interface '0.0.0.0'`
rabbitmq_conf_ssl_listeners_port Integer listening port for the ssl interface 5671
rabbitmq_conf_ssl_options_cacertfile String Path the CA certificate "/etc/rabbitmq/ssl/cacert.pem"
rabbitmq_conf_ssl_options_certfile String Path to the server certificate "/etc/rabbitmq/ssl/server_cert.pem"
rabbitmq_conf_ssl_options_keyfile String Path to the private key file "/etc/rabbitmq/ssl/server_key.pem"
rabbitmq_conf_ssl_options_fail_if_no_peer_cert Boolean Value of the fail_if_no_peer_cert SSL option "true"

Vhost

Name Type Description Default
rabbitmq_vhost_definitions List Define the list of vhost to create Not defined
rabbitmq_users_definitions List of hash Define the users, and associated vhost and password (see below) Not defined

Defining the users configuration:

rabbitmq_users_definitions:
  - vhost   : vhost1
    user    : user1
    password: password1
  - vhost   : vhost1
    user    : user2
    password: password2
    force   : no
    tags:
    - administrator

Federation

Name Type Description Default
rabbitmq_federation Boolean Define if we need to setup federation false
`rabbitmq_federation_configuration List of hashes Define all the federation we need to setup Not defined
`rabbitmq_policy_configuration List of hashes Define all the federation we need to setup Not defined

Defining the federation upstream configuration:

rabbitmq_federation_upstream:
  - name: upstream name
    vhost: local vhost to federate
    value: json description of the federation
    local_username: the local username for the federation

See the RabbitMQ documentation for the possible JSON value.

Defining the policy configuration:

rabbitmq_policy_configuration:
  - name: name of the policy
    vhost: vhost where the policy will be applied
    pattern: pattern of the policy
    tags: description of the policy in dict form # exemple: "ha-mode=all"

Files required

You have to put the needed certificates in your files/ folder:

files/
 |- rabbitmq_{{ rabbitmq_cacert }}.pem
 |- rabbitmq_{{ rabbitmq_server_key }}.pem
 |- rabbitmq_{{ rabbitmq_server_cert }}.pem

License

BSD

ansible-playbook-rabbitmq's People

Contributors

gaqzi avatar mayeu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.