Compare commits
3 Commits
8b47af2ca2
...
16027275ce
Author | SHA1 | Date |
---|---|---|
|
16027275ce | |
|
a36668e70c | |
|
9be2550b62 |
|
@ -20,23 +20,41 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
stage('Stop primary container') {
|
||||
steps {
|
||||
sh 'docker compose down'
|
||||
sh 'sleep 5'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Start primary container') {
|
||||
steps {
|
||||
sh 'docker compose down'
|
||||
sh 'docker compose up -d --no-color primary'
|
||||
sh 'docker compose ps'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Create contexts') {
|
||||
steps {
|
||||
sh 'docker context ls | grep pi502 || docker context create pi502 --docker "host=ssh://pi502.in.thelinuxpro.net"'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Stop secondary container') {
|
||||
steps {
|
||||
sh 'docker --context pi502 compose down'
|
||||
sh 'sleep 5'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Start secondary container') {
|
||||
steps {
|
||||
sh 'docker --context pi502 compose up -d --no-color secondary'
|
||||
sh 'docker --context pi502 compose ps'
|
||||
}
|
||||
}
|
||||
|
||||
stage('test primary dns') {
|
||||
steps {
|
||||
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.80'
|
||||
|
|
|
@ -18,7 +18,7 @@ services:
|
|||
container_name: ns1
|
||||
build:
|
||||
dockerfile: Dockerfile.primary
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240513.2.1
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:240514.2.1
|
||||
restart: always
|
||||
user: root
|
||||
environment:
|
||||
|
@ -41,7 +41,7 @@ services:
|
|||
container_name: ns2
|
||||
build:
|
||||
dockerfile: Dockerfile.secondary
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240513.2.1
|
||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:240514.2.1
|
||||
restart: always
|
||||
user: root
|
||||
environment:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$TTL 3600
|
||||
@ IN SOA in.thelinuxpro.net. hostmaster.in.thelinuxpro.net. (
|
||||
24051301 ; serial
|
||||
24051401 ; serial
|
||||
21600 ; refresh after 6 hours
|
||||
3600 ; retry after 1 hour
|
||||
604800 ; expire after 1 week
|
||||
|
@ -8,16 +8,115 @@ $TTL 3600
|
|||
;
|
||||
@ IN NS ns1.thelinuxpro.net.
|
||||
@ IN NS ns2.thelinuxpro.net.
|
||||
;
|
||||
;;; 10.200.53
|
||||
241.53 IN PTR dns01.in.thelinuxpro.net.
|
||||
242.53 IN PTR dns02.in.thelinuxpro.net.
|
||||
243.53 IN PTR dns03.in.thelinuxpro.net.
|
||||
244.53 IN PTR 10-200-53-244.in.thelinuxpro.net.
|
||||
245.53 IN PTR 10-200-53-245.in.thelinuxpro.net.
|
||||
246.53 IN PTR 10-200-53-246.in.thelinuxpro.net.
|
||||
247.53 IN PTR 10-200-53-247.in.thelinuxpro.net.
|
||||
248.53 IN PTR 10-200-53-248.in.thelinuxpro.net.
|
||||
249.53 IN PTR 10-200-53-249.in.thelinuxpro.net.
|
||||
250.53 IN PTR pihole.in.thelinuxpro.net.
|
||||
251.53 IN PTR 1.ntp.in.thelinuxpro.net.
|
||||
252.53 IN PTR 2.ntp.in.thelinuxpro.net.
|
||||
253.53 IN PTR 10-200-53-253.in.thelinuxpro.net.
|
||||
254.53 IN PTR gw53.in.thelinuxpro.net.
|
||||
;;; 10.200.99
|
||||
192.99 IN PTR dhcp-10-200-99-192.in.thelinuxpro.net.
|
||||
193.99 IN PTR dhcp-10-200-99-193.in.thelinuxpro.net.
|
||||
194.99 IN PTR dhcp-10-200-99-194.in.thelinuxpro.net.
|
||||
195.99 IN PTR dhcp-10-200-99-195.in.thelinuxpro.net.
|
||||
196.99 IN PTR dhcp-10-200-99-196.in.thelinuxpro.net.
|
||||
197.99 IN PTR dhcp-10-200-99-197.in.thelinuxpro.net.
|
||||
198.99 IN PTR dhcp-10-200-99-198.in.thelinuxpro.net.
|
||||
199.99 IN PTR dhcp-10-200-99-199.in.thelinuxpro.net.
|
||||
200.99 IN PTR dhcp-10-200-99-200.in.thelinuxpro.net.
|
||||
201.99 IN PTR dhcp-10-200-99-201.in.thelinuxpro.net.
|
||||
202.99 IN PTR dhcp-10-200-99-202.in.thelinuxpro.net.
|
||||
203.99 IN PTR dhcp-10-200-99-203.in.thelinuxpro.net.
|
||||
204.99 IN PTR dhcp-10-200-99-204.in.thelinuxpro.net.
|
||||
205.99 IN PTR dhcp-10-200-99-205.in.thelinuxpro.net.
|
||||
206.99 IN PTR dhcp-10-200-99-206.in.thelinuxpro.net.
|
||||
207.99 IN PTR dhcp-10-200-99-207.in.thelinuxpro.net.
|
||||
208.99 IN PTR dhcp-10-200-99-208.in.thelinuxpro.net.
|
||||
209.99 IN PTR dhcp-10-200-99-209.in.thelinuxpro.net.
|
||||
210.99 IN PTR dhcp-10-200-99-210.in.thelinuxpro.net.
|
||||
211.99 IN PTR dhcp-10-200-99-211.in.thelinuxpro.net.
|
||||
212.99 IN PTR dhcp-10-200-99-212.in.thelinuxpro.net.
|
||||
213.99 IN PTR dhcp-10-200-99-213.in.thelinuxpro.net.
|
||||
214.99 IN PTR dhcp-10-200-99-214.in.thelinuxpro.net.
|
||||
215.99 IN PTR dhcp-10-200-99-215.in.thelinuxpro.net.
|
||||
216.99 IN PTR dhcp-10-200-99-216.in.thelinuxpro.net.
|
||||
217.99 IN PTR dhcp-10-200-99-217.in.thelinuxpro.net.
|
||||
218.99 IN PTR dhcp-10-200-99-218.in.thelinuxpro.net.
|
||||
219.99 IN PTR dhcp-10-200-99-219.in.thelinuxpro.net.
|
||||
220.99 IN PTR dhcp-10-200-99-220.in.thelinuxpro.net.
|
||||
221.99 IN PTR dhcp-10-200-99-221.in.thelinuxpro.net.
|
||||
222.99 IN PTR maverick.in.thelinuxpro.net.
|
||||
223.99 IN PTR dhcp-10-200-99-223.in.thelinuxpro.net.
|
||||
224.99 IN PTR dhcp-10-200-99-224.in.thelinuxpro.net.
|
||||
225.99 IN PTR dhcp-10-200-99-225.in.thelinuxpro.net.
|
||||
226.99 IN PTR print.in.thelinuxpro.net.
|
||||
227.99 IN PTR dhcp-10-200-99-227.in.thelinuxpro.net.
|
||||
228.99 IN PTR dhcp-10-200-99-228.in.thelinuxpro.net.
|
||||
229.99 IN PTR dhcp-10-200-99-229.in.thelinuxpro.net.
|
||||
230.99 IN PTR diskstation.in.thelinuxpro.net.
|
||||
231.99 IN PTR nas81.in.thelinuxpro.net.
|
||||
232.99 IN PTR dhcp-10-200-99-232.in.thelinuxpro.net.
|
||||
233.99 IN PTR dhcp-10-200-99-233.in.thelinuxpro.net.
|
||||
234.99 IN PTR dhcp-10-200-99-234.in.thelinuxpro.net.
|
||||
235.99 IN PTR dhcp-10-200-99-235.in.thelinuxpro.net.
|
||||
236.99 IN PTR dhcp-10-200-99-236.in.thelinuxpro.net.
|
||||
237.99 IN PTR dhcp-10-200-99-237.in.thelinuxpro.net.
|
||||
238.99 IN PTR dhcp-10-200-99-238.in.thelinuxpro.net.
|
||||
239.99 IN PTR dhcp-10-200-99-239.in.thelinuxpro.net.
|
||||
240.99 IN PTR dhcp-10-200-99-240.in.thelinuxpro.net.
|
||||
241.99 IN PTR dhcp-10-200-99-241.in.thelinuxpro.net.
|
||||
242.99 IN PTR dhcp-10-200-99-242.in.thelinuxpro.net.
|
||||
243.99 IN PTR dhcp-10-200-99-243.in.thelinuxpro.net.
|
||||
244.99 IN PTR dhcp-10-200-99-244.in.thelinuxpro.net.
|
||||
245.99 IN PTR dhcp-10-200-99-245.in.thelinuxpro.net.
|
||||
246.99 IN PTR dhcp-10-200-99-246.in.thelinuxpro.net.
|
||||
247.99 IN PTR dhcp-10-200-99-247.in.thelinuxpro.net.
|
||||
248.99 IN PTR dhcp-10-200-99-248.in.thelinuxpro.net.
|
||||
249.99 IN PTR dhcp-10-200-99-249.in.thelinuxpro.net.
|
||||
250.99 IN PTR dhcp-10-200-99-250.in.thelinuxpro.net.
|
||||
251.99 IN PTR dhcp-10-200-99-251.in.thelinuxpro.net.
|
||||
252.99 IN PTR dhcp-10-200-99-252.in.thelinuxpro.net.
|
||||
253.99 IN PTR dhcp-10-200-99-253.in.thelinuxpro.net.
|
||||
254.99 IN PTR gw99.in.thelinuxpro.net.
|
||||
;;; 10.200.254
|
||||
224.254 IN PTR network-254.in.thelinuxpro.net.
|
||||
225.254 IN PTR sw-0-1-basement-24.in.thelinuxpro.net.
|
||||
226.254 IN PTR sw-0-2-basement-8p.in.thelinuxpro.net.
|
||||
227.254 IN PTR sw-1-1-garage-8p.in.thelinuxpro.net.
|
||||
228.254 IN PTR sw-2-1-office-8p.in.thelinuxpro.net.
|
||||
229.254 IN PTR rev-10-200-254-229.in.thelinuxpro.net.
|
||||
230.254 IN PTR rev-10-200-254-230.in.thelinuxpro.net.
|
||||
231.254 IN PTR ap-1-1-GARAGE.in.thelinuxpro.net.
|
||||
232.254 IN PTR ap-1-2-OFFICE.in.thelinuxpro.net.
|
||||
233.254 IN PTR ap-2-1-OFFICE.in.thelinuxpro.net.
|
||||
234.254 IN PTR ap-2-2-MBR.in.thelinuxpro.net.
|
||||
235.254 IN PTR ap-2-3-KBR.in.thelinuxpro.net.
|
||||
236.254 IN PTR rev-10-200-254-236.in.thelinuxpro.net.
|
||||
237.254 IN PTR rev-10-200-254-237.in.thelinuxpro.net.
|
||||
238.254 IN PTR rev-10-200-254-238.in.thelinuxpro.net.
|
||||
239.254 IN PTR rev-10-200-254-239.in.thelinuxpro.net.
|
||||
240.254 IN PTR rev-10-200-254-240.in.thelinuxpro.net.
|
||||
241.254 IN PTR rev-10-200-254-241.in.thelinuxpro.net.
|
||||
242.254 IN PTR rev-10-200-254-242.in.thelinuxpro.net.
|
||||
243.254 IN PTR rev-10-200-254-243.in.thelinuxpro.net.
|
||||
244.254 IN PTR rev-10-200-254-244.in.thelinuxpro.net.
|
||||
245.254 IN PTR rev-10-200-254-245.in.thelinuxpro.net.
|
||||
246.254 IN PTR rev-10-200-254-246.in.thelinuxpro.net.
|
||||
247.254 IN PTR rev-10-200-254-247.in.thelinuxpro.net.
|
||||
248.254 IN PTR rev-10-200-254-248.in.thelinuxpro.net.
|
||||
249.254 IN PTR rev-10-200-254-249.in.thelinuxpro.net.
|
||||
250.254 IN PTR rev-10-200-254-250.in.thelinuxpro.net.
|
||||
251.254 IN PTR rev-10-200-254-251.in.thelinuxpro.net.
|
||||
252.254 IN PTR rev-10-200-254-252.in.thelinuxpro.net.
|
||||
253.254 IN PTR rev-10-200-254-253.in.thelinuxpro.net.
|
||||
254.254 IN PTR unifi.in.thelinuxpro.net.
|
||||
255.254 IN PTR broadcast-254.in.thelinuxpro.net.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$TTL 1H
|
||||
@ IN SOA in.thelinuxpro.net. root.in.thelinuxpro.net. (
|
||||
24051301 ; serial, todays date + todays serial #
|
||||
24051401 ; serial, todays date + todays serial #
|
||||
1H ; refresh, seconds
|
||||
2H ; retry, seconds
|
||||
1D ; expire, seconds
|
||||
|
@ -13,8 +13,6 @@ $TTL 1H
|
|||
;
|
||||
localhost IN A 127.0.0.1
|
||||
;
|
||||
unifi IN A 10.200.254.254
|
||||
;
|
||||
ns1 IN A 10.99.153.241
|
||||
ns2 IN A 10.99.153.242
|
||||
;
|
||||
|
@ -53,3 +51,14 @@ diskstation IN A 10.200.99.230
|
|||
nas81 IN A 10.200.99.231
|
||||
nas IN CNAME nas81
|
||||
gw99 IN A 10.200.99.254
|
||||
;
|
||||
sw-0-1-basement-24 IN A 10.200.254.225
|
||||
sw-0-2-basement-8p IN A 10.200.254.226
|
||||
sw-1-1-garage-8p IN A 10.200.254.227
|
||||
sw-2-1-office-8p IN A 10.200.254.228
|
||||
ap-1-1-garage IN A 10.200.254.231
|
||||
ap-1-2-office IN A 10.200.254.232
|
||||
ap-2-1-office IN A 10.200.254.233
|
||||
ap-2-2-mbr IN A 10.200.254.234
|
||||
ap-2-3-kbr IN A 10.200.254.235
|
||||
unifi IN A 10.200.254.254
|
||||
|
|
Loading…
Reference in New Issue