Compare commits

..

2 commits

Author SHA1 Message Date
Actaeus Curabitur
b5678345ad . 2022-09-06 04:51:32 -05:00
Actaeus Curabitur
23186bde25 ensure conf.d directory and parent directories exist 2022-09-06 04:49:43 -05:00
2 changed files with 5 additions and 4 deletions

View file

@ -23,8 +23,8 @@ backup_host.actcur.com:
- name: host.actcur.com - name: host.actcur.com
- hash_known_hosts: False - hash_known_hosts: False
- user: root - user: root
- enc: ssh-ed25519 - enc: ecdsa-sha2-nistp256
- key: "AAAAC3NzaC1lZDI1NTE5AAAAIDmNZT8bMAfwQGwG/ZE/vkzSBsS4Cv+F7REkIw1tP27J" - key: "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnvAIi9HiYDsQCHPWPQrgdLTANveZ3K9v1+0iJDA2yEo67EfkFl7O9Go/pVkOoSjV+eWKQ9A7Az7aMY1tc9ur0="
#need to add host entry in .ssh/config.d #need to add host entry in .ssh/config.d
{{ name }}_config: {{ name }}_config:
file.managed: file.managed:

View file

@ -64,8 +64,9 @@ mount_host.actcur.com:
- name: host.actcur.com - name: host.actcur.com
- hash_known_hosts: False - hash_known_hosts: False
- user: root - user: root
- enc: ssh-ed25519 - enc: ecdsa-sha2-nistp256
- key: "AAAAC3NzaC1lZDI1NTE5AAAAIDmNZT8bMAfwQGwG/ZE/vkzSBsS4Cv+F7REkIw1tP27J" - key: "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnvAIi9HiYDsQCHPWPQrgdLTANveZ3K9v1+0iJDA2yEo67EfkFl7O9Go/pVkOoSjV+eWKQ9A7Az7aMY1tc9ur0="
{% for mount in pillar['mount']['sshfs'] %} {% for mount in pillar['mount']['sshfs'] %}
{%- if pillar['mount']['sshfs'][mount]['user'] is defined -%} {%- if pillar['mount']['sshfs'][mount]['user'] is defined -%}
{%- set user=pillar['mount']['sshfs'][mount]['user'] -%} {%- set user=pillar['mount']['sshfs'][mount]['user'] -%}