-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss the interface #1
Comments
Can you help me understand the use case of Bootstrapper? |
So the use case of bootstrapper is creating servers with certain abilities for bootstrapping them. Bootstrapper is able to upload files to a created server and run scripts on it. So, an example use case would be writing a deployer. |
As for why you'd use it, let's say that you want to make a server with Nginx on it. What you'd do is (pseudo-code): var bootstrapper = new Bootstrapper({ compute: ... );
bootstrapper.createServer({
image: 'ubuntu',
flavor: '512mb',
commands: ['apt-get install -y nginx']
}); |
Ok, that sheds a little light. Obviously you'd have to be more specific with flavor, image, etc, but the commands certainly make sense. Given that, yes, that does seem external to pkgcloud proper. |
+@kenperkins @indexzero
We should discuss what interfaces from
pkgcloud
to move here.I'm proposiing to move out all the bootstrapping and provisioning-related interfaces (
Bootstrapper
) here (and that's essentially what0.1.0
is).@kenperkins also suggested that it'd be nice to have
ssh
,uploadFile
, etc. methods onServer
model. I think that'd be sweet.My idea for that would be to allow creating
Bootstrapper
object with a target server, so:This way we avoid putting SSH-related stuff in
pkgcloud
.The text was updated successfully, but these errors were encountered: