From 7504ba96d00c1953d79ec46d2812932976d6ed1a Mon Sep 17 00:00:00 2001 From: uumas Date: Tue, 18 Apr 2023 19:38:43 +0300 Subject: [PATCH] add uisp role --- roles/uisp/README.md | 1 + roles/uisp/meta/argument_specs.yml | 35 ++++++++++++++++++++++++++++++ roles/uisp/tasks/main.yml | 18 +++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 roles/uisp/README.md create mode 100644 roles/uisp/meta/argument_specs.yml create mode 100644 roles/uisp/tasks/main.yml diff --git a/roles/uisp/README.md b/roles/uisp/README.md new file mode 100644 index 0000000..b1af2b1 --- /dev/null +++ b/roles/uisp/README.md @@ -0,0 +1 @@ +Sets up an UISP docker container. diff --git a/roles/uisp/meta/argument_specs.yml b/roles/uisp/meta/argument_specs.yml new file mode 100644 index 0000000..5cce9c5 --- /dev/null +++ b/roles/uisp/meta/argument_specs.yml @@ -0,0 +1,35 @@ +--- + +argument_specs: + main: + short_description: UISP container + description: "Sets up an UISP docker container." + options: + ports: + description: "ports.netflow is used directly. Others passed to container role" + required: true + + # All options after this will be passed directly to the container role + docker_service_suffix: + description: "Passed to container role" + required: false + docker_host_user: + description: "Passed to container role" + required: false + + docker_additional_services: + description: "Passed to container role" + required: false + + docker_volume_type: + description: "Passed to container role" + required: false + reverse_proxy_type: + description: "Passed to container role" + required: false + docker_vhost_domains: + description: "Passed to container role" + required: false + docker_entrypoint: + description: "Passed to container role" + required: false diff --git a/roles/uisp/tasks/main.yml b/roles/uisp/tasks/main.yml new file mode 100644 index 0000000..258a1c3 --- /dev/null +++ b/roles/uisp/tasks/main.yml @@ -0,0 +1,18 @@ +--- + +- name: UISP container + import_role: + name: container + vars: + docker_service: uisp + docker_proxy_target_protocol: https + docker_image: nico640/docker-unms + docker_image_http_port: 8443 + docker_mounts: + - name: config + path: /config + docker_published_ports: + - "0.0.0.0:{{ ports.uisp.netflow }}:2055" + docker_env: + HTTPS_PORT: "8443" + PUBLIC_HTTPS_PORT: "443"