Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(285)

Issue 58490043: Add option to disable apt in ProvisioningScript

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by axw
Modified:
11 years, 5 months ago
Reviewers:
mp+203866, wallyworld
Visibility:
Public.

Description

Add option to disable apt in ProvisioningScript The ProvisioningScript API is updated to take a boolean option DisablePackageCommands to completely disable all package-related commands (apt-get, etc.) This is for the benefit of external provisioners that require more control over which packages are installed and from where. https://code.launchpad.net/~axwalk/juju-core/provisioningscript-api-disableaptcommands/+merge/203866 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add option to disable apt in ProvisioningScript #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/manual/provisioner.go View 1 chunk +4 lines, -1 line 0 comments Download
M state/api/client.go View 1 chunk +1 line, -5 lines 0 comments Download
M state/api/params/params.go View 1 chunk +8 lines, -1 line 0 comments Download
M state/apiserver/client/client.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 3
axw
Please take a look.
11 years, 5 months ago (2014-01-30 02:32:37 UTC) #1
wallyworld
LGTM with a test tweak https://codereview.appspot.com/58490043/diff/1/state/apiserver/client/client_test.go File state/apiserver/client/client_test.go (right): https://codereview.appspot.com/58490043/diff/1/state/apiserver/client/client_test.go#newcode1718 state/apiserver/client/client_test.go:1718: c.Assert(script, gc.Not(jc.Contains), "apt-get") Please ...
11 years, 5 months ago (2014-01-30 03:07:09 UTC) #2
axw
11 years, 5 months ago (2014-01-30 03:38:13 UTC) #3
Please take a look.

https://codereview.appspot.com/58490043/diff/1/state/apiserver/client/client_...
File state/apiserver/client/client_test.go (right):

https://codereview.appspot.com/58490043/diff/1/state/apiserver/client/client_...
state/apiserver/client/client_test.go:1718: c.Assert(script,
gc.Not(jc.Contains), "apt-get")
On 2014/01/30 03:07:10, wallyworld wrote:
> Please add the opposite check to the test above this one to ensure apt-get
still
> gets inserted in the script when DisablePackageCommands is false

Done. I'd rather test the option separately, so I just modified this test to
range over []bool{false, true} and alter the checker accordingly.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b