Compare commits

...

7 commits

Author SHA1 Message Date
Raphael Dannecker
c9b7874eff New release of virtiofsd (1.13.1) 2025-04-02 14:13:26 +02:00
Raphael Dannecker
2e2280f50b Fix: Ansible syntax 2025-04-02 14:03:51 +02:00
Raphael Dannecker
250bb045f3 Fix: Add newline in squid config 2025-04-02 14:01:34 +02:00
Raphael Dannecker
a4e2f22def Set http_proxy environment in localproxy role 2025-04-02 13:59:53 +02:00
Raphael Dannecker
6c8d1b1f28 Fix: String in when condition must be enclosed in quotes 2025-04-02 13:58:15 +02:00
Raphael Dannecker
513d29d628 Add an option to force logout if the home on server fails to mount 2025-04-02 13:55:10 +02:00
Raphael Dannecker
e5bf6054fe Add links to firefox bookmarks 2025-04-02 13:48:53 +02:00
12 changed files with 576 additions and 523 deletions

View file

@ -14,20 +14,50 @@ Nothing
## Activation / Default
To enable the local home directory, set the variable `localhome` to `true` (default: false).
## Configuration / Variables
* **localhome**
This flag indicates whether to use home on local disk.
If set to `true` local user's home will be on local disk.
Type: *Boolean*
Values:
* `false` <-- (default)
* `true`
* **localhome_logout_missing_serverhome**
If this flag is set to `true`, the user will be logged out if mounting the serverhome failed.
Sometimes mounting the server homes fails, but the user still logs in.
For laptops used in schools, it's better to force the server home.
For teacher devices that can also be used outside of school, this flag must not be set.
Type:: *Boolean*
Values:
* `false`
* `true` <-- (default)
localhome_logout_missing_serverhome
## Example
* Hosts in group `laptops` will get the localhome.
* Hosts in group `laptops` will get the localhome. Teacherlaptops will be part of the `laptop` group (children-entry).
* All computers in the desktop group, except the PC with IP address 10.0.2.33, will have their home directory on the network (default).\
The PC with IP address 10.0.2.33 also has a local home directory.
* Hosts in group `desktop` will have home on net (default)
* Hosts in group `desktop` will have home on net (default).
* If mounting the server home fails on a local home device (except for teacher devices), the user is automatically logged out.
inventory.yml
```
laptops:
hosts:
10.0.1.[1-64]:
children:
teacherlaptops
vars:
localhome: true
teacherlaptops:
hosts:
10.0.3.[1-32]:
vars:
localhome_logout_missing_serverhome: false
desktops:
hosts:
10.0.2.[1-32]:

File diff suppressed because it is too large Load diff

View file

@ -93,7 +93,7 @@
- role: lmn_wlan
when:
- ansible_interfaces | select('search', 'wl.+') | first is defined
- wlan != none
- wlan != 'none'
tasks:
- name: Include custom roles

View file

@ -46,6 +46,14 @@
"url": "https://peleus.webuntis.com/WebUntis/?school=Ferd.von+Steinbeis#/basic/login",
"name": "FvS-Stundenplan"
},
{
"url": "https://kreis-reutlingen.schulanmeldungen.com/anmeldeformulare/avdual",
"name": "Anmeldung AVdual"
},
{
"url": "https://steinbeisschule-reutlingen.schulanmeldungen.com/",
"name": "Anmeldung FVS"
},
{
"name": "Debian",
"children": [

View file

@ -1,2 +1,3 @@
---
localhome: false
localhome_logout_missing_serverhome: true

View file

@ -34,6 +34,6 @@
mode: '0755'
content: |
[[ "${UID}" -gt 10000 ]] && ! findmnt "/lmn/media/${USER}/home" > /dev/null && exit 0
{% if 'teacherlaptop' not in group_names %}
{% if localhome_logout_missing_serverhome %}
[[ "${UID}" -gt 10000 ]] && ! findmnt /srv/samba/schools/default-school > /dev/null && exit 0
{% endif %}

View file

@ -36,3 +36,13 @@
name: usersquid.service
scope: global
enabled: true
- name: Deploy http proxy config
ansible.builtin.copy:
dest: /etc/environment.d/10-lmn-proxy.conf
mode: '0644'
content: |
http_proxy="http://localhost:3128"
https_proxy="http://localhost:3128"
ftp_proxy="http://localhost:3128"
no_proxy="{{ no_proxy }}"

View file

@ -7,6 +7,8 @@ access_log none
cache_log /dev/null
logfile_rotate 0
pid_filename none
{% if vm_support %}http_port 192.168.122.1:3128{% endif %}
{% if vm_support %}
http_port 192.168.122.1:3128
{% endif %}
http_port 127.0.0.1:3128
http_access allow all

View file

@ -7,6 +7,8 @@ access_log none
cache_log /dev/null
logfile_rotate 0
pid_filename none
{% if vm_support %}http_port 192.168.122.1:3128{% endif %}
{% if vm_support %}
http_port 192.168.122.1:3128
{% endif %}
http_port 127.0.0.1:3128
http_access allow all

View file

@ -1,15 +1,4 @@
---
- name: Deploy http proxy config
ansible.builtin.copy:
dest: /etc/environment.d/10-lmn-proxy.conf
mode: '0644'
content: |
http_proxy="{{ proxy }}"
https_proxy="{{ proxy }}"
ftp_proxy="{{ proxy }}"
no_proxy="{{ no_proxy }}"
when: "'teacherlaptop' not in group_names"
- name: Set aptcache
ansible.builtin.copy:
dest: /etc/apt/apt.conf

Binary file not shown.

View file

@ -129,7 +129,7 @@
- name: Deploy sudo configurations
ansible.builtin.copy:
src: lmn-vm
dest: "/etc/sudoers.d/90-{{ item }}"
dest: /etc/sudoers.d/90-lmn-vm
owner: root
group: root
mode: '0700'