return ldapService;
}
@Override
protected void addChildren() throws OpsException {
GitService model = OpsContext.get().getInstance(GitService.class);
InstanceBuilder vm = InstanceBuilder.build(model.dnsName, this, model.getTags());
addChild(vm);
vm.addChild(PackageDependency.build("apache2"));
// Provides /usr/lib/git-core/git-http-backend
vm.addChild(PackageDependency.build("git"));
vm.addChild(ManagedDirectory.build(new File("/var/git"), "0755"));
vm.addChild(ApacheModule.build("authnz_ldap"));
vm.addChild(ApacheModule.build("ldap"));
File apache2ConfDir = new File("/etc/apache2");
vm.addChild(TemplatedFile.build(this, new File(apache2ConfDir, "conf.d/git")));
vm.addChild(ManagedService.build("apache2"));
vm.addChild(MetricsInstance.class);
{
PublicEndpoint endpoint = injected(PublicEndpoint.class);
// endpoint.network = null;
endpoint.publicPort = PORT;
endpoint.backendPort = PORT;
endpoint.dnsName = model.dnsName;
endpoint.tagItem = model.getKey();
endpoint.parentItem = model.getKey();
vm.addChild(endpoint);
}
}