|
Add a worker to keep disk files up to date
Added the machine environment worker which watches
the environment config and will write changes to the
disk as needed.
A new end point was added on the client and server side
that is just called "Environment", which provies the common
environment watcher.
The only gotcha in this is that if the worker is running on
machine 0 for a local provider, it shouldn't attempt to modify
system files. There are tests for this.
The two files on disk that are currently being kept up
to date with this are:
/home/ubuntu/.juju-proxy
/etc/apt/apt.conf.d/42-juju-proxy-settings
https://code.launchpad.net/~thumper/juju-core/machine-worker/+merge/203460
Requires: https://code.launchpad.net/~thumper/juju-core/fix-uniter-proxy-env-vars/+merge/203459
(do not edit description out of merge proposal)
Total comments: 18
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+642 lines, -1 line) |
Patch |
 |
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/machine.go
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/machine_test.go
|
View
|
1
|
4 chunks |
+45 lines, -0 lines |
1 comment
|
Download
|
 |
M |
environs/cloudinit/cloudinit.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
state/api/environment/environment.go
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/api/environment/environment_test.go
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/api/environment/package_test.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/state.go
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/environment/environment.go
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/environment/environment_test.go
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/environment/package_test.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/root.go
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
utils/apt.go
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
worker/machineenvironmentworker/machineenvironmentworker.go
|
View
|
1
|
1 chunk |
+173 lines, -0 lines |
0 comments
|
Download
|
 |
A |
worker/machineenvironmentworker/machineenvironmentworker_test.go
|
View
|
|
1 chunk |
+222 lines, -0 lines |
0 comments
|
Download
|
 |
A |
worker/machineenvironmentworker/package_test.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|