adaptation local
This commit is contained in:
parent
8180e0b5b8
commit
1342530b71
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
ports.j2
|
@ -29,9 +29,8 @@ echo "################################"
|
|||||||
awk -v opt="i" -v lineNo="6" 'NR > lineNo-( opt == "i"? 1 : 0 ){exit};1' /etc/hosts > /tmp/hosts && mv /tmp/hosts /etc/hosts
|
awk -v opt="i" -v lineNo="6" 'NR > lineNo-( opt == "i"? 1 : 0 ){exit};1' /etc/hosts > /tmp/hosts && mv /tmp/hosts /etc/hosts
|
||||||
echo "Création des containers Debian 11 et rocky 8"
|
echo "Création des containers Debian 11 et rocky 8"
|
||||||
echo "################################"
|
echo "################################"
|
||||||
#for x in $(seq 0 4); do docker run -d -p 322$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brcent_n_$x --name centos-$x --hostname centos-$x registry.iutbeziers.fr/centos-ssh ;done
|
for x in $(seq 0 4); do docker run -d -p 322$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brrock_n_$x --name rocky-$x --hostname rocky-$x registry.iut-kourou.local/rockylinux-ssh:8 ;done
|
||||||
for x in $(seq 0 4); do docker run -d -p 322$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brrock_n_$x --name rocky-$x --hostname rocky-$x registry.iutbeziers.fr/rocky8:ssh ;done
|
for x in $(seq 0 4); do docker run -d -p 222$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brddeb_n_$x --name debian-$x --hostname debian-$x registry.iut-kourou.local/debian-ssh:12 ;done
|
||||||
for x in $(seq 0 4); do docker run -d -p 222$x:22 -v /root/.ssh:/root/.ssh --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --net brddeb_n_$x --name debian-$x --hostname debian-$x registry.iutbeziers.fr/debian11:ssh ;done
|
|
||||||
echo "creation des ip des containers dans /etc/hosts"
|
echo "creation des ip des containers dans /etc/hosts"
|
||||||
echo "################################"
|
echo "################################"
|
||||||
for x in $(seq 0 4); do echo "$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rocky-$x) rocky-$x" >> /etc/hosts;done
|
for x in $(seq 0 4); do echo "$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rocky-$x) rocky-$x" >> /etc/hosts;done
|
||||||
|
@ -27,6 +27,4 @@ pip3 install ansible-navigator[ansible-core]
|
|||||||
pip3 install --upgrade git+https://github.com/networkop/docker-topo.git
|
pip3 install --upgrade git+https://github.com/networkop/docker-topo.git
|
||||||
ansible-galaxy collection install arista.eos
|
ansible-galaxy collection install arista.eos
|
||||||
ansible-galaxy collection install community.general
|
ansible-galaxy collection install community.general
|
||||||
#docker pull registry.iutbeziers.fr/ceosimage:4.25.0F
|
|
||||||
#docker pull registry.iutbeziers.fr/debian11:ssh
|
|
||||||
#docker pull registry.iutbeziers.fr/rocky8:ssh
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user