Examples of NginxFrontend


Examples of org.openstack.service.nginx.model.NginxFrontend

  @Override
  protected DnsRecord buildItemTemplate() throws OpsException {
    // TODO: Idempotency etc
    // Machine machine = OpsContext.get().getInstance(Machine.class);
    NginxService nginxService = OpsContext.get().getInstance(NginxService.class);
    NginxFrontend nginxFrontend = OpsContext.get().getInstance(NginxFrontend.class);

    Machine machine = instanceHelpers.getMachine(nginxService);

    String address = machine.getNetworkPoint().getBestAddress(NetworkPoint.forPublicInternet());

    DnsRecord record = new DnsRecord();
    record.setDnsName(nginxFrontend.hostname);
    record.getAddress().add(address);

    Tag parentTag = Tag.buildParentTag(nginxFrontend.getKey());
    record.getTags().add(parentTag);
    Tag uniqueTag = UniqueTag.build(nginxService, nginxFrontend);
    record.getTags().add(uniqueTag);

    record.key = PlatformLayerKey.fromId(nginxFrontend.hostname);
View Full Code Here

Examples of org.openstack.service.nginx.model.NginxFrontend

    }

  }

  NginxFrontend getNginxFrontend() {
    NginxFrontend nginxFrontend = OpsContext.get().getInstance(NginxFrontend.class);
    return nginxFrontend;
  }
View Full Code Here

Examples of org.openstack.service.nginx.model.NginxFrontend

    return nginxFrontend;
  }

  @Override
  public void buildTemplateModel(Map<String, Object> model) throws OpsException {
    NginxFrontend nginxFrontend = getNginxFrontend();

    model.put("uniqueKey", getUniqueKey());
    model.put("hostname", getHostname());
    model.put("httpPort", httpPort);
    model.put("httpsPort", httpsPort);
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.