Merge pull request #78 from mother-of-all-self-hosting/mosquitto
Add mosquitto
This commit is contained in:
commit
0301d4335a
6 changed files with 56 additions and 0 deletions
25
docs/services/mosquitto.md
Normal file
25
docs/services/mosquitto.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Mosquitto
|
||||
|
||||
[Mosquitto](https://mosquitto.org/) is an open source [MQTT](https://en.wikipedia.org/wiki/MQTT) broker.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process:
|
||||
|
||||
```yaml
|
||||
mosquitto_enabled: true
|
||||
|
||||
# If you need to change the MQTT port you can uncomment and adjust
|
||||
# mosquitto_container_mqtt_host_bind_port: "1884"
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
After installation, you can use `just run-tags mosquitto-add-user --extra-vars=username=<username> --extra-vars=password=<password>` to create a user. For the setting to take effect, you must restart the container. To do that you can use `just start-group mosquitto`.
|
||||
|
||||
You can then start to send and subscribe to MQTT topics. Use port `1883` and the server's IP or any domain you configured to point to this server.
|
||||
|
||||
## Alternatives
|
||||
|
||||
* [rumqttd](rumqttd.md) is another MQTT broker
|
|
@ -35,3 +35,7 @@ rumqttd_enabled: true
|
|||
## Usage
|
||||
|
||||
You can then start to send and subscribe to MQTT topics. Use port 1883 and the servers IP or any domain you configured to point at this server.
|
||||
|
||||
## Alternatives
|
||||
|
||||
* [Mosquitto](mosquitto.md) is another, more feature-complete MQTT broker
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
| [MariaDB](https://mariadb.org/) | A powerful, open source object-relational database system | [Link](services/mariadb.md) |
|
||||
| [Matrix Rooms Search API](https://gitlab.com/etke.cc/mrs/api) | A fully-featured, standalone, matrix rooms search service. | [Link](services/mrs.md) |
|
||||
| [MongoDB](https://www.mongodb.com/) | A source-available cross-platform document-oriented (NoSQL) database program. | [Link](services/mongodb.md) |
|
||||
| [Mosquitto](https://mosquitto.org/) | An open-source MQTT broker | [Link](services/mosquitto.md) |
|
||||
| [Miniflux](https://miniflux.app/) | Minimalist and opinionated feed reader. | [Link](services/miniflux.md) |
|
||||
| [Mobilizon](https://joinmobilizon.org/en/) | An ActivityPub/Fediverse server to create and share events. | [Link](services/mobilizon.md) |
|
||||
| [Navidrome](https://www.navidrome.org/) | [Subsonic-API](http://www.subsonic.org/pages/api.jsp) compatible music server | [Link](services/navidrome.md)
|
||||
|
|
|
@ -149,6 +149,8 @@ devture_systemd_service_manager_services_list_auto: |
|
|||
+
|
||||
([{'name': (mongodb_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'mongodb']}] if mongodb_enabled else [])
|
||||
+
|
||||
([{'name': (mosquitto_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'mosquitto']}] if mosquitto_enabled else [])
|
||||
+
|
||||
([{'name': (mrs_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'mrs']}] if mrs_enabled else [])
|
||||
+
|
||||
([{'name': (navidrome_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'navidrome']}] if navidrome_enabled else [])
|
||||
|
@ -1766,7 +1768,26 @@ mongodb_managed_databases_auto: |
|
|||
# #
|
||||
########################################################################
|
||||
|
||||
########################################################################
|
||||
# #
|
||||
# mosquitto #
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
mosquitto_enabled: false
|
||||
|
||||
mosquitto_identifier: "{{ mash_playbook_service_identifier_prefix }}mosquitto"
|
||||
|
||||
mosquitto_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_base_directory_name_prefix }}mosquitto"
|
||||
|
||||
mosquitto_uid: "{{ mash_playbook_uid }}"
|
||||
mosquitto_gid: "{{ mash_playbook_gid }}"
|
||||
|
||||
########################################################################
|
||||
# #
|
||||
# /mosquitto #
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
|
||||
########################################################################
|
||||
|
|
|
@ -106,6 +106,9 @@
|
|||
- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-mongodb.git
|
||||
version: v6.0.6-0
|
||||
name: mongodb
|
||||
- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-mosquitto.git
|
||||
version: v2.0.15-1
|
||||
name: mosquitto
|
||||
- src: git+https://gitlab.com/etke.cc/mrs/ansible-role-mrs.git
|
||||
version: v0.0.0-9
|
||||
name: mrs
|
||||
|
|
|
@ -104,6 +104,8 @@
|
|||
|
||||
- role: galaxy/mobilizon
|
||||
|
||||
- role: galaxy/mosquitto
|
||||
|
||||
- role: galaxy/navidrome
|
||||
|
||||
- role: galaxy/netbox
|
||||
|
|
Loading…
Reference in a new issue