Add python3 install
This commit is contained in:
25
ignition/base-install-python3.bu
Normal file
25
ignition/base-install-python3.bu
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
variant: fcos
|
||||||
|
version: 1.6.0
|
||||||
|
|
||||||
|
systemd:
|
||||||
|
units:
|
||||||
|
# Install Python3
|
||||||
|
- name: rpm-ostree-install-python3.service
|
||||||
|
enabled: true
|
||||||
|
contents: |
|
||||||
|
[Unit]
|
||||||
|
Description=Install Python3
|
||||||
|
Wants=network-online.target
|
||||||
|
After=ignition-start-config.service
|
||||||
|
Before=zincati.service
|
||||||
|
ConditionPathExists=!/var/lib/%N.stamp
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/rpm-ostree install python3
|
||||||
|
ExecStart=/usr/bin/touch /var/lib/%N.stamp
|
||||||
|
ExecStart=/usr/bin/systemctl --no-block reboot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
14
ignition/base-install-python3.ign
Normal file
14
ignition/base-install-python3.ign
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ignition": {
|
||||||
|
"version": "3.5.0"
|
||||||
|
},
|
||||||
|
"systemd": {
|
||||||
|
"units": [
|
||||||
|
{
|
||||||
|
"contents": "[Unit]\nDescription=Install Python3\nWants=network-online.target\nAfter=ignition-start-config.service\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/rpm-ostree install python3\nExecStart=/usr/bin/touch /var/lib/%N.stamp\nExecStart=/usr/bin/systemctl --no-block reboot\n\n[Install]\nWantedBy=multi-user.target",
|
||||||
|
"enabled": true,
|
||||||
|
"name": "rpm-ostree-install-python3.service"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user