Description:
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
Affected files (+580, -1 lines):
A [revision details]
M cmd/jujud/machine.go
M environs/cloudinit/cloudinit.go
A state/api/environment/environment.go
A state/api/environment/environment_test.go
A state/api/environment/package_test.go
M state/api/state.go
A state/apiserver/environment/environment.go
A state/apiserver/environment/environment_test.go
A state/apiserver/environment/package_test.go
M state/apiserver/root.go
M utils/apt.go
A worker/machineenvironmentworker/machineenvironmentworker.go
A worker/machineenvironmentworker/machineenvironmentworker_test.go
A worker/machineenvironmentworker/package_test.go
Reviewers: mp+203460_ code.launchpad. net,
Message:
Please take a look.
Description:
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 ubuntu/ .juju-proxy apt/apt. conf.d/ 42-juju- proxy-settings
to date with this are:
/home/
/etc/
https:/ /code.launchpad .net/~thumper/ juju-core/ machine- worker/ +merge/ 203460
Requires: /code.launchpad .net/~thumper/ juju-core/ fix-uniter- proxy-env- vars/+merge/ 203459
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/57600043/
Affected files (+580, -1 lines): machine. go cloudinit/ cloudinit. go environment/ environment. go environment/ environment_ test.go environment/ package_ test.go /environment/ environment. go /environment/ environment_ test.go /environment/ package_ test.go /root.go machineenvironm entworker/ machineenvironm entworker. go machineenvironm entworker/ machineenvironm entworker_ test.go machineenvironm entworker/ package_ test.go
A [revision details]
M cmd/jujud/
M environs/
A state/api/
A state/api/
A state/api/
M state/api/state.go
A state/apiserver
A state/apiserver
A state/apiserver
M state/apiserver
M utils/apt.go
A worker/
A worker/
A worker/