Merge "Fixup for manila-api containerized service"
This commit is contained in:
commit
df361575fa
@ -14,7 +14,8 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
DockerManilaConfigImage:
|
DockerManilaConfigImage:
|
||||||
description: image
|
description: image
|
||||||
default: 'centos-binary-manila-base:latest'
|
default: 'centos-binary-manila-api:latest'
|
||||||
|
type: string
|
||||||
EndpointMap:
|
EndpointMap:
|
||||||
default: {}
|
default: {}
|
||||||
description: Mapping of service endpoint -> protocol. Typically set
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
@ -40,6 +41,9 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ./containers-common.yaml
|
||||||
|
|
||||||
ManilaApiPuppetBase:
|
ManilaApiPuppetBase:
|
||||||
type: ../../puppet/services/manila-api.yaml
|
type: ../../puppet/services/manila-api.yaml
|
||||||
properties:
|
properties:
|
||||||
@ -73,20 +77,27 @@ outputs:
|
|||||||
owner: manila:manila
|
owner: manila:manila
|
||||||
recurse: true
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_3:
|
step_2:
|
||||||
manila_api_db_sync:
|
manila_init_logs:
|
||||||
user: root
|
|
||||||
image: &manila_api_image
|
image: &manila_api_image
|
||||||
list_join:
|
list_join:
|
||||||
- '/'
|
- '/'
|
||||||
- [ {get_param: DockerNamespace}, {get_param: DockerManilaApiImage} ]
|
- [ {get_param: DockerNamespace}, {get_param: DockerManilaApiImage} ]
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- /var/log/containers/manila:/var/log/manila
|
||||||
|
command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R manila:manila /var/log/manila']
|
||||||
|
step_3:
|
||||||
|
manila_api_db_sync:
|
||||||
|
user: root
|
||||||
|
image: *manila_api_image
|
||||||
net: host
|
net: host
|
||||||
detach: false
|
detach: false
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/config-data/manila/etc/manila/:/etc/manila:ro
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
- /etc/hosts:/etc/hosts:ro
|
-
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /var/lib/config-data/manila/etc/manila/:/etc/manila/:ro
|
||||||
- logs:/var/log
|
- /var/log/containers/manila:/var/log/manila
|
||||||
command: "/usr/bin/bootstrap_host_exec manila_api su manila -s /bin/bash -c '/usr/bin/manila-manage db sync'"
|
command: "/usr/bin/bootstrap_host_exec manila_api su manila -s /bin/bash -c '/usr/bin/manila-manage db sync'"
|
||||||
step_4:
|
step_4:
|
||||||
manila_api:
|
manila_api:
|
||||||
@ -94,11 +105,12 @@ outputs:
|
|||||||
net: host
|
net: host
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/kolla/config_files/manila_api.json:/var/lib/kolla/config_files/config.json:ro
|
list_concat:
|
||||||
- /var/lib/config-data/manila/etc/manila/:/etc/manila/:ro
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
- /etc/hosts:/etc/hosts:ro
|
-
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /var/lib/kolla/config_files/manila_api.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
- /var/log/containers/manila:/var/log/manila
|
- /var/lib/config-data/manila/etc/manila/:/etc/manila/:ro
|
||||||
|
- /var/log/containers/manila:/var/log/manila
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user