diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92e1dd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +ports.j2 diff --git a/create-cont.sh b/create-cont.sh index 301c627..f9ce085 100755 --- a/create-cont.sh +++ b/create-cont.sh @@ -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 echo "Création des containers Debian 11 et rocky 8" 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.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.iutbeziers.fr/debian11: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 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 echo "creation des ip des containers dans /etc/hosts" echo "################################" for x in $(seq 0 4); do echo "$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rocky-$x) rocky-$x" >> /etc/hosts;done diff --git a/install_ansible.sh b/install_ansible.sh index 95b092d..eace9f6 100755 --- a/install_ansible.sh +++ b/install_ansible.sh @@ -27,6 +27,4 @@ pip3 install ansible-navigator[ansible-core] pip3 install --upgrade git+https://github.com/networkop/docker-topo.git ansible-galaxy collection install arista.eos 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 +