Louis Abel
1be345119f
* Provide most options for nebula config * Provide ability for future modifications to use other distros * Provide information on usable variables in README
16 lines
563 B
Django/Jinja
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"
|
|
|