public void doOperation() {
}
@Override
protected void addChildren() throws OpsException {
AptCacheService model = OpsContext.get().getInstance(AptCacheService.class);
// TODO: Create endpoint with default port; maybe default to closed?
// model.dnsName
InstanceBuilder instance = InstanceBuilder.build(model.dnsName, this, model.getTags());
instance.hostPolicy.allowRunInContainer = true;
addChild(instance);
instance.addChild(PackageDependency.build("squid3"));
instance.addChild(SimpleFile.build(getClass(), new File("/etc/squid3/squid.conf")));
instance.addChild(ManagedService.build("squid3"));
// instance.addChild(CollectdCollector.build());
{
PublicEndpoint endpoint = injected(PublicEndpoint.class);
endpoint.publicPort = PORT;
endpoint.backendPort = PORT;
endpoint.dnsName = model.dnsName;
endpoint.tagItem = model.getKey();
endpoint.parentItem = model.getKey();
instance.addChild(endpoint);
}
}