Compare commits
2 commits
b5678345ad
...
ba2f687e12
Author | SHA1 | Date | |
---|---|---|---|
|
ba2f687e12 | ||
|
9faafaa4b2 |
3 changed files with 13 additions and 5 deletions
|
@ -8,6 +8,14 @@ nextcloud-pkgs:
|
||||||
- nginx
|
- nginx
|
||||||
- openldap
|
- openldap
|
||||||
|
|
||||||
|
nextcloud-nginx-confd:
|
||||||
|
file.directory:
|
||||||
|
- name: /etc/nginx/conf.d/
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 755
|
||||||
|
- makedirs: true
|
||||||
|
|
||||||
/home/nextcloud/:
|
/home/nextcloud/:
|
||||||
file.directory:
|
file.directory:
|
||||||
- user: nextcloud
|
- user: nextcloud
|
||||||
|
@ -40,6 +48,7 @@ nextcloud-nginx-confd:
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 755
|
- mode: 755
|
||||||
|
- makedirs: true
|
||||||
|
|
||||||
/etc/systemd/system/nextcloud-cron.service.d/:
|
/etc/systemd/system/nextcloud-cron.service.d/:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
|
|
@ -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: ecdsa-sha2-nistp256
|
- enc: ssh-ed25519
|
||||||
- key: "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnvAIi9HiYDsQCHPWPQrgdLTANveZ3K9v1+0iJDA2yEo67EfkFl7O9Go/pVkOoSjV+eWKQ9A7Az7aMY1tc9ur0="
|
- key: "AAAAC3NzaC1lZDI1NTE5AAAAIDmNZT8bMAfwQGwG/ZE/vkzSBsS4Cv+F7REkIw1tP27J"
|
||||||
#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:
|
||||||
|
|
|
@ -64,9 +64,8 @@ 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: ecdsa-sha2-nistp256
|
- enc: ssh-ed25519
|
||||||
- key: "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnvAIi9HiYDsQCHPWPQrgdLTANveZ3K9v1+0iJDA2yEo67EfkFl7O9Go/pVkOoSjV+eWKQ9A7Az7aMY1tc9ur0="
|
- key: "AAAAC3NzaC1lZDI1NTE5AAAAIDmNZT8bMAfwQGwG/ZE/vkzSBsS4Cv+F7REkIw1tP27J"
|
||||||
|
|
||||||
{% 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'] -%}
|
||||||
|
|
Loading…
Add table
Reference in a new issue