Merge "Keep existing data for containerized MongoDB"
This commit is contained in:
commit
5b2a1bc329
@ -73,7 +73,16 @@ outputs:
|
|||||||
perm: '0600'
|
perm: '0600'
|
||||||
docker_config:
|
docker_config:
|
||||||
step_2:
|
step_2:
|
||||||
|
mongodb_data_ownership:
|
||||||
|
start_order: 0
|
||||||
|
image: *mongodb_image
|
||||||
|
net: host
|
||||||
|
user: root
|
||||||
|
command: ['chown', '-R', 'mongodb:', '/var/lib/mongodb']
|
||||||
|
volumes:
|
||||||
|
- /var/lib/mongodb:/var/lib/mongodb
|
||||||
mongodb:
|
mongodb:
|
||||||
|
start_order: 1
|
||||||
image: *mongodb_image
|
image: *mongodb_image
|
||||||
net: host
|
net: host
|
||||||
privileged: false
|
privileged: false
|
||||||
@ -82,7 +91,7 @@ outputs:
|
|||||||
- /var/lib/config-data/mongodb/:/var/lib/kolla/config_files/src:ro
|
- /var/lib/config-data/mongodb/:/var/lib/kolla/config_files/src:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- logs:/var/log/kolla
|
- logs:/var/log/kolla
|
||||||
- mongodb:/var/lib/mongodb/
|
- /var/lib/mongodb:/var/lib/mongodb
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
docker_puppet_tasks:
|
docker_puppet_tasks:
|
||||||
@ -98,6 +107,11 @@ outputs:
|
|||||||
volumes:
|
volumes:
|
||||||
- "mongodb:/var/lib/mongodb/"
|
- "mongodb:/var/lib/mongodb/"
|
||||||
- "logs:/var/log/kolla:ro"
|
- "logs:/var/log/kolla:ro"
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create /var/lib/mongodb
|
||||||
|
file:
|
||||||
|
path: /var/lib/mongodb
|
||||||
|
state: directory
|
||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
- name: Stop and disable mongodb service
|
- name: Stop and disable mongodb service
|
||||||
tags: step2
|
tags: step2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user