forked from woyaowoyao/ocp-customizations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmco_all.yml.tmpl
67 lines (67 loc) · 1.95 KB
/
mco_all.yml.tmpl
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
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: cnv
name: 00-configure-net-and-storage
spec:
config:
ignition:
version: 2.2.0
systemd:
units:
- enabled: true
name: openvswitch.service
- contents: |
[Unit]
After=network-online.target
Wants=network-online.target
After=openvswitch.service
[Service]
Type=oneshot
ExecStart=/bin/sh /var/setup-ovs.sh
[Install]
WantedBy=multi-user.target
name: setup-ovs.service
enabled: true
- contents: |
[Unit]
Description=create datastore mount
[Service]
Type=oneshot
ExecStart=/bin/mkdir -p /var/mnt/datastore
[Install]
WantedBy=multi-user.target
name: create-datastore.service
enabled: true
- contents: |
[Unit]
Description=Set SELinux chcon for hostpath-provisioner
Before=kubelet.service
After=var-mnt-datastore.mount
[Service]
ExecStart=/usr/bin/chcon -Rt container_file_t /var/mnt/datastore
[Install]
WantedBy=multi-user.target
name: selinux-hostpath.service
enabled: true
- contents: |
[Unit]
Description=datastore mount
After=create-datastore.service
[Mount]
What=/dev/sda5
Where=/var/mnt/datastore
Type=xfs
Options=defaults
[Install]
WantedBy=multi-user.target
name: var-mnt-datastore.mount
enabled: true
storage:
files:
- contents:
source: data:text/plain;charset=utf-8;base64,${SCRIPT_BASE64}
filesystem: root
mode: 484
path: /var/setup-ovs.sh