-
Notifications
You must be signed in to change notification settings - Fork 0
/
node1.fcc
70 lines (70 loc) · 2.79 KB
/
node1.fcc
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
68
69
70
variant: fcos
version: 1.4.0
passwd:
users:
- name: core
groups:
- docker
- wheel
- sudo
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINHKcyMU729C1TDw+o+Ubh2Fz9VO11Ir6cOnVd30mKlG p@fedora
storage:
files:
- path: /etc/hostname
overwrite: true
contents:
inline: node1.k8s.local
- path: /etc/hosts
overwrite: true
contents:
inline: |
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.201 node1.k8s.local node1
192.168.1.202 node2.k8s.local node2
192.168.1.203 node3.k8s.local node3
192.168.1.204 node4.k8s.local node4
192.168.1.210 ansible.peter.local ansible
192.168.1.22 amd.peter.local amd
192.168.1.222 truenas.peter.local truenas
- path: /etc/sysctl.d/10-disable-ipv6.conf
contents:
inline: |
# disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.enp0s4.disable_ipv6 = 1
- path: /etc/sysctl.d/99-kubernetes-cri.conf
contents:
inline: |
# Kernel parameters required by the cri-o container engine.
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
#net.bridge.bridge-nf-call-ip6tables = 1
- path: /etc/modules-load.d/crio-net.conf
contents:
inline: |
# Kernel modules required by the cri-o container engine.
overlay
br_netfilter
systemd:
units:
- name: python3-for-ansible.service
enabled: true
contents: |
[Unit]
Requires=network-online.target
After=network-online.target
Before=sshd.service
[Service]
Type=oneshot
ExecCondition=/usr/bin/test ! -f /etc/python3-for-ansible.done
ExecStart=/usr/bin/sed -i '/\\[updates\\]/,/^\\[/ s/^enabled=.*$/enabled=0/' /etc/yum.repos.d/fedora-updates.repo
ExecStart=/usr/bin/rpm-ostree install python3 libselinux-python3
ExecStart=/usr/bin/sed -i '/\\[updates\\]/,/^\\[/ s/^enabled=.*$/enabled=1/' /etc/yum.repos.d/fedora-updates.repo
ExecStart=/usr/bin/sed -i '/^\\[updates\\]/a exclude=libxcrypt-compat* mpdecimal* python-pip-wheel* python-setuptools-wheel* python-unversioned-command* python3* python3-libs* python3-selinux*' /etc/yum.repos.d/fedora-updates.repo
ExecStartPost=/usr/bin/touch /etc/python3-for-ansible.done
ExecStartPost=/usr/sbin/shutdown -r now
[Install]
WantedBy=multi-user.target