@@ -51,11 +51,12 @@ type PortPool struct {
5151
5252// Config defines configuration for provisioning.
5353type Config struct {
54- PortPool PortPool `yaml:"portPool"`
55- DockerImage string `yaml:"dockerImage"`
56- UseSudo bool `yaml:"useSudo"`
57- KeepUserPasswords bool `yaml:"keepUserPasswords"`
58- ContainerConfig map [string ]string `yaml:"containerConfig"`
54+ PortPool PortPool `yaml:"portPool"`
55+ DockerImage string `yaml:"dockerImage"`
56+ UseSudo bool `yaml:"useSudo"`
57+ KeepUserPasswords bool `yaml:"keepUserPasswords"`
58+ ContainerConfig map [string ]string `yaml:"containerConfig"`
59+ CloneAccessAddresses string `yaml:"cloneAccessAddresses"`
5960}
6061
6162// Provisioner describes a struct for ports and clones management.
@@ -598,14 +599,15 @@ func (p *Provisioner) stopPoolSessions(fsm pool.FSManager, exceptClones map[stri
598599
599600func (p * Provisioner ) getAppConfig (pool * resources.Pool , name string , port uint ) * resources.AppConfig {
600601 appConfig := & resources.AppConfig {
601- CloneName : name ,
602- DockerImage : p .config .DockerImage ,
603- Host : pool .SocketCloneDir (name ),
604- Port : port ,
605- DB : p .dbCfg ,
606- Pool : pool ,
607- ContainerConf : p .config .ContainerConfig ,
608- NetworkID : p .networkID ,
602+ CloneName : name ,
603+ DockerImage : p .config .DockerImage ,
604+ Host : pool .SocketCloneDir (name ),
605+ Port : port ,
606+ DB : p .dbCfg ,
607+ Pool : pool ,
608+ ContainerConf : p .config .ContainerConfig ,
609+ NetworkID : p .networkID ,
610+ ProvisionHosts : p .config .CloneAccessAddresses ,
609611 }
610612
611613 return appConfig
0 commit comments