-
Notifications
You must be signed in to change notification settings - Fork 2
/
copy-sh.sls
45 lines (39 loc) · 1.08 KB
/
copy-sh.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{%- import "dom0/gui-user.jinja" as gui_user -%}
"{{ slsdotpath }}-copy-sh-home":
file.recurse:
- name: {{ gui_user.gui_user_home }}/
- source: salt://{{ slsdotpath }}/files/sh
- file_mode: '0644'
- dir_mode: '0700'
- user: {{ gui_user.gui_user }}
- group: {{ gui_user.gui_user }}
- keep_symlinks: True
- force_symlinks: True
"{{ slsdotpath }}-fix-executables-sh-dir-home":
file.directory:
- name: {{ gui_user.gui_user_home }}/.local/bin
- file_mode: '0755'
- dir_mode: '0755'
- recurse:
- mode
"{{ slsdotpath }}-copy-sh-skel":
file.recurse:
- name: /etc/skel
- source: salt://{{ slsdotpath }}/files/sh
- file_mode: '0644'
- dir_mode: '0700'
- user: root
- group: root
- keep_symlinks: True
- force_symlinks: True
"{{ slsdotpath }}-fix-executables-sh-dir-skel":
file.directory:
- name: /etc/skel/.local/bin
- file_mode: '0755'
- dir_mode: '0755'
- recurse:
- mode