mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-27 14:00:00 +01:00
add config parameter for powerdns integration
This commit is contained in:
parent
928b08d0ce
commit
0fa1474f6c
1 changed files with 3 additions and 1 deletions
|
@ -62,8 +62,10 @@ func initConfig() {
|
||||||
viper.SetConfigName("ipam")
|
viper.SetConfigName("ipam")
|
||||||
viper.SetConfigType("yaml")
|
viper.SetConfigType("yaml")
|
||||||
|
|
||||||
|
viper.SetDefault("DataPath", ipamdir+"data/")
|
||||||
viper.SetDefault("EnablePowerDNS", false)
|
viper.SetDefault("EnablePowerDNS", false)
|
||||||
viper.SetDefault("DataPath", ipamdir+"/data/")
|
viper.SetDefault("PowerDNSEndpoint", "")
|
||||||
|
viper.SetDefault("PowerDNSApiKey", "")
|
||||||
|
|
||||||
if err := viper.ReadInConfig(); err != nil {
|
if err := viper.ReadInConfig(); err != nil {
|
||||||
_, patherr := os.Stat(ipamdir)
|
_, patherr := os.Stat(ipamdir)
|
||||||
|
|
Loading…
Reference in a new issue