Pārlūkot izejas kodu

added vars in env for dhcpd.conf

tags/v1.0.0
Robin Thoni 7 gadus atpakaļ
vecāks
revīzija
955fcdd894
5 mainītis faili ar 78 papildinājumiem un 18 dzēšanām
  1. 15
    0
      apache/vars-vars
  2. 15
    0
      env
  3. 18
    18
      isc-dhcp/dhcpd.conf
  4. 15
    0
      isc-dhcp/vars-vars
  5. 15
    0
      tftpd/vars-vars

+ 15
- 0
apache/vars-vars Parādīt failu

@@ -1 +1,16 @@
1
+DHCP_DDNS_KEY
1 2
 
3
+DHCP_DNS_SERVER
4
+DHCP_TFTP_SERVER
5
+DHCP_ROUTERS
6
+
7
+DHCP_DOMAIN
8
+DHCP_SITE_DOMAIN
9
+DHCP_DYN_IPS_DOMAIN
10
+DHCP_REV_DOMAIN
11
+
12
+DHCP_SUBNET
13
+DHCP_NETMASK
14
+DHCP_IP_FIRST
15
+DHCP_IP_LAST
16
+DHCP_BROADCAST

+ 15
- 0
env Parādīt failu

@@ -1 +1,16 @@
1
+DHCP_DDNS_KEY=Y2hhbmdlX2l0
1 2
 
3
+DHCP_DNS_SERVER=10.15.100.1
4
+DHCP_TFTP_SERVER=10.15.100.1
5
+DHCP_ROUTERS=10.15.100.1
6
+
7
+DHCP_DOMAIN=rthoni.com
8
+DHCP_SITE_DOMAIN=site.rthoni.com
9
+DHCP_DYN_IPS_DOMAIN=dhcp.site.rthoni.com
10
+DHCP_REV_DOMAIN=100.15.10.in-addr.arpa.
11
+
12
+DHCP_SUBNET=10.15.100.0
13
+DHCP_NETMASK=255.255.255.0
14
+DHCP_IP_FIRST=10.15.100.50
15
+DHCP_IP_LAST=10.15.100.250
16
+DHCP_BROADCAST=10.15.100.255

+ 18
- 18
isc-dhcp/dhcpd.conf Parādīt failu

@@ -1,21 +1,21 @@
1 1
 #Dynamic DNS security settings
2
-key "dhcpdupdate" { #TODO
2
+key "dhcpdupdate" {
3 3
         algorithm hmac-md5;
4
-        secret "FYhvwsW1ZtFZqWzsMpqhbg==";
4
+        secret "DHCP_DDNS_KEY";
5 5
 };
6 6
 
7 7
 zone dhcp.site.rthoni.com {
8
-    primary 10.15.100.1;
8
+    primary DHCP_DNS_SERVER;
9 9
     key dhcpdupdate;
10 10
 }
11 11
 
12 12
 zone site.rthoni.com {
13
-    primary 10.15.100.1;
13
+    primary DHCP_DNS_SERVER;
14 14
     key dhcpdupdate;
15 15
 }
16 16
 
17 17
 zone 100.15.10.in-addr.arpa. {
18
-    primary 10.15.100.1;
18
+    primary DHCP_DNS_SERVER;
19 19
     key dhcpdupdate;
20 20
 }
21 21
 
@@ -33,36 +33,36 @@ use-host-decl-names on;
33 33
 authoritative;
34 34
 log-facility local7;
35 35
 
36
-subnet 10.15.100.0 netmask 255.255.255.0 {
36
+subnet DHCP_SUBNET netmask DHCP_NETMASK {
37 37
 
38 38
   # Dynamic DNS update
39 39
   ddns-updates off; #TODO
40 40
   ddns-update-style interim;
41 41
   update-static-leases off;
42
-  ddns-domainname "dhcp.site.rthoni.com";
43
-  ddns-rev-domainname "100.15.10.in-addr.arpa.";
42
+  ddns-domainname "DHCP_DYN_IPS_DOMAIN";
43
+  ddns-rev-domainname "DHCP_REV_DOMAIN";
44 44
 
45 45
 
46 46
   # IP settings
47
-  range 10.15.100.50 10.15.100.250;
48
-  option subnet-mask 255.255.255.0;
49
-  option broadcast-address 10.15.100.255;
50
-  option routers 10.15.100.1;
47
+  range DHCP_IP_FIRST DHCP_IP_LAST;
48
+  option subnet-mask DHCP_NETMASK;
49
+  option broadcast-address DHCP_BROADCAST;
50
+  option routers DHCP_ROUTERS;
51 51
 
52 52
   # DNS settings
53
-  option domain-name "site.rthoni.com";
54
-  option domain-search "site.rthoni.com rthoni.com";
55
-  option domain-name-servers 10.15.100.1;
53
+  option domain-name "DHCP_SITE_DOMAIN";
54
+  option domain-search "DHCP_SITE_DOMAIN DHCP_DOMAIN";
55
+  option domain-name-servers DHCP_DNS_SERVER;
56 56
 
57 57
   # Push custom routes to clients
58 58
   #option classless-routes 24, 10,15,42, 10.15.12,2;
59 59
   #option classless-routes-win 24, 10,15,42, 10.15.12,2;
60 60
 
61 61
   # Netboot settings
62
-  next-server 10.15.100.1;
62
+  next-server DHCP_TFTP_SERVER;
63 63
   #option root-path "10.15.100.1:/pxeroot/ubuntu";
64 64
   if exists user-class and ( option user-class = "iPXE-rthoni" ) {
65
-    option domain-search "site.rthoni.com";
65
+    option domain-search "DHCP_SITE_DOMAIN";
66 66
     filename "http://netboot/boot.ipxe";
67 67
   }
68 68
   else {
@@ -71,7 +71,7 @@ subnet 10.15.100.0 netmask 255.255.255.0 {
71 71
 
72 72
   # Static IP hosts
73 73
   group {
74
-    ddns-domainname "site.rthoni.com";
74
+    ddns-domainname "DHCP_SITE_DOMAIN";
75 75
   }
76 76
 }
77 77
 

+ 15
- 0
isc-dhcp/vars-vars Parādīt failu

@@ -1 +1,16 @@
1
+DHCP_DDNS_KEY
1 2
 
3
+DHCP_DNS_SERVER
4
+DHCP_TFTP_SERVER
5
+DHCP_ROUTERS
6
+
7
+DHCP_DOMAIN
8
+DHCP_SITE_DOMAIN
9
+DHCP_DYN_IPS_DOMAIN
10
+DHCP_REV_DOMAIN
11
+
12
+DHCP_SUBNET
13
+DHCP_NETMASK
14
+DHCP_IP_FIRST
15
+DHCP_IP_LAST
16
+DHCP_BROADCAST

+ 15
- 0
tftpd/vars-vars Parādīt failu

@@ -1 +1,16 @@
1
+DHCP_DDNS_KEY
1 2
 
3
+DHCP_DNS_SERVER
4
+DHCP_TFTP_SERVER
5
+DHCP_ROUTERS
6
+
7
+DHCP_DOMAIN
8
+DHCP_SITE_DOMAIN
9
+DHCP_DYN_IPS_DOMAIN
10
+DHCP_REV_DOMAIN
11
+
12
+DHCP_SUBNET
13
+DHCP_NETMASK
14
+DHCP_IP_FIRST
15
+DHCP_IP_LAST
16
+DHCP_BROADCAST

Notiek ielāde…
Atcelt
Saglabāt