Default borgmatic_file_config_yaml_mode: 0640
It is possible to add secrets to the configuration file, as a result don't allow world readable. Change-Id: I32ce383759c48a88431dd753ddcdec0a2e7f49db Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
b326cd6d82
commit
b12d697e79
@ -25,7 +25,7 @@ borgmatic_user_home: /root
|
|||||||
borgmatic_file_config_yaml_dest:
|
borgmatic_file_config_yaml_dest:
|
||||||
"{{ borgmatic_user_home }}/.config/borgmatic/config.yaml"
|
"{{ borgmatic_user_home }}/.config/borgmatic/config.yaml"
|
||||||
borgmatic_file_config_yaml_group: "{{ borgmatic_user_group }}"
|
borgmatic_file_config_yaml_group: "{{ borgmatic_user_group }}"
|
||||||
borgmatic_file_config_yaml_mode: 0644
|
borgmatic_file_config_yaml_mode: 0640
|
||||||
borgmatic_file_config_yaml_owner: "{{ borgmatic_user_name }}"
|
borgmatic_file_config_yaml_owner: "{{ borgmatic_user_name }}"
|
||||||
borgmatic_file_config_yaml_src: root/.config/borgmatic/config.yaml.j2
|
borgmatic_file_config_yaml_src: root/.config/borgmatic/config.yaml.j2
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ def test_borgmatic_config(host):
|
|||||||
assert f.is_file
|
assert f.is_file
|
||||||
assert f.user == 'root'
|
assert f.user == 'root'
|
||||||
assert f.group == 'root'
|
assert f.group == 'root'
|
||||||
assert f.mode == 0o644
|
assert f.mode == 0o640
|
||||||
del f
|
del f
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user