Debian Codegraph @

ansible_collections/community/rabbitmq/README.md

raw
1 # community.rabbitmq Collection
2 [![Build Status](
3 https://dev.azure.com/ansible/community.rabbitmq/_apis/build/status/CI?branchName=main)](https://dev.azure.com/ansible/community.rabbitmq/_build?definitionId=29)
4
5 <!-- Add CI and code coverage badges here. -->
6 <!-- Describe the collection and why a user would want to use it. What does the collection do? -->
7
8 This repository hosts the `community.rabbitmq` Ansible Collection.
9
10 The collection includes the rabbitmq modules and plugins supported by Ansible
11 rabbitmq community to help the management of rabbitmq infrastructure.
12
13 This collection is a part of the Ansible package.
14
15 ## Code of Conduct
16
17 We follow the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html) in all our interactions within this project.
18
19 If you encounter abusive behavior violating the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html), please refer to the [policy violations](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html#policy-violations) section of the Code of Conduct for information on how to raise a complaint.
20
21 ## Communication
22
23 * Join the Ansible forum:
24 * [Get Help](https://forum.ansible.com/c/help/6): get help or help others. Please add appropriate tags if you start new discussions, for example the `rabbitmq` tag.
25 * [Posts tagged with 'rabbitmq'](https://forum.ansible.com/tag/rabbitmq): subscribe to participate in collection-related conversations.
26 * [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
27 * [News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events.
28
29 * The Ansible [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): used to announce releases and important changes.
30
31 For more information about communication, see the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
32
33 ## Included content
34 <!-- Galaxy will eventually list the module docs within the UI, but until that is ready, you may need to either describe your plugins etc here, or point to an external docsite to cover that information. -->
35 - Modules:
36 - `rabbitmq_binding`: Manage rabbitMQ bindings.
37 - `rabbitmq_exchange`: Manage rabbitMQ exchanges.
38 - `rabbitmq_feature_flag`: Enables feature flag.
39 - `rabbitmq_global_parameter`: Manage RabbitMQ global parameters.
40 - `rabbitmq_parameter`: Manage RabbitMQ parameters.
41 - `rabbitmq_plugin`: Manage RabbitMQ plugins.
42 - `rabbitmq_policy`: Manage the state of policies in RabbitMQ.
43 - `rabbitmq_publish`: Publish a message to a RabbitMQ queue.
44 - `rabbitmq_queue`: Manage rabbitMQ queues.
45 - `rabbitmq_upgrade`: Execute rabbitmq-upgrade commands.
46 - `rabbitmq_user_limits`: Manage RabbitMQ user limits.
47 - `rabbitmq_user`: Manage RabbitMQ users.
48 - `rabbitmq_vhost_limits`: Manage the state of virtual host limits in RabbitMQ.
49 - `rabbitmq_vhost`: Manage the state of a virtual host in RabbitMQ.
50
51 - Lookup:
52 - `rabbitmq`: Retrieve messages from an AMQP/AMQPS RabbitMQ queue.
53
54 ## Using this collection
55 <!--Include some quick examples that cover the most common use cases for your collection content. -->
56
57 ### Installing the Collection from Ansible Galaxy
58
59 Before using the collection, you need to install it with the Ansible Galaxy command-line tool:
60
61 ```bash
62 ansible-galaxy collection install community.rabbitmq
63 ```
64
65 You can include it in a `requirements.yml` file and install it via `ansible-galaxy collection install -r requirements.yml`, using the format:
66
67 ```yaml
68 ---
69 collections:
70 - name: community.rabbitmq
71 ```
72
73 You can also download the tarball from [Ansible Galaxy](https://galaxy.ansible.com/community/rabbitmq) and install the collection manually wherever you need.
74
75 Note that if you install the collection from Ansible Galaxy with the command-line tool or tarball, it will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:
76
77 ```bash
78 ansible-galaxy collection install community.rabbitmq --upgrade
79 ```
80
81 You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax:
82
83 ```bash
84 ansible-galaxy collection install community.rabbitmq:==X.Y.Z
85 ```
86
87 See [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.
88
89 ## Contributing to this collection
90 <!--Describe how the community can contribute to your collection. At a minimum, include how and where users can create issues to report problems or request features for this collection. List contribution requirements, including preferred workflows and necessary testing, so you can benefit from community PRs. -->
91
92 The content of this collection is made by people just like you, a community of individuals collaborating on making the world better through developing automation software.
93
94 We are actively accepting new contributors.
95
96 All types of contributions are very welcome.
97
98 You don't know how to start? Refer to our [contribution guide](https://github.com/ansible-collections/community.rabbitmq/blob/main/CONTRIBUTING.md)!
99
100 The aspiration is to follow the following general guidelines:
101
102 - Changes should include tests and documentation where appropriate.
103 - Changes will be lint tested using standard python lint tests.
104 - No changes which do not pass CI testing will be approved/merged.
105 - The collection plugins must provide the same coverage of python support as
106 the versions of Ansible supported.
107 - The versions of Ansible supported by the collection must be the same as
108 those in developed, or those maintained, as shown in the Ansible [Release and Maintenance][4] documentation.
109
110 [4]: https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html
111
112 We use the following guidelines:
113
114 * [CONTRIBUTING.md](https://github.com/ansible-collections/community.rabbitmq/blob/main/CONTRIBUTING.md)
115 * [Ansible Community Guide](https://docs.ansible.com/ansible/latest/community/index.html)
116 * [Ansible Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/index.html)
117 * [Ansible Collection Development Guide](https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#contributing-to-collections)
118
119 ### Local Testing
120
121 * Requirements
122 * [Python 3.5+](https://www.python.org/)
123 * [pip](https://pypi.org/project/pip/)
124 * [virtualenv](https://virtualenv.pypa.io/en/latest/) or [pipenv](https://pypi.org/project/pipenv/) if you prefer.
125 * [git](https://git-scm.com/)
126 * [docker](https://www.docker.com/)
127
128 * Useful Links
129 * [Pip & Virtual Environments](https://docs.python-guide.org/dev/virtualenvs/)
130 * [Ansible Integration Tests](https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html)
131
132 Local testing is done with the ``ansible-test`` tool which requires a specific
133 directory hierarchy to function correctly so please follow carefully.
134
135 ```bash
136 # These base directory environment variables can be adjusted to suit personal preferences
137 SRC_BASE_DIR="~/code"
138 VENV_BASE_DIR="~/.venvs"
139
140 # These should not be altered
141 COLL_DIR="${SRC_BASE_DIR}/ansible/ansible_collections/community/rabbitmq"
142 VENV_DIR="${VENV_BASE_DIR}/ansible"
143
144 # Create the required directory structure
145 mkdir -p $(basename ${COLL_DIR})
146
147 # Clone the collection repository
148 git clone https://github.com/ansible-collections/community.rabbitmq.git ${COLL_DIR}
149
150 # Create and activate a virtual environment.
151 virtualenv ${VENV_DIR}
152 source ${VENV_DIR}/bin/activate
153
154 # Install the devel branch of ansible-base
155 pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
156
157 # Switch into the collection directory
158 cd ${COLL_DIR}
159
160 # Run the integration tests
161 ansible-test integration --docker default -v --color --python 3.6
162
163 # Run the unit tests
164 ansible-test units --docker default -v --color --python 3.6
165 ```
166
167 ## Collection maintenance
168
169 The current maintainers (contributors with `write` or higher access) are listed in the [MAINTAINERS](https://github.com/ansible-collections/community.rabbitmq/blob/main/MAINTAINERS) file. If you have questions or need help, feel free to mention them in the proposals.
170
171 To learn how to maintain / become a maintainer of this collection, refer to the [Maintainer guidelines](https://github.com/ansible-collections/community.rabbitmq/blob/main/MAINTAINING.md).
172
173 It is necessary for maintainers of this collection to be subscribed to:
174
175 * The collection itself (the `Watch` button -> `All Activity` in the upper right corner of the repository's homepage).
176 * The "Changes Impacting Collection Contributors and Maintainers" [issue](https://github.com/ansible-collections/overview/issues/45).
177
178 They also should be subscribed to Ansible's [The Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn).
179
180 ### Publishing New Version
181
182 See the [Releasing guidelines](https://github.com/ansible/community-docs/blob/main/releasing_collections_without_release_branches.rst).
183
184 ## Tested with Ansible
185 <!-- List the versions of Ansible the collection has been tested with. Must match what is in galaxy.yml. -->
186 TBD
187
188 ## External requirements
189 <!-- List any external resources the collection depends on, for example minimum versions of an OS, libraries, or utilities. Do not list other Ansible collections here. -->
190 TBD
191
192 ### Supported connections
193 <!-- Optional. If your collection supports only specific connection types (such as HTTPAPI, netconf, or others), list them here. -->
194 TBD
195
196 ## More Information
197 <!-- List out where the user can find additional information, such as working group meeting times, slack/IRC channels, or documentation for the product this collection automates. -->
198
199 ### Reference
200
201 - [Ansible Collection overview](https://github.com/ansible-collections/overview)
202 - [Ansible User guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
203 - [Ansible Developer guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)
204 - [Ansible Community code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html)
205
206 ## License
207 <!-- Include the appropriate license information here and a pointer to the full licensing details. If the collection contains modules migrated from the ansible/ansible repo, you must use the same license that existed in the ansible/ansible repo. See the GNU license example below. -->
208
209 GNU General Public License v3.0 or later.
210
211 See [LICENCE](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.