Tabnine Logo
DeckProfileFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
DeckProfileFactory
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deck

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deck.DeckProfileFactory (Showing top 8 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> result = new ArrayList<>();
 result.add(deckProfileFactory.getProfile(deskSettingsPath, deckPath, deploymentConfiguration, endpoints));
 return result;
}
origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

.setRequiredFiles(backupRequiredFiles(uiSecurity, deploymentConfiguration.getName()));
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
origin: spinnaker/halyard

.setRequiredFiles(backupRequiredFiles(uiSecurity, deploymentConfiguration.getName()));
origin: spinnaker/halyard

@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;
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@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;
}
origin: spinnaker/halyard

@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;
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deckDeckProfileFactory

Most used methods

  • backupRequiredFiles
  • getProfile
  • setProfile

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now