Compare commits
4 Commits
1dc4f98432
...
40f30ce467
Author | SHA1 | Date | |
---|---|---|---|
40f30ce467 | |||
32457f2427 | |||
96c9643753 | |||
700d09d54f |
@ -30,6 +30,7 @@ pvc:
|
|||||||
remote: "GIT_REMOTE"
|
remote: "GIT_REMOTE"
|
||||||
branch: "GIT_BRANCH"
|
branch: "GIT_BRANCH"
|
||||||
clusters_file: "clusters.yml"
|
clusters_file: "clusters.yml"
|
||||||
|
lock_file: "/run/pvcbootstrapd.lock"
|
||||||
cspec_files:
|
cspec_files:
|
||||||
base: "base.yml"
|
base: "base.yml"
|
||||||
pvc: "pvc.yml"
|
pvc: "pvc.yml"
|
||||||
|
@ -70,6 +70,7 @@ def pull_repository(config):
|
|||||||
g.pull(rebase=True, env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
|
g.pull(rebase=True, env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
|
||||||
logger.debug("Performing git submodule update")
|
logger.debug("Performing git submodule update")
|
||||||
g.submodule("update", "--init", env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
|
g.submodule("update", "--init", env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
|
||||||
|
g.submodule("update", env=dict(GIT_SSH_COMMAND=git_ssh_cmd))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn(e)
|
logger.warn(e)
|
||||||
notifications.send_webhook(config, "failure", "Failed to update Git repository")
|
notifications.send_webhook(config, "failure", "Failed to update Git repository")
|
||||||
|
@ -116,12 +116,12 @@ echo
|
|||||||
|
|
||||||
echo "Installing APT dependencies..."
|
echo "Installing APT dependencies..."
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --yes vlan iptables dnsmasq redis python3 python3-pip python3-requests python3-git sqlite3 celery pxelinux syslinux-common live-build debootstrap uuid-runtime qemu-user-static apt-cacher-ng
|
sudo apt-get install --yes vlan iptables dnsmasq redis python3 python3-pip python3-requests python3-git python3-ansible-runner sqlite3 celery pxelinux syslinux-common live-build debootstrap uuid-runtime qemu-user-static apt-cacher-ng
|
||||||
|
|
||||||
echo "Configuring apt-cacher-ng..."
|
echo "Configuring apt-cacher-ng..."
|
||||||
sudo systemctl enable --now apt-cacher-ng
|
sudo systemctl enable --now apt-cacher-ng
|
||||||
if ! grep -q ${upstream_mirror} /etc/apt-cacher-ng/backends_debian; then
|
if ! grep -q ${upstream_mirror} /etc/apt-cacher-ng/backends_debian; then
|
||||||
echo "http://${upstream_mirror}" | sudo tee /etc/apt-cacher-ng/backends_debian &>/dev/null
|
echo "http://${upstream_mirror}" | sudo tee -a /etc/apt-cacher-ng/backends_debian &>/dev/null
|
||||||
sudo systemctl restart apt-cacher-ng
|
sudo systemctl restart apt-cacher-ng
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user