|
local: use sudo internally
The local provider has been updated to do several things:
- use environs/cloudinit to bootstrap
- rely on the terminationworker to cleanup
- prevent bootstrap if the user is root (forcing good practice)
- use sudo internally, in bootstrap/destroy
Bootstrap now generates a script, a la manual bootstrap,
and executes it with "sudo bash". Destroy works by repeating
the "juju destroy-environment" command under sudo, which is
necessary to destroy any leftover containers.
https://code.launchpad.net/~axwalk/juju-core/local-provider-environs-cloudinit/+merge/202791
(do not edit description out of merge proposal)
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+385 lines, -487 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
agent/agent.go
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cmd/jujud/machine.go
|
View
|
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit.go
|
View
|
|
2 chunks |
+20 lines, -2 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit/cloudinit.go
|
View
|
1
|
14 chunks |
+90 lines, -51 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit/cloudinit_test.go
|
View
|
1
|
14 chunks |
+83 lines, -36 lines |
0 comments
|
Download
|
|
M |
environs/cloudinit_test.go
|
View
|
|
1 chunk |
+12 lines, -8 lines |
0 comments
|
Download
|
|
M |
provider/azure/customdata_test.go
|
View
|
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
provider/local/config.go
|
View
|
|
5 chunks |
+7 lines, -36 lines |
0 comments
|
Download
|
|
M |
provider/local/config_test.go
|
View
|
|
2 chunks |
+9 lines, -23 lines |
0 comments
|
Download
|
|
M |
provider/local/environ.go
|
View
|
1
|
9 chunks |
+92 lines, -301 lines |
0 comments
|
Download
|
|
M |
provider/local/environ_test.go
|
View
|
1
|
4 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
provider/local/environprovider.go
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
provider/local/export_test.go
|
View
|
|
2 chunks |
+6 lines, -12 lines |
1 comment
|
Download
|
|
M |
provider/local/instance.go
|
View
|
|
1 chunk |
+14 lines, -8 lines |
0 comments
|
Download
|
Total messages: 6
|