-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following things can now be controlled domain specific: Hostname, Hardware-Model, Contact Information, VPN, Latitude and Longitude
- Loading branch information
Showing
9 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import providers | ||
|
||
class Source(providers.DataSource): | ||
def required_args(self): | ||
return ['hardware_model'] | ||
def call(self, hardware_model): | ||
return hardware_model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import providers | ||
import socket | ||
|
||
class Source(providers.DataSource): | ||
def call(self): | ||
return socket.gethostname() | ||
def required_args(self): | ||
return ['hostname'] | ||
def call(self, hostname): | ||
return hostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import providers | ||
|
||
class Source(providers.DataSource): | ||
def required_args(self): | ||
return ['latitude'] | ||
def call(self, latitude): | ||
return latitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import providers | ||
|
||
class Source(providers.DataSource): | ||
def required_args(self): | ||
return ['longitude'] | ||
def call(self, longitude): | ||
return longitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import providers | ||
|
||
class Source(providers.DataSource): | ||
def required_args(self): | ||
return ['contact'] | ||
def call(self, contact): | ||
return contact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import providers | ||
|
||
class Source(providers.DataSource): | ||
def call(self): | ||
return True | ||
def required_args(self): | ||
return ['is_gateway'] | ||
def call(self, is_gateway): | ||
return is_gateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,24 @@ DomainType: batadv | |
# Default ddhcpd IPv4 gateway address | ||
# optional | ||
IPv4Gateway: 10.116.128.8 | ||
# Hostname to advertise | ||
# optional, default is the system hostname | ||
Hostname: gw01 | ||
# Hardware used by the system | ||
# optional, default is None | ||
Hardware-Model: KVM VirtualMachine | ||
# Contact information of owner | ||
# optional, default is None | ||
Contact: [email protected] | ||
# Latitude of the system | ||
# optional, default is None | ||
Latitude: 50.478083306 | ||
# Longitude of the system | ||
# optional, default is None | ||
Longitude: 12.335736752 | ||
# Is the system considered an gateway | ||
# optional, default is True | ||
VPN: True | ||
|
||
# A domain | ||
# User your own domain name here | ||
|
@@ -43,5 +61,23 @@ Interfaces: mvpn-ffki | |
# IPv4 gateway option for ddhcpd | ||
# optional, default: @IPv4Gateway | ||
IPv4Gateway: 10.116.128.8 | ||
# Hostname to advertise | ||
# optional, default: @Hostname | ||
Hostname: ffki.gw01 | ||
# Hardware used by the system | ||
# optional, default: @Hardware-Model | ||
Hardware-Model: KVM VirtualMachine | ||
# Contact information of owner | ||
# optional, default: @Contact | ||
Contact: [email protected] | ||
# Latitude of the system | ||
# optional, default: @Latitude | ||
Latitude: 50.478083306 | ||
# Longitude of the system | ||
# optional, default: @Longitude | ||
Longitude: 12.335736752 | ||
# Is the system considered a gateway | ||
# optional, default: @VPN | ||
VPN: True | ||
|
||
# An arbitrary number of further domains may follow here |