Salt-Minion for use with salt-formula-x (saltx, Salt-Master) , based on AlmaLinux (RHEL family)
222
An independent salt minion container image for use with salt-formula-x (Salt-Master) and the Compose file Docker/Podman Compose file for Salt
podman build . -t hammadrauf/saltm
OR
docker build . -t hammadrauf/saltm
podman run -d --systemd=true --name saltm01 --hostname saltm01 -it hammadrauf/saltm
podman run -d --name saltm01 --hostname saltm01 -it hammadrauf/saltm
OR
docker run -d --privileged --name saltm01 --hostname saltm01 -it hammadrauf/saltm
podman run -d --name saltm01 --hostname saltm01 -it quay.io/hammadrauf/saltm
podman run -d --name saltm01 --hostname saltm01 -e SSH_PUB_KEY="$(cat ~/.ssh/id_rsa_salt.pub)" -it quay.io/hammadrauf/saltm
podman exec -it saltm01 /bin/bash
ssh-keygen -R localhost
OR
mv ~/.ssh/known_hosts ~/.ssh/known_hosts.old
ssh root@localhost -p 2232
podman stop saltm01
OR
podman container stop saltm01
podman rm saltm01
OR
podman container rm saltm01
podman image rm hammadrauf/saltm
OR
docker kill saltm01
docker rm saltm01
docker image rm hammadrauf/saltm
podman image ls
podman image rm <Image-ID01> [<Image-ID02>/<ImageName-02> ...}
You should have an account with DockerHub.io or Quay.io to push built images.
podman push ....
The best way to use this minion in combination with the hammadrauf/saltx Salt-Master is to use the Docker/Podman Compose file at Docker/Podman Compose file for Salt
$ cd podman-compose-folder
$ podman compose up -d
OR
$ docker compose up -d
After testing is complete, bring down the containers with the following command.
podman compose down
OR
docker compose down
x
├── formula
│ ├── ntp
│ │ ├── init.sls
│ │ └── test
│ │ └── ntp_spec.rb
│ └── timezone
│ ├── init.sls
│ └── test
│ └── timezone_spec.rb
├── pillar
│ ├── ntp.sls
│ ├── timezone.sls
│ └── top.sls
└── top.sls
require '/opt/serverspec/spec_helper'
cd /srv/salt/formula
rspec timezone/test/timezone_spec.rb
rspec ntp/test/ntp_spec.rb
$ /opt/serverspec/run_all_tests.sh
OR
$ run_all_tests.sh
Content type
Image
Digest
sha256:175a325e2…
Size
144.6 MB
Last updated
2 days ago
docker pull hammadrauf/saltm