-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature/apt package #461
Feature/apt package #461
Conversation
stevendborrelli
commented
Nov 1, 2016
•
edited
Loading
edited
- adds ability to install/remove debian packages
- refactors some of the code in the package resource to be shared
6ebfdf2
to
dba2293
Compare
# Conflicts: # resource/package/package.go # resource/package/rpm/preparer.go
Haven't figured out exactly why yet but I am getting the following error when trying to apply https://github.com/asteris-llc/converge/blob/1a41999d0730a51fb8982c3c51db5b07a4ac99de/samples/apt.hcl:
(vagrant machine running the |
ignore the above (not using sudo, duh) |
apt Package manages system packages with `apt` and `dpkg`. It assumes that | ||
both `apt` and `dpkg` are installed on the system, and that the user has | ||
permissions to install, remove, and query packages. | ||
|
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.
should we add a note about using group
to ensure that multiple apt package installations do not run in parallel? (at least until we add an implicit group into the apt resource)
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 to docs
|
||
// Prepare a new package | ||
func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error) { | ||
if p.State == "" { |
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.
might want to validate that Name != ""
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