First step for adding templated settings/file where placeholders can be filled out.

Add 'settings' structure to config.ini
Add 'settings' multidimensional config parser to lib/utils.php

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-02-17 01:59:32 +01:00
parent 5fc7beb627
commit 8ea03118c6
3 changed files with 130 additions and 1 deletions

View File

@@ -5,6 +5,15 @@ default_language = English_United_States
log_type = SYSLOG ; SYSLOG|STDERR|STDOUT|NULL|FILE
log_level = LOG_INFO ; LOG_EMERG|LOG_ALERT|LOG_CRIT|LOG_ERR|LOG_WARNING|LOG_NOTICE|LOG_INFO|LOG_DEBUG
;log_filename = provision.log ; only in case of log_type = FILE
auto_generate_settings = FALSE
auto_sign = FALSE
auto_encrypt = FALSE
[security]
cert_ca =
cert_priv =
cert_pub =
hash =
[subdirs]
tftproot = tftpboot
@@ -15,3 +24,32 @@ ringtones = ringtones
locales = locales
countries = countries
languages = languages
[settings]
sshUserId = cisco
sshPassword = cisco
ipAddress = ipv4|ipv6 ; ipv4 | ipv4 | ipv4|ipv6 | ipv6|ipv4
datetime.template=M/D/YA
datetime.timezone=W. Europe Standard/Daylight Time
datetime.ipaddress=10.x.x.x
datetime.mode=Unicast
members.myhost.hostname = myhost.domain.com
members.myhost.ipv4 = 10.x.x.x
members.myhost.ipv6 = 2001:470::x:x
members.myhost.port = 2000
;srts.
;common.
;vendor.
locale.country=United_States
locale.language=English_United_States
locale.langcode=en_US
locale.charset=utf-8
urls.secury = FALSE
urls.information=
urls.authentication=
urls.services=
urls.direcory=
urls.messages=
urls.proxyserver=
;vpn.
;phoneservices.