Initial bash->go conversion: write host ip in config files

[#78491790]5~