@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; }