kolla-ansible/ansible/roles/mongodb/templates/mongodb.json.j2
zhubingbing d62cdeddde
Fix mongodb upgrade permission issue
Change-Id: I15966415854e370228b53344bfdfbcd417e18a53
Partial-Bug: #1631503
2016-10-17 17:41:05 +08:00

24 lines
621 B
Django/Jinja

{
"command": "/usr/bin/mongod --unixSocketPrefix=/var/run/mongodb --config /etc/mongodb.conf run",
"config_files": [
{
"source": "{{ container_config_directory }}/mongodb.conf",
"dest": "/etc/mongodb.conf",
"owner": "mongodb",
"perm": "0644"
}
],
"permissions": [
{
"path": "/var/lib/kolla/mongodb",
"owner": "mongodb:mongodb",
"recurse": true
},
{
"path": "/var/log/kolla/mongodb",
"owner": "mongodb:mongodb",
"recurse": true
}
]
}