Package org.platformlayer.ops.instances

Examples of org.platformlayer.ops.instances.InstanceBuilder.addChild()


      instance.addChild(user);
    }

    // sudo -H -u gitlab ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa

    instance.addChild(PackageDependency.build("ruby1.9.1"));

    {
      GitCheckout checkout = injected(GitCheckout.class);
      checkout.targetDir = new File("/opt/gitlabhq");
      checkout.source = "https://github.com/gitlabhq/gitlabhq.git";
View Full Code Here


    {
      GitCheckout checkout = injected(GitCheckout.class);
      checkout.targetDir = new File("/opt/gitlabhq");
      checkout.source = "https://github.com/gitlabhq/gitlabhq.git";
      instance.addChild(checkout);
    }

    {
      GitCheckout checkout = injected(GitCheckout.class);
      checkout.targetDir = new File("/opt/gitolite");
View Full Code Here

    {
      GitCheckout checkout = injected(GitCheckout.class);
      checkout.targetDir = new File("/opt/gitolite");
      checkout.source = "https://github.com/gitlabhq/gitolite.git";
      instance.addChild(checkout);
    }

    // Eeek... we have to run a gitolite install script.
    // I don't fancy picking it apart right now...
View Full Code Here

  protected void addChildrenGlance(ImageStore model) throws OpsException {
    InstanceBuilder instance = InstanceBuilder.build(model.dnsName, this, model.getTags());
    addChild(instance);

    // We’ll stick with glance using SQLite (for now)
    instance.addChild(PackageDependency.build("glance"));
    instance.addChild(ManagedService.build("glance"));

    instance.addChild(MetricsInstance.class);
  }
View Full Code Here

    InstanceBuilder instance = InstanceBuilder.build(model.dnsName, this, model.getTags());
    addChild(instance);

    // We’ll stick with glance using SQLite (for now)
    instance.addChild(PackageDependency.build("glance"));
    instance.addChild(ManagedService.build("glance"));

    instance.addChild(MetricsInstance.class);
  }

  @Override
View Full Code Here

    // We’ll stick with glance using SQLite (for now)
    instance.addChild(PackageDependency.build("glance"));
    instance.addChild(ManagedService.build("glance"));

    instance.addChild(MetricsInstance.class);
  }

  @Override
  public org.platformlayer.ops.images.ImageStore getImageStore() throws OpsException {
    String endpoint = model.getTags().findUnique("endpoint");
View Full Code Here

    // We have some problems using collectd with debootstrap; I think it's when we're using FQDN and we can't
    // resolve the hostname
    // See http://thegrebs.com/irc/debian/2011/04/01

    instance.addChild(PackageDependency.build("librrd4"));
    instance.addChild(PackageDependency.build("rrdcached"));

    // collectd is a bit fussy, so we have problems bundling it into the disk image
    // TODO: This sucks - collectd is pretty big...
    instance.addChild(PackageDependency.build("collectd"));
View Full Code Here

    // We have some problems using collectd with debootstrap; I think it's when we're using FQDN and we can't
    // resolve the hostname
    // See http://thegrebs.com/irc/debian/2011/04/01

    instance.addChild(PackageDependency.build("librrd4"));
    instance.addChild(PackageDependency.build("rrdcached"));

    // collectd is a bit fussy, so we have problems bundling it into the disk image
    // TODO: This sucks - collectd is pretty big...
    instance.addChild(PackageDependency.build("collectd"));
View Full Code Here

    instance.addChild(PackageDependency.build("librrd4"));
    instance.addChild(PackageDependency.build("rrdcached"));

    // collectd is a bit fussy, so we have problems bundling it into the disk image
    // TODO: This sucks - collectd is pretty big...
    instance.addChild(PackageDependency.build("collectd"));

    // collectd has collectdmon to keep it alive; don't use monit (for now)

    instance.addChild(CollectdSink.build());
View Full Code Here

    // TODO: This sucks - collectd is pretty big...
    instance.addChild(PackageDependency.build("collectd"));

    // collectd has collectdmon to keep it alive; don't use monit (for now)

    instance.addChild(CollectdSink.build());

    instance.addChild(ManagedService.build("collectd"));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.