blob: 63f37052d90cd70053cbf945680cc8c6acb56c81 [file] [log] [blame]
{% set server = salt['grains.filter_by']({
'Debian': {
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
'service': 'mongodb',
'lock_dir': "/var/lock/mongodb",
'bind': {
'address': '0.0.0.0',
'port': 27017
},
'config_service': False,
'shard_service': True,
'admin': {
'username': 'root'
}
},
'RedHat': {
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
'service': 'mongod',
'lock_dir': "/var/lock/mongodb",
'bind': {
'address': '0.0.0.0',
'port': 27017
},
'config_service': False,
'shard_service': True,
'admin': {
'username': 'root'
}
},
}, merge=salt['pillar.get']('mongodb:server')) %}