Skip to content

Commit

Permalink
feat(tls): add tls encryption variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Joos committed Mar 20, 2024
1 parent 03cadf6 commit 9080b37
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ bareos_dir_tls_enable: yes
# Verify the peer.
bareos_dir_tls_verify_peer: no

# The path of the CA certificate file.
bareos_dir_ca_cert: "/etc/bareos/bareosCA.pem"

# The path of the client certificate of the director
bareos_dir_client_cert: "/etc/bareos/director.pem"

# The path of the client certificate key of the director
bareos_dir_client_key: "/etc/bareos/director.key"

# A list of catalogs to configure.
bareos_dir_catalogs: []

Expand Down
9 changes: 9 additions & 0 deletions templates/bareos-dir.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ Director {
Plugin Names = "{{ bareos_dir_plugin_name }}"
Plugin Directory = "{{ bareos_dir_plugin_dir }}"
{% endif %}
{% if bareos_dir_ca_cert is defined %}
TLS CA Certificate File = "{{ bareos_dir_ca_cert }}"
{% endif %}
{% if bareos_dir_client_cert is defined %}
TLS Certificate = "{{ bareos_dir_client_cert }}"
{% endif %}
{% if bareos_dir_client_key is defined %}
TLS Key = "{{ bareos_dir_client_key }}"
{% endif %}
}

0 comments on commit 9080b37

Please sign in to comment.