Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(212)

Issue 10990043: Move state initialization out of jujud bootstrap

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by thumper
Modified:
10 years, 9 months ago
Reviewers:
mue, mp+173390, dave
Visibility:
Public.

Description

Move state initialization out of jujud bootstrap Methods to configure the initial state connection and dealing with passwords were inside the jujud bootstrap command, which isn't going to be used by the local provider, so the functions need to be extracted. https://code.launchpad.net/~thumper/juju-core/environ-bootstrap/+merge/173390 Requires: https://code.launchpad.net/~thumper/juju-core/local-provider-storage/+merge/173386 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -66 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 3 chunks +5 lines, -66 lines 0 comments Download
M environs/bootstrap.go View 2 chunks +82 lines, -0 lines 10 comments Download

Messages

Total messages: 4
thumper
Please take a look.
10 years, 9 months ago (2013-07-08 01:21:00 UTC) #1
dave_cheney.net
LGTM. Thank you. https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go File environs/bootstrap.go (right): https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode66 environs/bootstrap.go:66: comment please https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode68 environs/bootstrap.go:68: logger.Debugf("add admin ...
10 years, 9 months ago (2013-07-08 01:55:38 UTC) #2
mue
LGTM, only one wish for a name change. https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go File environs/bootstrap.go (right): https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode66 environs/bootstrap.go:66: On ...
10 years, 9 months ago (2013-07-08 08:44:14 UTC) #3
thumper
10 years, 9 months ago (2013-07-08 22:48:13 UTC) #4
https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go
File environs/bootstrap.go (right):

https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode66
environs/bootstrap.go:66: 
On 2013/07/08 08:44:14, mue wrote:
> On 2013/07/08 01:55:38, dfc wrote:
> > comment please
> 
> +1

Done.

https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode67
environs/bootstrap.go:67: func BootstrapMongoUsers(st *state.State, cfg
*config.Config, passwordHash string) error {
On 2013/07/08 08:44:14, mue wrote:
> Would prefer a technology independent name here: 
> 
> - BootstrapUsers()
> - BootstrapDatabaseUsers()
> - BootstrapstateUsers()
> - ...

BootstrapUsers it is.

https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode68
environs/bootstrap.go:68: logger.Debugf("add admin user")
On 2013/07/08 01:55:38, dfc wrote:
> adding admin user

Done.

https://codereview.appspot.com/10990043/diff/1/environs/bootstrap.go#newcode89
environs/bootstrap.go:89: 
On 2013/07/08 08:44:14, mue wrote:
> On 2013/07/08 01:55:38, dfc wrote:
> > comment please
> 
> +1

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b