-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdesktop.sls
41 lines (31 loc) · 1014 Bytes
/
desktop.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
{% from "containers/defaults.jinja" import settings with context %}
{% from 'desktop/user/lib.sls' import user, user_info, user_home with context %}
include:
- containers
{% for n in 'subuid', 'subgid' %}
add_{{ n }}_to_user_{{ user }}:
file.append:
- name: /etc/{{ n }}
- text: |
{{ user }}:100000:65536
{% endfor %}
{% if grains['os'] == 'Ubuntu' %}
x11docker-tools:
pkg.installed:
- pkgs: {{ settings.pkg.ubuntu.desktop }}
# snapshot (6.9.1-beta-1) at 038af50b3389ceaecf5916b29f3bc21ae5c613de
# https://github.com/mviereck/x11docker
x11docker:
file.managed:
- source: salt://containers/tools/x11docker
- name: /usr/local/bin/x11docker
- mode: "755"
- require:
- pkg: x11docker-tools
{% elif grains['os'] == 'Manjaro' %}
{% from 'arch/lib.sls' import aur_install with context %}
x11docker-tools:
pkg.installed:
- pkgs: {{ settings.pkg.manjaro.desktop }}
{{ aur_install("x11docker", ["x11docker"], require="pkg: x11docker-tools") }}
{% endif %}