Compare commits
2 Commits
v0.0.3z-ps
...
v0.0.4b-ps
Author | SHA1 | Date | |
---|---|---|---|
|
1e30fd87a9 | ||
|
924a11f843 |
@@ -29,9 +29,9 @@ WPREL=6.4.2
|
|||||||
#v6.1.1 le 17/01/2023
|
#v6.1.1 le 17/01/2023
|
||||||
str5="wget -nc -4 https://fr.wordpress.org/latest-fr_FR.tar.gz -O wordpress-6.4.2-fr_FR.tar.gz"
|
str5="wget -nc -4 https://fr.wordpress.org/latest-fr_FR.tar.gz -O wordpress-6.4.2-fr_FR.tar.gz"
|
||||||
|
|
||||||
str6="curl -L -4 https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -o goss"
|
str6="wget -nc -4 https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -O goss"
|
||||||
|
|
||||||
str7="curl -L -4 https://github.com/goss-org/goss/releases/latest/download/dgoss -o dgoss"
|
str7="wget -nc -4 https://github.com/goss-org/goss/releases/latest/download/dgoss -O dgoss"
|
||||||
|
|
||||||
#GESTSUPREL=3.2.30
|
#GESTSUPREL=3.2.30
|
||||||
#str8="wget -nc -4 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
#str8="wget -nc -4 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
||||||
@@ -59,7 +59,7 @@ ${str7}
|
|||||||
|
|
||||||
chmod +x ./goss ./dgoss
|
chmod +x ./goss ./dgoss
|
||||||
|
|
||||||
curl -L -4 https://get.docker.com -o getdocker.sh
|
wget -nc -4 https://get.docker.com -O getdocker.sh
|
||||||
chmod +x ./getdocker.sh
|
chmod +x ./getdocker.sh
|
||||||
|
|
||||||
wget -nc -4 https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 -O mkcert
|
wget -nc -4 https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 -O mkcert
|
||||||
@@ -81,7 +81,7 @@ cd "${STOREREP}" || exit 2
|
|||||||
bash getall
|
bash getall
|
||||||
cp goss /usr/local/bin
|
cp goss /usr/local/bin
|
||||||
|
|
||||||
(cat <<EOT > "${STOREREP}/inst1"
|
(cat <<'EOT' > "${STOREREP}/inst1"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [[ -z ${HOST+x} ]]; then
|
if [[ -z ${HOST+x} ]]; then
|
||||||
echo "erreur : variable HOST indefinie"
|
echo "erreur : variable HOST indefinie"
|
||||||
@@ -98,7 +98,7 @@ echo "vous pouvez redemarrer ..."
|
|||||||
EOT
|
EOT
|
||||||
)
|
)
|
||||||
|
|
||||||
(cat <<EOT > "${STOREREP}/inst2"
|
(cat <<'EOT' > "${STOREREP}/inst2"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p ~/tools/ansible ; cd ~/tools/ansible
|
mkdir -p ~/tools/ansible ; cd ~/tools/ansible
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
## Install time: Mon Jan 15 23:16:31 2024
|
## Install time: Mon Jan 15 23:16:31 2024
|
||||||
ipaddress='172.16.0.8'
|
ipaddress='172.16.0.8'
|
||||||
copybackold='0'
|
copybackold='0'
|
||||||
interface='eth2'
|
interface='enp0s9'
|
||||||
submask='255.255.255.0'
|
submask='255.255.255.0'
|
||||||
hostname='s-fog.gsb.lan'
|
hostname='s-fog.gsb.lan'
|
||||||
routeraddress='172.16.64.254'
|
routeraddress='172.16.64.254'
|
||||||
|
@@ -27,23 +27,28 @@
|
|||||||
- vsftpd
|
- vsftpd
|
||||||
- wget
|
- wget
|
||||||
|
|
||||||
|
- name: creation /root/tmp
|
||||||
|
file:
|
||||||
|
path: /root/tmp
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: fichier config fogsettings
|
- name: fichier config fogsettings
|
||||||
copy:
|
copy:
|
||||||
src: fogsettings
|
src: fogsettings
|
||||||
dest: /tmp/
|
dest: /root/tmp/
|
||||||
|
|
||||||
- name: Récupération archive d'installation Fog
|
- name: Récupération archive d'installation Fog
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ depl_url }}/{{ depl_fog }}"
|
url: "{{ depl_url }}/{{ depl_fog }}"
|
||||||
dest: "/tmp/"
|
dest: "/root/tmp/"
|
||||||
|
|
||||||
- name: Décompression de l'archive
|
- name: Décompression de l'archive
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "/tmp/{{ depl_fog }}"
|
src: "/root/tmp/{{ depl_fog }}"
|
||||||
dest: "/tmp/"
|
dest: "/root/tmp/"
|
||||||
|
|
||||||
#- name: Exécution du script d'installation Fog
|
- name: Exécution du script d'installation Fog
|
||||||
# ansible.builtin.shell: sudo bash /tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /tmp/fogsettings -y
|
ansible.builtin.shell: sudo bash /root/tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /root/tmp/fogsettings -y
|
||||||
# args:
|
args:
|
||||||
# chdir: "/tmp/fogproject-1.5.10/"
|
chdir: "/root/tmp/fogproject-1.5.10/"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user