-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin Buchleitner <mabunixda@gmail.com>
- Loading branch information
Showing
4 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
# Ansible UDMP Role | ||
|
||
Customize your Ubiquiti UDM (Pro) with ansible and [udm-utilities](https://github.com/boostchicken/udm-utilities). | ||
|
||
Because the Ubiquiti UDM and Pro have not valid python installation, raw commands must be used to do all the changes. | ||
|
||
## Sample Playbook | ||
|
||
With this playbook: | ||
* your custom SSL certificate is loaded to the UDM (Pro) | ||
* [udm-utilities](https://github.com/boostchicken/udm-utilities) gets installed | ||
* ssh keys are loaded from the Unifi Controller to the UDM (Pro) | ||
* node exporter for prometheus scraping gets setup as container via podman | ||
|
||
```yaml | ||
--- | ||
- name: udmp setup | ||
hosts: unifi-udmp-gateway | ||
gather_facts: false | ||
roles: | ||
- role: mabunixda.ansible_udmp | ||
certificate: <path-to-certificate.pem> | ||
certificate_key: <path-to-certificate-key.pem> | ||
``` | ||
## You can configure following services: | ||
Except the nodeexporter all services require configuration tasks after deploying the services. This configuration tasks must be done manually or by other roles/plays. | ||
### nodeexporter_enabled | ||
Starts a nodeexporter instance via podman on the gateway to scrape metrics via prometheus | ||
### frr_enabled | ||
FRR is a service to enable BGP routing ( e.g. when running kubernetes with Metallb, or nomad with calico ) | ||
### rsyncd_enabled | ||
This services enabled you to offload your configuration/backup by rsync via port 2202 | ||
### openvpn_enabled | ||
Openvpn Service to connect the UDM(Pro) to a certain OpenVPN tunnel. | ||
### zerotier_enabled | ||
Launches a zerotier container on the UDM(Pro) and connects to a certain zerotier network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
--- | ||
|
||
nodeexporter_enabled: yes | ||
frr_enabled: no | ||
rsyncd_enabled: no | ||
openvpn_enabled: no | ||
zerotier_enabled: no | ||
|
||
unifi_certificate_path: "{{ unifi_mount_path }}/unifi-os/unifi-core/config" | ||
unifi_os_certificate_path: "{{ unifi_os_mount_path }}/unifi-core/config" | ||
|
||
java_certificate_import: "java -jar /usr/lib/unifi/lib/ace.jar import_key_cert" | ||
|
||
openvpn_enabled: no | ||
zerotier_enabled: no | ||
nodeexporter_enabled: yes | ||
|
||
udm_onboot_version: 1.0.4 | ||
udm_onboot_download_uri: "https://github.com/boostchicken/udm-utilities/releases/download/{{ udm_onboot_version }}/udm-boot_{{ udm_onboot_version }}_all.deb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters