- Copied github.com/tm1000/tftpserver/tftpserver.php over to lib/tftpserver.php

- Replaced logging functions with lib/logger.php
- 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
- Added simple test implementation of tftpserver
- Renamed lib/tftpserver.php to lib/tftp.php
- Fixed error output from lib/tftp.php
- Note: current simple tftpserver.php test implementation stores/read files
- from memory (not fs). So you need to put a file, before you can get that
  file back.
- Cleanup some small config details
- First simple implementation of tftp_provisioner.php
This commit is contained in:
Diederik de Groot
2020-02-16 20:35:05 +01:00
parent a4ebaee776
commit 7aa4524b19
5 changed files with 1027 additions and 14 deletions

View File

@@ -1,10 +1,19 @@
[main]
debug = on ; The output in the browser window for more information
debug = TRUE ; The output in the browser window for more information
cache_filename = "/tmp/provision_sccp_resolver.cache"
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 = NULL
cert_priv = NULL
cert_pub = NULL
hash = NULL
[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.security = FALSE
urls.information = NULL
urls.authentication = NULL
urls.services = NULL
urls.direcory = NULL
urls.messages = NULL
urls.proxyserver = NULL
;vpn.
;phoneservices.