@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> result = new ArrayList<>(); result.add(deckProfileFactory.getProfile(deskSettingsPath, deckPath, deploymentConfiguration, endpoints)); return result; }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> result = new ArrayList<>(); String apache2Path = "/etc/apache2/"; String sitePath = "/etc/apache2/sites-available/"; String filename = "settings.js"; String path = Paths.get(htmlPath, filename).toString(); result.add(deckProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints)); filename = "passphrase"; path = Paths.get(apache2Path, filename).toString(); result.add(apachePassphraseProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints).setExecutable(true)); filename = "ports.conf"; path = Paths.get(apache2Path, filename).toString(); result.add(apachePortsProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints)); filename = "spinnaker.conf"; path = Paths.get(sitePath, filename).toString(); result.add(apacheSpinnakerProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints)); return result; }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> result = new ArrayList<>(); String apache2Path = "/etc/apache2/"; String sitePath = "/etc/apache2/sites-available/"; String filename = "settings.js"; String path = Paths.get(htmlPath, filename).toString(); result.add(deckProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints)); filename = "passphrase"; path = Paths.get(apache2Path, filename).toString(); result.add(apachePassphraseProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints).setExecutable(true)); filename = "ports.conf"; path = Paths.get(apache2Path, filename).toString(); result.add(apachePortsProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints)); filename = "spinnaker.conf"; path = Paths.get(sitePath, filename).toString(); result.add(apacheSpinnakerProfileFactory.getProfile("apache2/" + filename, path, deploymentConfiguration, endpoints)); return result; }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> result = new ArrayList<>(); Profile deckProfile = deckProfileFactory.getProfile(deckSettingsPath, deckPath, deploymentConfiguration, endpoints); String deploymentName = deploymentConfiguration.getName(); Path userProfilePath = halconfigDirectoryStructure.getUserProfilePath(deploymentName); Optional<Profile> settingsLocalProfile = this.customProfile( deploymentConfiguration, endpoints, Paths.get(userProfilePath.toString(), deckSettingsLocalPath), deckSettingsLocalPath); settingsLocalProfile.ifPresent(p -> deckProfile.appendContents(p.getContents())); result.add(deckProfile); return result; }