forked from RHsyseng/rhcos-slb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mco_ovs_workers.yml
33 lines (33 loc) · 4.46 KB
/
mco_ovs_workers.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
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 00-configure-ovs-worker
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
storage:
files:
- contents:
source: data:text/plain;charset=utf-8;base64,IyEvdXNyL2Jpbi9lbnYgYmFzaAoKc2V0IC1leAoKaWYgW1sgISAtZiAvYm9vdC9tYWNfYWRkcmVzc2VzIF1dIDsgdGhlbgogIGVjaG8gIm5vIG1hYyBhZGRyZXNzIGNvbmZpZ3VyYXRpb24gZmlsZSBmb3VuZCAuLiBleGl0aW5nIgogIGV4aXQgMQpmaQoKaWYgW1sgJChubWNsaSBjb25uIHwgZ3JlcCAtYyBvdnMpIC1lcSAwIF1dOyB0aGVuCiAgb2MgLS1rdWJlY29uZmlnIC9ldGMva3ViZXJuZXRlcy9rdWJlY29uZmlnIGxhYmVsIG5vZGUgJChob3N0bmFtZSkgIG5ldHdvcmsub3BlcmF0b3Iub3BlbnNoaWZ0LmlvL2V4dGVybmFsLW9wZW52c3dpdGNoPXRydWUKICBlY2hvICJjb25maWd1cmUgb3ZzIGJvbmRpbmciCiAgcHJpbWFyeV9tYWM9JChjYXQgL2Jvb3QvbWFjX2FkZHJlc3NlcyB8IGF3ayAtRj0gJy9QUklNQVJZX01BQy8ge3ByaW50ICQyfScpCiAgc2Vjb25kYXJ5X21hYz0kKGNhdCAvYm9vdC9tYWNfYWRkcmVz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