Package org.platformlayer.ops

Examples of org.platformlayer.ops.OpsTarget


    return forPublicHostname(address);
  }

  public static NetworkPoint forTargetInContext() {
    OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);

    return forTarget(target);
  }
View Full Code Here


    // Set during doOperation
    Machine machine = null;
    PersistentInstance persistentInstance = null;
    InstanceBase instance = null;
    OpsTarget target = null;

    persistentInstance = getOrCreate(parentTag, persistentInstanceTemplate);

    if (persistentInstance != null) {
      // We have to connect to the underlying machine not-via-DNS for Dns service => use instance id
View Full Code Here

    if (nameservers.isEmpty()) {
      log.warn("No (internal) resolvers found; will set up default public nameservers; reconfigure needed if this changes");

      if (usePrivateResolvers) {
        OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);

        AsBlock as = AsBlock.find(target);

        if (as != null) {
          // We had problems with the SL resolvers...
View Full Code Here

    // GCE sets up a DNS server on the host, which we're supposed to use
    // Also, GCE currently uses Ubuntu, which has a more complicated setup for resolv.conf
    addChild(new LateBound<ManagedFilesystemItem>() {
      @Override
      protected ManagedFilesystemItem get() throws OpsException {
        OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);

        AsBlock asBlock = AsBlock.find(target);
        if (asBlock != AsBlock.GOOGLE_COMPUTE_ENGINE) {
          return TemplatedFile.build(Injection.getInstance(DnsResolverModuleBuilder.class),
              new File("/etc/resolv.conf")).setFileMode("644");
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.OpsTarget

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.