add dooris role for setup of dooris interaction on the node itself
This commit is contained in:
parent
4c9d582ba6
commit
ef3b04d49d
14 changed files with 179 additions and 51 deletions
48
roles/dooris/meta/argument_specs.yml
Normal file
48
roles/dooris/meta/argument_specs.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
argument_specs:
|
||||
main:
|
||||
options:
|
||||
dooris__static_api_token:
|
||||
description: "A static token that is valid on the servers API and can operate locks"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__hostname:
|
||||
description: "The hostname on which the dooris server is reachable"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__openid_client_id:
|
||||
description: "Client-ID in CCCHH ID for dooris"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__openid_client_secret:
|
||||
description: "Client-Secret in CCCHH ID for dooris"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__ccujack_user:
|
||||
description: "Username for authentication against homematic ccujack"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__ccujack_password:
|
||||
description: "Password for authentication against homematic ccujack"
|
||||
required: true
|
||||
type: str
|
||||
|
||||
dooris__acmedns:
|
||||
description: "Configuration of ACMEDNS domain + credentials for dooris"
|
||||
required: true
|
||||
type: dict
|
||||
options:
|
||||
subdomain:
|
||||
required: true
|
||||
type: str
|
||||
apiUser:
|
||||
required: true
|
||||
type: str
|
||||
apiKey:
|
||||
required: true
|
||||
type: str
|
||||
|
||||
27
roles/dooris/meta/main.yml
Normal file
27
roles/dooris/meta/main.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
dependencies:
|
||||
- role: docker_compose
|
||||
vars:
|
||||
docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'compose.yaml.j2') }}"
|
||||
docker_compose__configuration_files: []
|
||||
|
||||
- role: certbot
|
||||
vars:
|
||||
certbot__new_cert_commands:
|
||||
- "systemctl restart nginx.service"
|
||||
certbot__certs:
|
||||
- commonName: "{{ dooris__hostname }}"
|
||||
challengeType: "dns-01-acme-dns"
|
||||
dns_01_acme_dns:
|
||||
subdomain: "{{ dooris__acmedns.subdomain }}"
|
||||
apiUser: "{{ dooris__acmedns.apiUser }}"
|
||||
apiKey: "{{ dooris__acmedns.apiKey }}"
|
||||
|
||||
- role: nginx
|
||||
vars:
|
||||
nginx__version_spec: ""
|
||||
nginx__deploy_redirect_conf: false
|
||||
nginx__configurations:
|
||||
- name: "{{ dooris__hostname }}"
|
||||
content: "{{ lookup('ansible.builtin.template', 'nginx/site.conf') }}"
|
||||
- name: http_handler
|
||||
content: "{{ lookup('ansible.builtin.template', 'nginx/http_handler.conf') }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue