Skip to content

Commit 276bf12

Browse files
authored
added improvement in operator package update so the operator host is available faster (#29)
1 parent 921792d commit 276bf12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cloudinit/operator.template.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#cloud-config
55
package_upgrade: ${operator_upgrade}
6-
packages:
7-
- python3
86
timezone: ${timezone}
97
write_files:
108
# setup script

scripts/operator.template.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
55

66
if [ ${ol} = 8 ]; then
7-
dnf -y upgrade --security
7+
dnf makecache
8+
dnf config-manager --enable ol8_developer && dnf -y install python3-oci-cli
89
else
910
yum -y -t update --security
11+
yum install -y python3
12+
pip3 install oci-cli
1013
fi
1114

1215
sed -i -e "s/autoinstall\s=\sno/autoinstall = yes/g" /etc/uptrack/uptrack.conf
13-
uptrack-upgrade -y
14-
pip3 install oci-cli
16+
uptrack-upgrade -y

0 commit comments

Comments
 (0)