/
main.yml
185 lines (165 loc) · 7.12 KB
/
main.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
---
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# ypid.linuxmuster_net_client default variables [[[
# =================================================
# .. contents:: Sections
# :local:
#
# .. include:: includes/all.rst
# Client software packages [[[
# ----------------------------
# .. envvar:: linuxmuster_net_client__packages_preset [[[
#
# List of preset "global" packages provided by this role to install.
# If you want to start of with an empty preset, you can set::
#
# linuxmuster_net_client__packages_preset: []
#
# in your inventory.
# Refer to the `README <https://github.com/ypid/ansible-linuxmuster_net_client#linuxmuster_net_client>`_
# and the `./vars/ <https://github.com/ypid/ansible-linuxmuster_net_client/tree/master/vars>`_
# directory of the role for details.
linuxmuster_net_client__packages_preset: |
{{
(linuxmuster_net_client__packages_preset_ypid|d([]) | list) +
[]
}}
# ]]]
# .. envvar:: linuxmuster_net_client__packages [[[
#
# List of additional "global" packages to install.
linuxmuster_net_client__packages: []
# ]]]
# .. envvar:: linuxmuster_net_client__group_packages [[[
#
# List of packages for a group of hosts (only one group supported).
linuxmuster_net_client__group_packages: []
# ]]]
# .. envvar:: linuxmuster_net_client__packages_preset_absent [[[
#
# List of preset "global" packages provided by this role to ensure that they
# are absent/removed.
# If you want to start of with an empty preset, you can set::
#
# linuxmuster_net_client__packages_preset_absent: []
#
# in your inventory.
linuxmuster_net_client__packages_preset_absent: |
{{
(linuxmuster_net_client__packages_preset_ypid_absent|d([]) | list) +
[]
}}
# ]]]
# .. envvar:: linuxmuster_net_client__packages_absent [[[
#
# List of additional "global" packages to remove.
linuxmuster_net_client__packages_absent: []
# ]]]
# .. envvar:: linuxmuster_net_client__group_packages_absent [[[
#
# List of packages for a group of hosts (only one group supported) remove.
linuxmuster_net_client__group_packages_absent: []
# ]]]
# ]]]
# Linuxmuster.net user settings [[[
# ---------------------------------
# .. envvar:: linuxmuster_net_client__template_user [[[
#
# User name of the user which acts as template for teachers and students.
linuxmuster_net_client__template_user: 'linuxadmin'
# ]]]
# ]]]
# Manage local user for offline usage [[[
# ---------------------------------------
#
# Work in progress:
# TODO: Test on fresh system. Create user.
#
# Testing: Don’t allow any internet access for local user:
# iptables -A OUTPUT -m owner --uid-owner localuser -j REJECT
# .. envvar:: linuxmuster_net_client__local_user_enabled [[[
#
# Should a local user for students and teachers be created on the clients?
# This user can be used if the client has been booted without network where
# normal login does not work.
linuxmuster_net_client__local_user_enabled: False
# ]]]
# .. envvar:: linuxmuster_net_client__local_user_name [[[
#
# Unix user name to configure.
linuxmuster_net_client__local_user_name: 'localuser'
# ]]]
# .. envvar:: linuxmuster_net_client__local_user_script_filepath [[[
#
# File path of the sync_localuser script which resets the settings of the local
# user with those of the template user.
# If management of the local user is enabled by
# :envvar:`linuxmuster_net_client__local_user_enabled`, this script will be invoked
# on each reboot.
linuxmuster_net_client__local_user_script_filepath: '/usr/local/bin/sync_localuser'
# ]]]
# .. envvar:: linuxmuster_net_client__local_user_directories [[[
#
# List of directories to create in the home directory of the local user.
linuxmuster_net_client__local_user_directories:
- 'Dokumente_tmp'
# ]]]
# ]]]
# Linuxmuster.net client configuration [[[
# ----------------------------------------
#
# FIXME: More documentation/rework of this section needed.
# .. envvar:: linuxmuster_net_client__copy_custom_config_etc [[[
#
# Configure the client by copying role provided configuration files to
# :file:`/etc`.
linuxmuster_net_client__copy_custom_config_etc: False
# ]]]
# .. envvar:: linuxmuster_net_client__etc_delete_sync [[[
#
# FIXME: Is this needed?
# Directory paths on the client which should by configured by configuration provided by this role.
#
# .. warning:: Note that this overwrite or delete all files below the given directory paths.
#
# To enable this for certain directory paths, take a look at this example::
#
# linuxmuster_net_client__etc_delete_sync:
# - '/etc/linuxmuster-client/pre-mount.d'
# - '/etc/linuxmuster-client/post-mount.d'
#
# By default, this option is disabled.
linuxmuster_net_client__etc_delete_sync: []
# ]]]
# ]]]
# Client auto shutdown [[[
# ------------------------
#
# Allows to shutdown clients at a specific time when no user is logged in.
# Logged in users are given the choice if they are ok with the scheduled
# shutdown or if they want to continue. If no answer is given, the
# client is going to shutdown after 2 minutes.
# .. envvar:: linuxmuster_net_client__auto_shutdown_enabled [[[
#
# Should client auto shutdown be enabled for the times configured by
# :envvar:`linuxmuster_net_client__auto_shutdown_time`?
linuxmuster_net_client__auto_shutdown_enabled: True
# ]]]
# .. envvar:: linuxmuster_net_client__auto_shutdown_time [[[
#
# Cron entries to perform the auto shutdown.
linuxmuster_net_client__auto_shutdown_time:
- { hour: '17', minute: '15'}
- { hour: '20' }
- { hour: '00' }
# ]]]
# ]]]
# Additional scripts [[[
# ----------------------
# .. envvar:: linuxmuster_net_client__additional_scripts_state [[[
#
# Default state for additional scripts provided by this role.
linuxmuster_net_client__additional_scripts_state: 'present'
# ]]]
# ]]]
# ]]]