-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Add logics to cover podman deployments"
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
set +x | ||
sudo apt-get -o DPkg::Lock::Timeout=300 update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get \ | ||
-o DPkg::Lock::Timeout=300 install python3-pip docker.io -y | ||
-o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 | ||
chmod +x ./kind | ||
sudo mv ./kind /usr/local/bin/kind | ||
|
@@ -17,6 +17,8 @@ | |
sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf | ||
sudo systemctl daemon-reload | ||
sudo systemctl restart docker | ||
sudo podman ps -aq |xargs sudo podman stop || true | ||
sudo podman ps -aq |xargs sudo podman rm || true | ||
sudo rm -rfv /data /tmp/xtesting* | ||
sudo apt-get install ansible patch -y | ||
rm -rf ~/.ansible/roles/collivier.xtesting | ||
|
@@ -39,7 +41,7 @@ | |
ssh [email protected] << EOF | ||
sudo apt-get -o DPkg::Lock::Timeout=300 update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get \ | ||
-o DPkg::Lock::Timeout=300 install python3-pip docker.io -y | ||
-o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 | ||
chmod +x ./kind | ||
sudo mv ./kind /usr/local/bin/kind | ||
|
@@ -50,6 +52,8 @@ | |
sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf | ||
sudo systemctl daemon-reload | ||
sudo systemctl restart docker | ||
sudo podman ps -aq |xargs sudo podman stop || true | ||
sudo podman ps -aq |xargs sudo podman rm || true | ||
sudo rm -rfv /data /tmp/xtesting* | ||
EOF | ||
sudo apt-get install ansible patch -y | ||
|
@@ -114,6 +118,7 @@ | |
name: 'playbook' | ||
playbook: | ||
- all | ||
- podman | ||
- proxy | ||
- proxy2 | ||
- radosgw | ||
|