|
api/provisioner: Addresses/CACert methods added
Like the deployer API, the provisioner API also
needs to provider StateAddresses(), APIAddresses(),
and CACert(), so we can use the up-to-date (not
localhost) addresses in NewAPIAuthenticator().
This is needed, because the addresses we get
from agent config are incorrect (use localhost),
and without this CL neither containers nor
machines can't connect to state/API server
at provisioning.
And because the same code is already in deployer,
I followed a suggestion to factor it out into
apiserver/common/addresses.
https://code.launchpad.net/~dimitern/juju-core/146-apiprovisioner-addresses/+merge/187719
(do not edit description out of merge proposal)
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+247 lines, -93 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
agent/agent.go
|
View
|
1
2
|
2 chunks |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
M |
state/api/provisioner/provisioner.go
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/api/provisioner/provisioner_test.go
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/common/addresses.go
|
View
|
1
2
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/apiserver/common/addresses_test.go
|
View
|
1
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/common/common_test.go
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
state/apiserver/deployer/deployer.go
|
View
|
1
|
4 chunks |
+2 lines, -63 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/provisioner/provisioner.go
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/apiserver/provisioner/provisioner_test.go
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
worker/provisioner/authentication.go
|
View
|
|
2 chunks |
+20 lines, -10 lines |
0 comments
|
Download
|
 |
M |
worker/provisioner/provisioner.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 5
|