mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-03 03:01:10 +02:00
add new gitfs functionality
This commit is contained in:
1 parent
6578fb2ae2
commit
c4ef48c5e8
5 files changed
+127
-4
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{%- from "salt/map.jinja" import salt_settings with context %}
|
||||
|
||||
{%- set gitfs_keys=salt['pillar.get']('salt:gitfs:keys') %}
|
||||
|
||||
{%- for key, keyvalues in gitfs_keys.items() %}
|
||||
{%- for type, keydata in keyvalues.items() %}
|
||||
gitfs-key-{{ key }}-{{ type }}:
|
||||
file.managed:
|
||||
- name: {{ salt_settings.config_path }}/pki/gitfs/{{ key }}.{{ type }}
|
||||
- source: salt://salt/files/gitfs_key.jinja
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 600
|
||||
- makedirs: True
|
||||
- defaults:
|
||||
key: {{ key }}
|
||||
type: {{ type }}
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
Reference in new issue
Block a user