Compare commits
5 Commits
v0.0.3z-ps
...
v0.0.4d-ps
Author | SHA1 | Date | |
---|---|---|---|
|
5acca816af | ||
|
394a8d8cd8 | ||
|
ff03ee66a5 | ||
|
1e30fd87a9 | ||
|
924a11f843 |
131
goss/s-fog.yaml
131
goss/s-fog.yaml
@@ -1,68 +1,77 @@
|
|||||||
file:
|
file:
|
||||||
/tftpboot/default.ipxe:
|
/tftpboot/default.ipxe:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains: []
|
contains: []
|
||||||
|
contents: null
|
||||||
package:
|
package:
|
||||||
apache2:
|
apache2:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 2.4.57-2
|
- 2.4.56-1~deb11u2
|
||||||
isc-dhcp-server:
|
isc-dhcp-server:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 4.4.3-P1-2
|
- 4.4.1-2.3+deb11u2
|
||||||
mariadb-server:
|
mariadb-server:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 1:10.11.4-1~deb12u1
|
- 1:10.5.21-0+deb11u1
|
||||||
tftpd-hpa:
|
tftpd-hpa:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 5.2+20150808-1.4
|
- 5.2+20150808-1.2
|
||||||
port:
|
port:
|
||||||
tcp:80:
|
tcp:80:
|
||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- 0.0.0.0
|
- 0.0.0.0
|
||||||
tcp:443:
|
tcp:443:
|
||||||
listening: true
|
listening: true
|
||||||
ip:
|
ip:
|
||||||
- 0.0.0.0
|
- 0.0.0.0
|
||||||
|
udp:67:
|
||||||
|
listening: true
|
||||||
|
ip:
|
||||||
|
- 0.0.0.0
|
||||||
|
udp:69:
|
||||||
|
listening: true
|
||||||
|
ip:
|
||||||
|
- 0.0.0.0
|
||||||
service:
|
service:
|
||||||
apache2:
|
apache2:
|
||||||
enabled: true
|
enabled: true
|
||||||
running: true
|
running: true
|
||||||
isc-dhcp-server:
|
isc-dhcp-server:
|
||||||
enabled: true
|
enabled: true
|
||||||
running: true
|
running: true
|
||||||
nfs-server:
|
nfs-server:
|
||||||
enabled: true
|
enabled: true
|
||||||
running: true
|
running: true
|
||||||
tftpd-hpa:
|
tftpd-hpa:
|
||||||
enabled: true
|
enabled: true
|
||||||
running: true
|
running: true
|
||||||
command:
|
command:
|
||||||
ping -c 4 192.168.99.99:
|
ping -c 4 192.168.99.99:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 0% packet loss
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
ping -c 4 google.fr:
|
ping -c 4 google.fr:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 0% packet loss
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
process:
|
process:
|
||||||
apache2:
|
apache2:
|
||||||
running: true
|
running: true
|
||||||
interface:
|
interface:
|
||||||
enp0s9:
|
enp0s9:
|
||||||
exists: true
|
exists: true
|
||||||
addrs:
|
addrs:
|
||||||
- 172.16.64.16/24
|
- 172.16.64.16/24
|
||||||
|
@@ -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"
|
||||||
@@ -93,12 +93,12 @@ fi
|
|||||||
hostname=$(hostname)
|
hostname=$(hostname)
|
||||||
echo "${HOST}" > /etc/hostname
|
echo "${HOST}" > /etc/hostname
|
||||||
hostnamectl set-hostname "${HOST}"
|
hostnamectl set-hostname "${HOST}"
|
||||||
sed -i "s/${hostname}/${HOST}/g" /etc/host{s,name}
|
sed -i "s/${hostname}/${HOST}/g" /etc/hosts
|
||||||
echo "vous pouvez redemarrer ..."
|
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
|
||||||
|
@@ -4,11 +4,11 @@
|
|||||||
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
||||||
## Version: 1.5.10
|
## Version: 1.5.10
|
||||||
## 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.16'
|
||||||
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'
|
||||||
routeraddress='172.16.64.254'
|
routeraddress='172.16.64.254'
|
||||||
plainrouter='172.16.64.254'
|
plainrouter='172.16.64.254'
|
||||||
dnsaddress='172.16.0.1'
|
dnsaddress='172.16.0.1'
|
||||||
@@ -34,11 +34,12 @@ caCreated='yes'
|
|||||||
httpproto='https'
|
httpproto='https'
|
||||||
startrange='172.16.64.120'
|
startrange='172.16.64.120'
|
||||||
endrange='172.16.64.140'
|
endrange='172.16.64.140'
|
||||||
|
bootfilename='undionly.kpxe'
|
||||||
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftp-hpa tftpd-hpa unzip vsftpd wget zlib1g'
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftp-hpa tftpd-hpa unzip vsftpd wget zlib1g'
|
||||||
noTftpBuild=''
|
noTftpBuild=''
|
||||||
tftpAdvOpts=''
|
tftpAdvOpts=''
|
||||||
sslpath='/opt/fog/snapins/ssl/'
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
backupPath='/home/'
|
#backupPath='/home/'
|
||||||
armsupport='0'
|
armsupport='0'
|
||||||
php_ver='7.4'
|
php_ver='7.4'
|
||||||
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
|
@@ -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