|
Boilerplate environments.yaml
A new command "juju generate-config" is introduced to generate sensible config
for each registered provider. The Environs interface has a new method "BoilerPlateConfig()"
which is used to gather the config for each provider.
If a user has an environments.yaml already, it is not overwritten. Otherwise the boilerplate
has sensible defaults which just need a little tweaking to get a working system.
As new providers are rehistered (eg local, mass), the boilerplate header will need to be tweaked
to refer to the new providers.
As a driveby, since config is being generated, I've renamed auth-method to auth-mode.
Python juju uses auth-mode and Go juju should be compatible.
https://code.launchpad.net/~wallyworld/juju-core/boilerplate-environment-setup/+merge/145769
(do not edit description out of merge proposal)
Total comments: 39
Total comments: 34
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+457 lines, -53 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap.go
|
View
|
1
2
|
2 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap_test.go
|
View
|
1
2
3
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/generateconfig.go
|
View
|
1
2
3
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cmd/juju/generateconfig_test.go
|
View
|
1
2
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/main.go
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
environs/boilerplate_config.go
|
View
|
1
2
3
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
A |
environs/boilerplate_config_test.go
|
View
|
1
2
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/config.go
|
View
|
1
2
|
1 chunk |
+30 lines, -11 lines |
0 comments
|
Download
|
 |
M |
environs/config_test.go
|
View
|
1
2
|
3 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
 |
M |
environs/dummy/environs.go
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/ec2/ec2.go
|
View
|
1
2
3
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/export_test.go
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/interface.go
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/openstack/config.go
|
View
|
1
2
|
5 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
environs/openstack/config_test.go
|
View
|
1
2
|
5 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
environs/openstack/export_test.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
environs/openstack/live_test.go
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
environs/openstack/provider.go
|
View
|
1
2
3
|
5 chunks |
+66 lines, -11 lines |
0 comments
|
Download
|
Total messages: 13
|