-
Notifications
You must be signed in to change notification settings - Fork 185
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
CFE-2889: cf-remote info, install, packages #3488
Conversation
olehermanse
commented
Jan 11, 2019
•
edited
Loading
edited
Replaces cfengine/starter_pack#19 |
8b2db22
to
2960b63
Compare
2960b63
to
ce1e814
Compare
@craigcomstock @vpodzime I added some examples of what's currently working in description. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an awful lot of very useful functions in here, such as for deployment tests and such. Like parsing releases json and various other utils. Maybe pull those things together at some point if we can.
ce1e814
to
273a866
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me otherwise.
if hub: | ||
install_host(hub, hub=True, package=package) | ||
for host in (clients or []): | ||
install_host(host, hub=False, package=package) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it's going to be the same package for hub and clients? How?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you specify --package
it will be the same for all hosts, yes. Trying to do a little MVP here / minimal iterations :) The idea is that you won't have to pick the package name, it can be chosen automatically. Would you prefer if I also add --hub-package
and --client-package
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is okay if this iteration (MVP) requires the user to run the tool twice, once for the hub and once for the hosts. But I think we should avoid installing hub packages on hosts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I can add some error checking to make sure that isn't possible. And also add the two options for completeness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it already done somewhere? I cannot find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in a separate commit now.
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
cf-remote is a python + fabric tool to log in to remote hosts you have ssh access to. It will be used to download, transfer, and install cfengine packages as well as bootstrapping etc. This first iteration includes the `info` command, which prints basic information about a remote host. Ticket: CFE-2889 Changelog: Commit Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
273a866
to
56994be
Compare
The first version of this command does not pick a package automatically, the file has to be specified with --package argument. Changelog: Commit Ticket: CFE-2889 Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
This command can download the necessary packages for use with install command. For example: $ cf-remote packages deb hub Will download the default version hub package for debian. Changelog: Commit Ticket: CFE-2889 Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
56994be
to
a2613fe
Compare
@vpodzime addressed all your comments and added a commit for the new package options. Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now.