|
| 1 | +--- |
| 2 | +variant: fcos |
| 3 | +version: 1.4.0 |
| 4 | +kernel_arguments: |
| 5 | + should_not_exist: |
| 6 | + - mitigations=auto,nosmt |
| 7 | +storage: |
| 8 | + files: |
| 9 | + - path: /etc/zincati/config.d/90-disable-auto-updates.toml |
| 10 | + contents: |
| 11 | + local: 90-disable-auto-updates.toml |
| 12 | + mode: 0644 |
| 13 | + - path: /root/kubelet-e2e.te |
| 14 | + contents: |
| 15 | + local: kubelet-e2e.te |
| 16 | + mode: 0644 |
| 17 | + - path: /etc/crio/crio.conf.d/20-crio.conf |
| 18 | + contents: |
| 19 | + local: 20-crio.conf |
| 20 | + mode: 0644 |
| 21 | + - path: /etc/sysctl.d/99-e2e-sysctl.conf |
| 22 | + contents: |
| 23 | + local: 99-e2e-sysctl.conf |
| 24 | + mode: 0644 |
| 25 | + - path: /etc/ssh-key-secret/ssh-public |
| 26 | + contents: |
| 27 | + # base64 encoded "GCE_SSH_PUBLIC_KEY_FILE_CONTENT" |
| 28 | + source: data:text/plain;base64,R0NFX1NTSF9QVUJMSUNfS0VZX0ZJTEVfQ09OVEVOVA== |
| 29 | + mode: 0644 |
| 30 | + - path: /etc/systemd/system.conf.d/10-env.conf |
| 31 | + mode: 0644 |
| 32 | + contents: |
| 33 | + inline: | |
| 34 | + [Manager] |
| 35 | + DefaultEnvironment="CRIO_SCRIPT_COMMIT=c54e56dea6a3175198e3bd9b306f681a67c48a09" |
| 36 | + DefaultEnvironment="CRIO_COMMIT=c5c41f21fa802d1c19a4114e88ecd91a270e3a15" |
| 37 | +systemd: |
| 38 | + units: |
| 39 | + - name: configure-sysctl.service |
| 40 | + enabled: true |
| 41 | + contents: | |
| 42 | + [Unit] |
| 43 | + Description=Configure required sysctls. |
| 44 | +
|
| 45 | + [Service] |
| 46 | + Type=oneshot |
| 47 | + ExecStart=/usr/lib/systemd/systemd-sysctl |
| 48 | +
|
| 49 | + [Install] |
| 50 | + WantedBy=multi-user.target |
| 51 | + - name: tools-install.service |
| 52 | + enabled: true |
| 53 | + contents: | |
| 54 | + [Unit] |
| 55 | + Description=Download and install required tools. |
| 56 | + Before=crio-install.service |
| 57 | + After=NetworkManager-wait-online.service |
| 58 | +
|
| 59 | + [Service] |
| 60 | + Type=oneshot |
| 61 | + ExecStart=rpm-ostree install \ |
| 62 | + -y \ |
| 63 | + --apply-live \ |
| 64 | + --allow-inactive \ |
| 65 | + dbus-tools \ |
| 66 | + checkpolicy |
| 67 | +
|
| 68 | + [Install] |
| 69 | + WantedBy=multi-user.target |
| 70 | + - name: selinux-install.service |
| 71 | + enabled: true |
| 72 | + contents: | |
| 73 | + [Unit] |
| 74 | + Description=Setup SELinux policy |
| 75 | + After=tools-install.service |
| 76 | +
|
| 77 | + [Service] |
| 78 | + Type=oneshot |
| 79 | + ExecStartPre=setenforce 1 |
| 80 | + ExecStartPre=checkmodule -M -m -o /root/kubelet-e2e.mod /root/kubelet-e2e.te |
| 81 | + ExecStartPre=semodule_package -o /root/kubelet-e2e.pp -m /root/kubelet-e2e.mod |
| 82 | + ExecStartPre=semodule -i /root/kubelet-e2e.pp |
| 83 | + ExecStartPre=mkdir -p /var/lib/kubelet |
| 84 | + ExecStart=chcon -R -u system_u -r object_r -t var_lib_t /var/lib/kubelet |
| 85 | +
|
| 86 | + [Install] |
| 87 | + WantedBy=multi-user.target |
| 88 | + - name: crio-install.service |
| 89 | + enabled: true |
| 90 | + contents: | |
| 91 | + [Unit] |
| 92 | + Description=Download and install crio binaries and configurations. |
| 93 | + After=selinux-install.service |
| 94 | +
|
| 95 | + [Service] |
| 96 | + Type=oneshot |
| 97 | + ExecStartPre=mount /tmp /tmp -o remount,exec,suid |
| 98 | + ExecStartPre=mount -o remount,rw /dev/sda4 /usr |
| 99 | + ExecStartPre=bash -c '\ |
| 100 | + curl --fail --retry 5 --retry-delay 3 --silent --show-error \ |
| 101 | + https://raw.githubusercontent.com/cri-o/packaging/$CRIO_SCRIPT_COMMIT/get |\ |
| 102 | + bash -s -- -t $CRIO_COMMIT' |
| 103 | + ExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist |
| 104 | + ExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf |
| 105 | + ExecStartPre=mv /etc/cni/net.d/10-crio-bridge.conflist.disabled /etc/cni/net.d/10-crio-bridge.conflist |
| 106 | + ExecStart=systemctl enable --now crio.service |
| 107 | + Restart=on-failure |
| 108 | +
|
| 109 | + [Install] |
| 110 | + WantedBy=multi-user.target |
| 111 | + - name: authorized-key.service |
| 112 | + enabled: true |
| 113 | + contents: | |
| 114 | + [Unit] |
| 115 | + Description=Copy authorized keys |
| 116 | + Before=crio-install.service |
| 117 | + After=NetworkManager-wait-online.service |
| 118 | +
|
| 119 | + [Service] |
| 120 | + Type=oneshot |
| 121 | + ExecStart=/bin/sh -c '\ |
| 122 | + /usr/bin/mkdir -m 0700 -p /home/core/.ssh && \ |
| 123 | + /usr/bin/cat /etc/ssh-key-secret/ssh-public \ |
| 124 | + >> /home/core/.ssh/authorized_keys && \ |
| 125 | + /usr/bin/chown -R core:core /home/core/.ssh && \ |
| 126 | + /usr/bin/chmod 0600 /home/core/.ssh/authorized_keys' |
| 127 | +
|
| 128 | + [Install] |
| 129 | + WantedBy=multi-user.target |
0 commit comments