func configureUnits(coreos *CoreOS, node types.Node, cluster types.Cluster) { for _, unt := range cluster.GetUnits() { coreUnit := unit.New(unt.UnitName()) coreUnit.Configure(unt) coreos.units[unt.UnitName()] = coreUnit } for _, unt := range unit.DefaultUnits() { coreos.units[unt.Name()] = unt } networkUnit := unit.Network(node) coreos.units[networkUnit.Name()] = networkUnit }