Added PiHoleCT
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' ]
|
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' ]
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'LXCBuilder' }
|
agent { label 'LXCBuilder' }
|
||||||
|
|||||||
@@ -870,6 +870,7 @@ files:
|
|||||||
variants:
|
variants:
|
||||||
- imgbuilder
|
- imgbuilder
|
||||||
- mysql
|
- mysql
|
||||||
|
- pihole
|
||||||
|
|
||||||
#FilesForJenkinsVariant
|
#FilesForJenkinsVariant
|
||||||
- path: /root/ReadMe
|
- path: /root/ReadMe
|
||||||
@@ -893,6 +894,13 @@ files:
|
|||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
#FileForPihole
|
||||||
|
- path: /opt/Setup
|
||||||
|
generator: copy
|
||||||
|
source: CT-Files/pihole
|
||||||
|
variants:
|
||||||
|
- pihole
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
manager: apt
|
manager: apt
|
||||||
update: true
|
update: true
|
||||||
@@ -990,6 +998,37 @@ packages:
|
|||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
#pihole pkgs
|
||||||
|
- packages:
|
||||||
|
- grep
|
||||||
|
- dnsutils
|
||||||
|
- git
|
||||||
|
- iproute2
|
||||||
|
- whiptail
|
||||||
|
- cron
|
||||||
|
- curl
|
||||||
|
- iputils-ping
|
||||||
|
- lsof
|
||||||
|
- netcat
|
||||||
|
- psmisc
|
||||||
|
- sudo
|
||||||
|
- unzip
|
||||||
|
- idn2
|
||||||
|
- sqlite3
|
||||||
|
- libcap2-bin
|
||||||
|
- dns-root-data
|
||||||
|
- libcap2
|
||||||
|
- lighttpd
|
||||||
|
- php-common
|
||||||
|
- php-cli
|
||||||
|
- php-cgi
|
||||||
|
- php-sqlite3
|
||||||
|
- php-xml
|
||||||
|
- php-intl
|
||||||
|
action: install
|
||||||
|
variants:
|
||||||
|
- pihole
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
- name: sources.list
|
- name: sources.list
|
||||||
url: |-
|
url: |-
|
||||||
@@ -1051,6 +1090,7 @@ actions:
|
|||||||
rm /opt/Setup/Scripts/Init.sh
|
rm /opt/Setup/Scripts/Init.sh
|
||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
|
- pihole
|
||||||
|
|
||||||
- trigger: post-packages
|
- trigger: post-packages
|
||||||
action: |-
|
action: |-
|
||||||
|
|||||||
7
CT-Files/pihole/Configs/setupVars.conf
Normal file
7
CT-Files/pihole/Configs/setupVars.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
WEBPASSWORD=
|
||||||
|
QUERY_LOGGING=true
|
||||||
|
INSTALL_WEB=true
|
||||||
|
DNSMASQ_LISTENING=single
|
||||||
|
PIHOLE_DNS_1=192.168.2.1
|
||||||
|
PIHOLE_DNS_2=192.168.2.1
|
||||||
|
TEMPERATUREUNIT=C
|
||||||
5
CT-Files/pihole/Scripts/FirstSetup.sh
Normal file
5
CT-Files/pihole/Scripts/FirstSetup.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Finialize instaltation
|
||||||
|
/etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended
|
||||||
|
#Set password
|
||||||
|
pihole -a -p
|
||||||
6
CT-Files/pihole/Scripts/Init.sh
Normal file
6
CT-Files/pihole/Scripts/Init.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
mkdir -p /etc/pihole
|
||||||
|
mv /opt/Setup/Configs/setupVars.conf /etc/pihole/setupVars.conf
|
||||||
|
echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
|
||||||
|
ln -s /etc/systemd/system/pihole-FTL.service /etc/systemd/system/multi-user.target.wants/pihole-FTL.service
|
||||||
|
curl -sSL https://install.pi-hole.net | curl -L https://install.pi-hole.net | bash /dev/stdin --unattended
|
||||||
@@ -22,9 +22,10 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
|
|||||||
| jenkinsBuilder | Debian | Basic node for Jenkins |
|
| jenkinsBuilder | Debian | Basic node for Jenkins |
|
||||||
| imgbuilder | Debian | LXC template builder node for Jenkins |
|
| imgbuilder | Debian | LXC template builder node for Jenkins |
|
||||||
| mysql | Debian | Mysql server with PhpMyadmin |
|
| mysql | Debian | Mysql server with PhpMyadmin |
|
||||||
|
| pihole | Debian | Pihole CT |
|
||||||
| gitea | Alpine | Gitea server |
|
| gitea | Alpine | Gitea server |
|
||||||
| nginx | Alpine | Nginx server for reverse-proxy use |
|
| nginx | Alpine | Nginx server for reverse-proxy use |
|
||||||
|
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
Domoticz
|
Domoticz
|
||||||
@@ -42,8 +43,8 @@ NodeRed
|
|||||||
Omada
|
Omada
|
||||||
Unifi
|
Unifi
|
||||||
Docker
|
Docker
|
||||||
PiHole
|
|
||||||
dDNS
|
|
||||||
Colabora
|
Colabora
|
||||||
MailBackup*
|
MailBackup*
|
||||||
FileShelter/transfer.sh
|
FileShelter/transfer.sh
|
||||||
@@ -79,3 +80,5 @@ Then select the created credential and click save
|
|||||||
2. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
|
2. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
# nginx
|
# nginx
|
||||||
1. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
|
1. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
|
# pihole
|
||||||
|
1. Run the FistRun scipt in the container `ash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
Reference in New Issue
Block a user