ansible-role-nebula/templates/managed.sh.j2
Louis Abel 1be345119f
Startup nebula ansible role
* Provide most options for nebula config
* Provide ability for future modifications to use other distros
* Provide information on usable variables in README
2024-04-18 18:30:15 -07:00

16 lines
563 B
Django/Jinja

#!/bin/bash
# Generator for managed certs for {{ nebula_nodename }}
{{ nebula_bin_dir }}/nebula-cert sign \
-name "{{ nebula_nodename }}" \
-ip "{{ nebula_ip | mandatory }}" \
-groups "{{ nebula_groups | join(',') }}" \
-ca-key "{{ nebula_config_dir }}/ca.key" \
-ca-crt "{{ nebula_config_dir }}/ca.crt" \
{% if nebula_cert_public_key is defined %}
-in-pub "{{ nebula_config_dir }}/{{ nebula_name }}.pub" \
{% else %}
-out-key "{{ nebula_config_dir }}/{{ nebula_name }}.key" \
{% endif %}
-out-crt "{{ nebula_config_dir }}/{{ nebula_name }}.crt"