Search in sources :

Example 1 with VpnService

use of org.platformlayer.service.vpn.model.VpnService in project platformlayer by platformlayer.

the class VpnServiceController method addChildren.

@Override
protected void addChildren() throws OpsException {
    VpnService model = OpsContext.get().getInstance(VpnService.class);
    InstanceBuilder instance = InstanceBuilder.build(model.dnsName, DiskImageRecipeBuilder.buildDiskImageRecipe(this));
    addChild(instance);
    instance.addChild(PackageDependency.build("strongswan"));
    instance.addChild(CollectdCollector.build());
// instance.addChild(ManagedService.build("ipsec"));
}
Also used : VpnService(org.platformlayer.service.vpn.model.VpnService) InstanceBuilder(org.platformlayer.ops.instances.InstanceBuilder)

Aggregations

InstanceBuilder (org.platformlayer.ops.instances.InstanceBuilder)1 VpnService (org.platformlayer.service.vpn.model.VpnService)1