~billy-olsen/charms/xenial/mongodb/lp1513094

« back to all changes in this revision

Viewing changes to tests/04_deploy_with_storage.py

  • Committer: billy.olsen at canonical
  • Date: 2016-05-05 17:08:05 UTC
  • Revision ID: billy.olsen@canonical.com-20160505170805-e3yydbjxybg7y2xg
Move parameter logic from altering init conf file to the /etc/mongodb.conf
file. The mongdob service is already configured to read parameters from the
/etc/mongodb.conf file and moving the configuration options inside the
config file allows the systemd style service to start properly.

Also, as of MongoDB 2.6, the specification of master/slave flags on startup
is not allowed to be specified with the replicaset flags. This change allows
for the master/slave flag to be specified in the /etc/mongodb.conf file only
when the replica-set (peer) relation has not been established.
  
Closes-Bug: #1513094

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#########################################################
21
21
# 3shard cluster configuration
22
22
#########################################################
23
 
d = amulet.Deployment(series='trusty')
 
23
d = amulet.Deployment(series='xenial')
24
24
 
25
 
d.add('mongodb', units=scale, series='trusty',
 
25
d.add('mongodb', units=scale, series='xenial',
26
26
      constraints={'root-disk': '20480M'})
27
27
d.add('storage', charm='cs:~chris-gondolin/trusty/storage-5', series='trusty')
28
28
d.configure('storage', {'provider': 'local'})