Page MenuHomeDevCentral

D2384.diff
No OneTemporary

D2384.diff

diff --git a/pillar/core/users.sls b/pillar/core/users.sls
--- a/pillar/core/users.sls
+++ b/pillar/core/users.sls
@@ -114,7 +114,8 @@
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9u1AFDK0mo7bDQZAiV9AXXdxUiH8H1B0rLY8NIP8/f yggdrasil.dereckson.drake
yubico_keys:
- ccccccbjncrt
- deploy_dotfiles_to_devserver: True
+ devserver_tasks:
+ - deploy_dotfiles
uid: 5001
erol:
diff --git a/roles/devserver/userland-home/homefiles.sls b/roles/devserver/userland-home/homefiles.sls
--- a/roles/devserver/userland-home/homefiles.sls
+++ b/roles/devserver/userland-home/homefiles.sls
@@ -7,7 +7,9 @@
# -------------------------------------------------------------
{% for username, user in salt['forest.get_users']().items() %}
-{% if 'deploy_dotfiles_to_devserver' in user %}
+{% set tasks = user.get('devserver_tasks', []) }
+
+{% if 'deploy_dotfiles' in tasks %}
dotfiles_to_devserver_{{username}}:
file.recurse:
- name: /home/{{ username }}
@@ -17,4 +19,5 @@
- user: {{ username }}
- group: {{ username }}
{% endif %}
+
{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 16:36 (19 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232108
Default Alt Text
D2384.diff (1 KB)

Event Timeline