Compare commits
16 Commits
v0.0.6p-ml
...
v0.0.6u-em
Author | SHA1 | Date | |
---|---|---|---|
41bd6ac61e | |||
7ce68f6293 | |||
bac2f067a9 | |||
d6d4991c16 | |||
2f7544c3a1 | |||
c83ba7c977 | |||
1532c8bdd0 | |||
08c73d0416 | |||
083b112d03 | |||
252618618b | |||
34f3adb117 | |||
3565d85543 | |||
de757a6b55 | |||
e38f8c6da5 | |||
40eadcc37a | |||
68c05b0794 |
@ -35,23 +35,22 @@ table filter {
|
|||||||
proto (udp tcp) dport domain ACCEPT;
|
proto (udp tcp) dport domain ACCEPT;
|
||||||
proto udp dport bootps ACCEPT;
|
proto udp dport bootps ACCEPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
# interface réseau
|
# interface réseau
|
||||||
interface $DEV_WORLD {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
# the rest is dropped by the above policy
|
# the rest is dropped by the above policy
|
||||||
}#FIN INPUT
|
}#FIN INPUT
|
||||||
|
|
||||||
# outgoing connections are not limited
|
# outgoing connections are not limited
|
||||||
chain OUTPUT {policy ACCEPT;
|
chain OUTPUT {
|
||||||
|
policy ACCEPT;
|
||||||
|
# interface $DEV_VPN proto ssh dport 22 ACCEPT;
|
||||||
|
|
||||||
}#FIN OUTPUT
|
}#FIN OUTPUT
|
||||||
|
|
||||||
chain FORWARD {
|
chain FORWARD {
|
||||||
policy ACCEPT;
|
policy ACCEPT;
|
||||||
|
|
||||||
proto icmp icmp-type echo-request ACCEPT;
|
proto icmp icmp-type echo-request ACCEPT;
|
||||||
}
|
|
||||||
# connection tracking
|
# connection tracking
|
||||||
mod state state INVALID DROP;
|
mod state state INVALID DROP;
|
||||||
mod state state (ESTABLISHED RELATED) ACCEPT;
|
mod state state (ESTABLISHED RELATED) ACCEPT;
|
||||||
|
0
roles/peertube-k3s/README.md
Normal file
0
roles/peertube-k3s/README.md
Normal file
23
roles/peertube-k3s/tasks/main.yml
Normal file
23
roles/peertube-k3s/tasks/main.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- name: mise a jour de resolv.conf...
|
||||||
|
copy:
|
||||||
|
src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf
|
||||||
|
dest: /etc/
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: installation de docker...
|
||||||
|
shell: curl https://releases.rancher.com/install-docker/20.10.sh | sh
|
||||||
|
|
||||||
|
- name: attente de l'installation...
|
||||||
|
wait_for:
|
||||||
|
timeout: 30
|
||||||
|
host: localhost
|
||||||
|
|
||||||
|
- name: installation de k3s...
|
||||||
|
shell: curl -sfL https://get.k3s.io | sh -s - --docker
|
||||||
|
|
||||||
|
- name: mise a jour de resolv.conf...
|
||||||
|
copy:
|
||||||
|
src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf
|
||||||
|
dest: /etc/
|
||||||
|
mode: '0644'
|
1
roles/peertube/files/resolv.conf
Normal file
1
roles/peertube/files/resolv.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
nameserver 192.168.99.99
|
@ -71,7 +71,7 @@ mail:
|
|||||||
enbled: true
|
enbled: true
|
||||||
config:
|
config:
|
||||||
general:
|
general:
|
||||||
ALLOWED_SENDER_DOMAINS: # should be the same as your web domain
|
ALLOWED_SENDER_DOMAINS: "yes"
|
||||||
DKIM_AUTOGENERATE: "yes"
|
DKIM_AUTOGENERATE: "yes"
|
||||||
opendkim:
|
opendkim:
|
||||||
RequireSafeKeys: "no"
|
RequireSafeKeys: "no"
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: installation de docker...
|
|
||||||
shell: curl https://releases.rancher.com/install-docker/20.10.sh | sh
|
|
||||||
|
|
||||||
- name: installation de k3s...
|
|
||||||
shell: curl -sfL https://get.k3s.io | sh -s - --docker
|
|
||||||
|
|
||||||
- name: création du répertoire du dépot peertube...
|
- name: création du répertoire du dépot peertube...
|
||||||
file:
|
file:
|
||||||
path: /root/tools/peertube
|
path: /root/tools/peertube
|
||||||
@ -16,6 +10,7 @@
|
|||||||
repo: https://github.com/Elam-Monnot/Peertube-helm.git
|
repo: https://github.com/Elam-Monnot/Peertube-helm.git
|
||||||
dest: /root/tools/peertube
|
dest: /root/tools/peertube
|
||||||
clone: yes
|
clone: yes
|
||||||
|
force: yes
|
||||||
|
|
||||||
- name: copie de values.yaml...
|
- name: copie de values.yaml...
|
||||||
copy:
|
copy:
|
||||||
@ -27,4 +22,10 @@
|
|||||||
shell: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
shell: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||||
|
|
||||||
- name: installation de peertube...
|
- name: installation de peertube...
|
||||||
shell: helm repo add https://charts.bitnami.com/bitnami && helm repo add https://bokysan.github.io/docker-postfix && helm dependency build /root/tools/peertube/helm/ && helm install --create-namesapce -n peertube peertube-gsb /root/tools/peertube/helm
|
shell: helm repo add postgresql https://charts.bitnami.com/bitnami && helm repo add redis https://charts.bitnami.com/bitnami && helm repo add mail https://bokysan.github.io/docker-postfix
|
||||||
|
|
||||||
|
- name: exposition du cluster...
|
||||||
|
shell: export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||||
|
|
||||||
|
- name: lancement du helm chart peertube...
|
||||||
|
shell: helm install --create-namespace -n peertube peertube-gsb /root/tools/peertube/helm
|
||||||
|
@ -14,4 +14,4 @@ iface enp0s3 inet static
|
|||||||
allow-hotplug enp0s8
|
allow-hotplug enp0s8
|
||||||
iface enp0s8 inet static
|
iface enp0s8 inet static
|
||||||
address 192.168.100.20/24
|
address 192.168.100.20/24
|
||||||
post-up systemctl start k3s
|
post-up systemctl start k3s && sleep 20 && export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- peertube
|
|
||||||
- post
|
- post
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
|
- peertube-k3s
|
||||||
|
- peertube
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#recuperation du fichier de config
|
#recuperation du fichier de config
|
||||||
wget http://r-vp1.gsb.adm:8800/wg0-b.conf
|
wget http://r-vp1.gsb.adm:8000/wg0-b.conf
|
||||||
#renomage fichier et mv
|
#renomage fichier et mv
|
||||||
mv ./wg0-b.conf /etc/wireguard/wg0.conf
|
mv ./wg0-b.conf /etc/wireguard/wg0.conf
|
||||||
#activation interface wg0
|
#activation interface wg0
|
||||||
|
Reference in New Issue
Block a user