Package org.platformlayer.ops.packages

Examples of org.platformlayer.ops.packages.PackageDependency


    instance.hostPolicy.allowRunInContainer = true;
    addChild(instance);

    {
      PackageDependency serverPackage = instance.addChild(PackageDependency.build("mysql-server"));
      // mysql-server-5.1 mysql-server/root_password_again password
      // mysql-server-5.1 mysql-server/root_password password
      // mysql-server-5.1 mysql-server-5.1/start_on_boot boolean true
      // mysql-server-5.1 mysql-server-5.1/postrm_remove_databases boolean false
      // mysql-server-5.1 mysql-server/error_setting_password error
      // mysql-server-5.1 mysql-server-5.1/nis_warning note
      // mysql-server-5.1 mysql-server-5.1/really_downgrade boolean false
      // mysql-server-5.1 mysql-server/password_mismatch error
      // mysql-server-5.1 mysql-server/no_upgrade_when_using_ndb error

      // We need to install with a default password, which we then change
      String plaintextPassword = DEFAULT_BOOTSTRAP_PASSWORD.plaintext();
      serverPackage.addConfiguration("mysql-server-5.1", "mysql-server/root_password", "password",
          plaintextPassword);
      serverPackage.addConfiguration("mysql-server-5.1", "mysql-server/root_password_again", "password",
          plaintextPassword);
    }

    // TODO: Is there a window of vulnerability when first booting a machine?
    // Do we need to secure it so that mysql doesn't listen remotely initially (or isn't running)?
View Full Code Here


  @Override
  protected void addChildren() throws OpsException {
    if (version.equals("6")) {
      {
        PackageDependency jre = PackageDependency.build("sun-java6-jre");
        jre.addConfiguration("sun-java6-bin", "shared/accepted-sun-dlj-v1-1", "boolean", "true");
        jre.addConfiguration("sun-java6-bin", "shared/accepted-sun-dlj-v1-1", "boolean", "true");
        jre.addConfiguration("sun-java6-jdk", "shared/accepted-sun-dlj-v1-1", "boolean", "true");
        jre.addConfiguration("sun-java6-jre", "shared/accepted-sun-dlj-v1-1", "boolean", "true");
        jre.addConfiguration("sun-java6-jre", "sun-java6-jre/stopthread", "boolean", "true");
        jre.addConfiguration("sun-java6-jre", "sun-java6-jre/jcepolicy", "note", "");
        jre.addConfiguration("sun-java6-bin", "shared/error-sun-dlj-v1-1", "error", "");
        jre.addConfiguration("sun-java6-jdk", "shared/error-sun-dlj-v1-1", "error", "");
        jre.addConfiguration("sun-java6-jre", "shared/error-sun-dlj-v1-1", "error", "");
        jre.addConfiguration("sun-java6-bin", "shared/present-sun-dlj-v1-1", "note", "");
        jre.addConfiguration("sun-java6-jdk", "shared/present-sun-dlj-v1-1", "note", "");
        jre.addConfiguration("sun-java6-jre", "shared/present-sun-dlj-v1-1", "note", "");

        // TODO: What if it's not debian squeeze??
        Repository repository = new Repository();
        repository.setKey("debian-non-free");
        repository.getSource().add("deb http://ftp.us.debian.org/debian squeeze non-free");
View Full Code Here

    // If we're building Java projects, we'll want a JDK
    vm.addChild(JavaVirtualMachine.buildJdk7());

    {
      PackageDependency jenkinsPackage = PackageDependency.build("jenkins");
      jenkinsPackage.repositoryKey = new RepositoryKey();
      jenkinsPackage.repositoryKey.setUrl("http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key");
      jenkinsPackage.repository = new Repository();
      jenkinsPackage.repository.setKey("jenkins");
      jenkinsPackage.repository.getSource().add("deb http://pkg.jenkins-ci.org/debian binary/");
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.packages.PackageDependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.