-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path99_master-create-users-symlink.yaml
60 lines (54 loc) · 1.51 KB
/
99_master-create-users-symlink.yaml
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
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: master
name: 99-openshift-machineconfig-master-users-symlink
spec:
config:
ignition:
version: 3.4.0
systemd:
units:
- contents: |
[Unit]
Description=Allow systemd to create mount points on /
DefaultDependencies=no
Before=remote-fs.target
[Service]
Type=oneshot
ExecStart=chattr -i /
[Install]
WantedBy=remote-fs.target
enabled: true
name: immutable-root-off.service
- contents: |
[Unit]
Description=Set / back to immutable after mounts are done
DefaultDependencies=no
After=remote-fs.target
[Service]
Type=oneshot
ExecStart=chattr +i /
[Install]
WantedBy=remote-fs.target
enabled: true
name: immutable-root-on.service
- contents: |
[Unit]
Description=Create Users directory and mount to var
After=immutable-root-off.service
Before=immutable-root-on.service
[Service]
Type=oneshot
ExecStartPre=rm -f /Users
ExecStartPre=mkdir -p /var/Users
ExecStart=ln -sf /var/Users /Users
[Install]
WantedBy=multi-user.target
enabled: true
name: create-symlink-users.service
networkd: {}
passwd: {}
storage: {}
osImageURL: ""