public class SudoTtyFixingCustomizer extends BasicJcloudsLocationCustomizer
JcloudsLocationCustomizer for easy(-ish) consumption
in YAML blueprints:
name: My App
brooklyn.config:
provisioning.properties:
customizerType: SudoTtyFixingCustomizer
services: ...
This class should be seen as a temporary workaround and might disappear completely if/when Brooklyn takes care of this automatically.
See http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password for background.
| Constructor and Description |
|---|
SudoTtyFixingCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(JcloudsLocation location,
org.jclouds.compute.ComputeService computeService,
JcloudsMachineLocation machine)
Override to configure the given machine once it has been created and started by Jclouds.
|
customize, customize, customize, customize, postRelease, postRelease, preRelease, preReleasepublic void customize(JcloudsLocation location, org.jclouds.compute.ComputeService computeService, JcloudsMachineLocation machine)
JcloudsLocationCustomizerCloudLocationConfig.WAIT_FOR_SSHABLE is true the
machine is guaranteed to be SSHable when this method is called.customize in interface JcloudsLocationCustomizercustomize in class BasicJcloudsLocationCustomizer