func installConsul(consulPod *pods.Pod, consulManifest manifest.Manifest, registryURL *url.URL) error { // Inject servicebuilder? err := consulPod.Install(consulManifest, auth.NopVerifier(), artifact.NewRegistry(registryURL, uri.DefaultFetcher, osversion.DefaultDetector)) if err != nil { return util.Errorf("Can't install Consul, aborting: %s", err) } ok, err := consulPod.Launch(consulManifest) if err != nil || !ok { return util.Errorf("Can't launch Consul, aborting: %s", err) } return nil }
func InstallConsul(consulPod *pods.Pod, consulManifest *pods.Manifest) error { // Inject servicebuilder? err := consulPod.Install(consulManifest) if err != nil { return util.Errorf("Can't install Consul, aborting: %s", err) } ok, err := consulPod.Launch(consulManifest) if err != nil || !ok { return util.Errorf("Can't launch Consul, aborting: %s", err) } return nil }