use of org.platformlayer.ops.OpaqueMachine in project platformlayer by platformlayer.
the class ImageStoreController method addDirectStore.
private void addDirectStore(ImageStore model) throws OpsException {
// Serious bootstrapping problem here!!!
SshKey serviceKey = service.getSshKey();
PublicKey sshPublicKey = serviceKey.getKeyPair().getPublic();
OpaqueMachine machine = new OpaqueMachine(NetworkPoint.forPublicHostname(model.dnsName));
OpsTarget target = machine.getTarget("imagestore", serviceKey.getKeyPair());
SshAuthorizedKey.ensureSshAuthorization(target, "imagestore", sshPublicKey);
// addChild(SshAuthorizedKey.build("root", publicKey));
}
Aggregations