-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup, default discard container, move ssh config to .ssh, added he…
…lp to shutdown Signed-off-by: Kowalski Dragon (kowalski7cc) <[email protected]>
- Loading branch information
1 parent
57c413d
commit 3b3143a
Showing
9 changed files
with
61 additions
and
37 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
File renamed without changes.
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[defaults] | ||
private_key_file = ./ssh/ansible_ed25519 | ||
private_key_file = ./.ssh/ansible_ed25519 | ||
remote_user = ansible | ||
inventory = ./inventory | ||
host_key_checking = false | ||
|
||
[ssh_connection] | ||
ssh_executable = ./podssh |
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
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
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 |
---|---|---|
@@ -1,16 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
#podman unshare --rootless-cni ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $@ # -i keys/ansible_ed25519 -o User=ansible $@ | ||
#podman run --rm -it --network podlab podlab:1.0.1 ssh $@ | ||
|
||
set -e | ||
. setenv | ||
|
||
# Start bastion pod | ||
# if [[ -z $(podman container list -a -f "name=$NAME-infra-bastion" --format {{.ID}}) ]]; then | ||
# POD=`podman run -d --rm --label "$LABEL.infra=bastion" --network $NETWORK --name $NAME-infra-bastion -p 127.0.0.1:2222:22 $IMAGE_NAME:$VERSION sh -c "ssh-keygen -A; /usr/sbin/sshd -D"` | ||
# fi | ||
|
||
|
||
#ssh -F ssh_config $@ | ||
[ $# -eq 0 ] && (ssh; exit $) | ||
podman unshare --rootless-cni ssh -F ssh_config $@ | ||
podman unshare --rootless-cni ssh -F .ssh/config $@ |
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
NAME="podlab" | ||
VERSION="1.1.0" | ||
VERSION="1.2.0" | ||
LABEL="org.$NAME" | ||
IMAGE_NAME="$NAME" | ||
NETWORK="$NAME" | ||
DISTRONAME="podLAB pod image" | ||
# Other tested images: "fedora:38" | ||
BASE_IMAGE="quay.io/centos/centos:stream9" | ||
#BASE_IMAGE="fedora" | ||
|
||
SSH_KEY_NAME="ansible_ed25519" | ||
SSH_KEY_TYPE="ed25519" | ||
SSH_PATH="ssh" | ||
SSH_PATH=".ssh" | ||
|
||
STUDENT_USERNAME='redhat' | ||
STUDENT_PASSWORD='$6$CoPu5pQehb0vQnWN$39y.7JoLr5A1no/jvjAsRGrBrYUufd43JVZiCPe8cHkz3M.ebOarMl/kc2QV3.sA8z7.4UvMzyJwCXcx7NYfz0' | ||
STUDENT_USERNAME='student' | ||
STUDENT_PASSWORD='student' |
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
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