· 10 years ago · Apr 05, 2016, 06:51 PM
1user: admin
2password: test
3environ-uuid: ENVIRONMENT_UUID
4state-servers:
5- ip-address-of-your-bootstrap-node:17070
6
7server-hostnames:
8- ip-address-of-your-bootstrap-node:17070
9
10ca-cert: CA_CERT
11
12bootstrap-config:
13 access-key: ""
14 admin-secret: TO_BE_DEFINED
15 agent-metadata-url: https://streams.canonical.com/juju/tools/
16 api-port: 17070
17 apt-http-proxy: http://squid.internal:3128
18 apt-https-proxy: http://squid.internal:3128
19 auth-mode: userpass
20 auth-url: http://10.230.19.65:5000/v2.0
21 authorized-keys:
22 bootstrap-addresses-delay: 10
23 bootstrap-retry-delay: 5
24 bootstrap-timeout: 600
25 ca-cert: SECOND_CA_CERT
26 ca-private-key: SECOND_CA_CERT_PRIVATE
27 charm-store-auth: ""
28 control-bucket: CONTROL_BUCKET
29 default-series: ""
30 development: false
31 disable-network-management: false
32 firewall-mode: instance
33 image-metadata-url: http://x.x.x.x:80/swift/v1/simplestreams/data/
34 image-stream: released
35 logging-config: <root>=WARNING;unit=DEBUG
36 lxc-clone-aufs: false
37 name: USERNAME
38 network: ""
39 password: PASSWORD
40 prefer-ipv6: false
41 proxy-ssh: true
42 region: region
43 secret-key: ""
44 set-numa-control-policy: false
45 ssl-hostname-verification: true
46 state-port: 37017
47 syslog-port: 6514
48 tenant-name: USERNAME
49 test-mode: false
50 tools-metadata-url: https://streams.canonical.com/juju/tools/
51 type: openstack
52 use-default-secgroup: true
53 use-floating-ip: false
54 username: USERNAME
55 uuid: ENVIRONMENT_UUID
56
57mongo --ssl -u admin -p $(grep oldpassword /var/lib/juju/agents/machine-0/agent.conf | awk -e '{print $2}') localhost:37017/admin
58
59juju:PRIMARY> db = db.getSiblingDB('juju')
60juju:PRIMARY> db.environments.find().pretty()
61
62{ "_id" : "cc503d03-6933-47a7-8a16-4d1094a6593e"
63
64# look for 'ca-cert' in this mess of output, copy out into your file
65# with 'begin' and 'end' blocks. Look at another .jenv to get the
66# right yaml format
67juju:PRIMARY> db.settings.find().pretty()