This will help you configure simple network settings for an appliance / vm
This is a fork with parents:
Changes:
- Added parsers to get current ip, mask and gateway (borrowed from saltstack)
- added py3 support
- Removed ifconfig calls
- changed some formatting
- added options to set ntp settings
- added docker file to build with
- added option to embed secondary configuration ui
apt install dialog
if not already- those in the
requirements.txt
(python3 -m pip install -r requirements.txt
)
will result in an executable appliancecfg
and some so
files
docker build -t pyappliancecfg .
docker run -ti --name pyappliancecfg pyappliancecfg bash
open second terminal
docker cp pyappliancecfg:/pyappliancecfg/appliancecfg.dist/appliancecfg.tar.gz $PWD/
docker rm -f pyappliancecfg
./appliancecfg --external_config someexecutable --external_config_name MyConfigurator --external_config_desc 'Configure other cool stuff'