Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3716606
D2384.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2384.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2384: Allow to provision /home for every user
Attached
Detach File
Event Timeline
Log In to Comment