Rename docker_config_scripts to container_config_scripts

Change-Id: Iabd65560c2fc28b3aeca07a21efa861c4c583c01
This commit is contained in:
Emilien Macchi 2019-03-05 19:22:34 -05:00
parent c94964e45e
commit 160cddda3f
34 changed files with 44 additions and 44 deletions

View File

@ -244,11 +244,11 @@
force: yes force: yes
mode: "{{ item[1].mode | default('0600', true) }}" mode: "{{ item[1].mode | default('0600', true) }}"
setype: svirt_sandbox_file_t setype: svirt_sandbox_file_t
loop: "{{ role_data_docker_config_scripts | dictsort }}" loop: "{{ role_data_container_config_scripts | dictsort }}"
loop_control: loop_control:
label: "{{ item[0] }}" label: "{{ item[0] }}"
vars: vars:
role_data_docker_config_scripts: "{{ lookup('file', tripleo_role_name + '/docker_config_scripts.yaml', errors='ignore') | default({}, True) | from_yaml }}" role_data_container_config_scripts: "{{ lookup('file', tripleo_role_name + '/container_config_scripts.yaml', errors='ignore') | default({}, True) | from_yaml }}"
tags: tags:
- container_config_scripts - container_config_scripts

View File

@ -102,11 +102,11 @@ resources:
value: value:
yaql: yaql:
expression: expression:
# select 'docker_config_scripts' only from services that have it # select 'container_config_scripts' only from services that have it
coalesce($.data.service_names, []).zip(coalesce($.data.docker_config_scripts, [])).where($[1] != null).select($[1]).reduce($1.mergeWith($2), {}) coalesce($.data.service_names, []).zip(coalesce($.data.container_config_scripts, [])).where($[1] != null).select($[1]).reduce($1.mergeWith($2), {})
data: data:
service_names: {get_attr: [ServiceChain, role_data, service_names]} service_names: {get_attr: [ServiceChain, role_data, service_names]}
docker_config_scripts: {get_attr: [ServiceChain, role_data, docker_config_scripts]} container_config_scripts: {get_attr: [ServiceChain, role_data, container_config_scripts]}
MonitoringSubscriptionsConfig: MonitoringSubscriptionsConfig:
type: OS::Heat::Value type: OS::Heat::Value
@ -368,7 +368,7 @@ outputs:
puppet_config: {get_attr: [PuppetConfig, value]} puppet_config: {get_attr: [PuppetConfig, value]}
kolla_config: {get_attr: [KollaConfig, value]} kolla_config: {get_attr: [KollaConfig, value]}
docker_config: {get_attr: [DockerConfig, value]} docker_config: {get_attr: [DockerConfig, value]}
docker_config_scripts: {get_attr: [DockerConfigScripts, value]} container_config_scripts: {get_attr: [DockerConfigScripts, value]}
container_puppet_tasks: container_puppet_tasks:
map_merge: map_merge:
- {get_attr: [ContainerPuppetTasks, value]} - {get_attr: [ContainerPuppetTasks, value]}

View File

@ -20,9 +20,9 @@ import stat
from oslotest import base from oslotest import base
from docker_config_scripts.nova_statedir_ownership import \ from container_config_scripts.nova_statedir_ownership import \
NovaStatedirOwnershipManager NovaStatedirOwnershipManager
from docker_config_scripts.nova_statedir_ownership import PathManager from container_config_scripts.nova_statedir_ownership import PathManager
# Real chown would require root, so in order to test this we need to fake # Real chown would require root, so in order to test this we need to fake
# all of the methods that interact with the filesystem # all of the methods that interact with the filesystem

View File

@ -165,7 +165,7 @@ outputs:
- path: /var/log/cinder - path: /var/log/cinder
owner: cinder:cinder owner: cinder:cinder
recurse: true recurse: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
cinder_backup_init_logs: cinder_backup_init_logs:

View File

@ -149,7 +149,7 @@ outputs:
- path: /var/log/cinder - path: /var/log/cinder
owner: cinder:cinder owner: cinder:cinder
recurse: true recurse: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
cinder_volume_init_logs: cinder_volume_init_logs:

View File

@ -198,7 +198,7 @@ outputs:
owner: mysql:mysql owner: mysql:mysql
perm: '0600' perm: '0600'
optional: true optional: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_1: step_1:
mysql_data_ownership: mysql_data_ownership:

View File

@ -205,7 +205,7 @@ outputs:
owner: root:root owner: root:root
perm: '0600' perm: '0600'
optional: true optional: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_2: step_2:
map_merge: map_merge:

View File

@ -241,7 +241,7 @@ outputs:
owner: haproxy:haproxy owner: haproxy:haproxy
recurse: true recurse: true
optional: true optional: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_1: step_1:
map_merge: map_merge:

View File

@ -225,7 +225,7 @@ outputs:
owner: haproxy:haproxy owner: haproxy:haproxy
perm: '0600' perm: '0600'
optional: true optional: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_2: step_2:
haproxy_restart_bundle: haproxy_restart_bundle:

View File

@ -453,7 +453,7 @@ outputs:
- path: /var/log/ironic - path: /var/log/ironic
owner: ironic:ironic owner: ironic:ironic
recurse: true recurse: true
docker_config_scripts: container_config_scripts:
create_swift_temp_url_key.sh: create_swift_temp_url_key.sh:
mode: "0700" mode: "0700"
content: | content: |

View File

@ -130,7 +130,7 @@ outputs:
- path: /var/log/manila - path: /var/log/manila
owner: manila:manila owner: manila:manila
recurse: true recurse: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
manila_share_init_logs: manila_share_init_logs:

View File

@ -266,7 +266,7 @@ outputs:
owner: neutron:neutron owner: neutron:neutron
- path: /etc/pki/tls/private/neutron.key - path: /etc/pki/tls/private/neutron.key
owner: neutron:neutron owner: neutron:neutron
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_2: step_2:
create_dnsmasq_wrapper: create_dnsmasq_wrapper:

View File

@ -235,7 +235,7 @@ outputs:
- path: /var/lib/neutron - path: /var/lib/neutron
owner: neutron:neutron owner: neutron:neutron
recurse: true recurse: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_2: step_2:
create_keepalived_wrapper: create_keepalived_wrapper:

View File

@ -239,7 +239,7 @@ outputs:
- path: /var/log/neutron - path: /var/log/neutron
owner: neutron:neutron owner: neutron:neutron
recurse: true recurse: true
docker_config_scripts: container_config_scripts:
neutron_ovs_agent_launcher.sh: neutron_ovs_agent_launcher.sh:
mode: "0755" mode: "0755"
content: content:

View File

@ -143,8 +143,8 @@ outputs:
- /run/openvswitch:/run/openvswitch - /run/openvswitch:/run/openvswitch
kolla_config: kolla_config:
get_attr: [NeutronOvsAgent, role_data, kolla_config] get_attr: [NeutronOvsAgent, role_data, kolla_config]
docker_config_scripts: container_config_scripts:
get_attr: [NeutronOvsAgent, role_data, docker_config_scripts] get_attr: [NeutronOvsAgent, role_data, container_config_scripts]
docker_config: docker_config:
get_attr: [NeutronOvsAgent, role_data, docker_config] get_attr: [NeutronOvsAgent, role_data, docker_config]
metadata_settings: metadata_settings:

View File

@ -307,7 +307,7 @@ outputs:
- path: /var/log/nova - path: /var/log/nova
owner: nova:nova owner: nova:nova
recurse: true recurse: true
docker_config_scripts: container_config_scripts:
nova_api_ensure_default_cell.sh: nova_api_ensure_default_cell.sh:
mode: "0700" mode: "0700"
content: content:

View File

@ -34,15 +34,15 @@ parameters:
type: json type: json
outputs: outputs:
docker_config_scripts: container_config_scripts:
description: Shared docker config scripts description: Shared docker config scripts
value: value:
nova_statedir_ownership.py: nova_statedir_ownership.py:
mode: "0700" mode: "0700"
content: { get_file: ../../docker_config_scripts/nova_statedir_ownership.py } content: { get_file: ../../container_config_scripts/nova_statedir_ownership.py }
nova_wait_for_placement_service.py: nova_wait_for_placement_service.py:
mode: "0700" mode: "0700"
content: { get_file: ../../docker_config_scripts/nova_wait_for_placement_service.py } content: { get_file: ../../container_config_scripts/nova_wait_for_placement_service.py }
nova_cell_v2_discover_host.py: nova_cell_v2_discover_host.py:
mode: "0700" mode: "0700"
content: { get_file: ../../docker_config_scripts/nova_cell_v2_discover_host.py } content: { get_file: ../../container_config_scripts/nova_cell_v2_discover_host.py }

View File

@ -479,10 +479,10 @@ outputs:
USER: {get_param: CephClientUserName} USER: {get_param: CephClientUserName}
owner: nova:nova owner: nova:nova
perm: '0600' perm: '0600'
docker_config_scripts: container_config_scripts:
map_merge: map_merge:
- {get_attr: [ContainersCommon, docker_config_scripts]} - {get_attr: [ContainersCommon, container_config_scripts]}
- {get_attr: [NovaComputeCommon, docker_config_scripts]} - {get_attr: [NovaComputeCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
nova_statedir_owner: nova_statedir_owner:

View File

@ -115,10 +115,10 @@ outputs:
- path: /var/log/nova - path: /var/log/nova
owner: nova:nova owner: nova:nova
recurse: true recurse: true
docker_config_scripts: container_config_scripts:
map_merge: map_merge:
- {get_attr: [ContainersCommon, docker_config_scripts]} - {get_attr: [ContainersCommon, container_config_scripts]}
- {get_attr: [NovaComputeCommon, docker_config_scripts]} - {get_attr: [NovaComputeCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
nova_statedir_owner: nova_statedir_owner:

View File

@ -155,7 +155,7 @@ outputs:
optional: true optional: true
# When using pacemaker we don't launch the container, instead that is done by pacemaker # When using pacemaker we don't launch the container, instead that is done by pacemaker
# itself. # itself.
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_1: step_1:
rabbitmq_bootstrap: rabbitmq_bootstrap:

View File

@ -155,7 +155,7 @@ outputs:
optional: true optional: true
# When using pacemaker we don't launch the container, instead that is done by pacemaker # When using pacemaker we don't launch the container, instead that is done by pacemaker
# itself. # itself.
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_1: step_1:
rabbitmq_bootstrap: rabbitmq_bootstrap:

View File

@ -155,7 +155,7 @@ outputs:
optional: true optional: true
# When using pacemaker we don't launch the container, instead that is done by pacemaker # When using pacemaker we don't launch the container, instead that is done by pacemaker
# itself. # itself.
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_1: step_1:
rabbitmq_bootstrap: rabbitmq_bootstrap:

View File

@ -316,7 +316,7 @@ outputs:
dest: "/" dest: "/"
merge: true merge: true
preserve_properties: true preserve_properties: true
docker_config_scripts: container_config_scripts:
create_swift_secret.sh: create_swift_secret.sh:
mode: "0700" mode: "0700"
content: | content: |

View File

@ -48,7 +48,7 @@ conditions:
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
outputs: outputs:
docker_config_scripts: container_config_scripts:
description: Shared docker config scripts description: Shared docker config scripts
value: value:
docker_puppet_apply.sh: docker_puppet_apply.sh:
@ -85,7 +85,7 @@ outputs:
exit $rc exit $rc
pyshim.sh: pyshim.sh:
mode: "0700" mode: "0700"
content: { get_file: ../../docker_config_scripts/pyshim.sh } content: { get_file: ../../container_config_scripts/pyshim.sh }
volumes_base: volumes_base:
description: Base volume list description: Base volume list
@ -120,7 +120,7 @@ outputs:
- /etc/puppet:/etc/puppet:ro - /etc/puppet:/etc/puppet:ro
docker_puppet_apply_volumes: docker_puppet_apply_volumes:
description: Common volumes needed to run the docker_puppet_apply.sh from docker_config_scripts description: Common volumes needed to run the docker_puppet_apply.sh from container_config_scripts
value: value:
list_concat: list_concat:
- *volumes_base - *volumes_base

View File

@ -131,7 +131,7 @@ outputs:
- path: /var/lib/neutron - path: /var/lib/neutron
owner: neutron:neutron owner: neutron:neutron
recurse: true recurse: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_2: step_2:
create_haproxy_wrapper: create_haproxy_wrapper:

View File

@ -124,7 +124,7 @@ outputs:
merge: true merge: true
preserve_properties: true preserve_properties: true
optional: true optional: true
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]} container_config_scripts: {get_attr: [ContainersCommon, container_config_scripts]}
docker_config: docker_config:
step_3: step_3:
ovn_dbs_restart_bundle: ovn_dbs_restart_bundle:

View File

@ -65,7 +65,7 @@ OPTIONAL_DOCKER_SECTIONS = ['container_puppet_tasks', 'upgrade_tasks',
'host_prep_tasks', 'metadata_settings', 'host_prep_tasks', 'metadata_settings',
'kolla_config', 'global_config_settings', 'kolla_config', 'global_config_settings',
'external_deploy_tasks', 'external_post_deploy_tasks', 'external_deploy_tasks', 'external_post_deploy_tasks',
'docker_config_scripts', 'step_config', 'container_config_scripts', 'step_config',
'monitoring_subscription', 'monitoring_subscription',
'external_update_tasks', 'external_upgrade_tasks'] 'external_update_tasks', 'external_upgrade_tasks']
# ansible tasks cannot be an empty dict or ansible is unhappy # ansible tasks cannot be an empty dict or ansible is unhappy

View File

@ -26,11 +26,11 @@ commands =
python ./tools/yaml-validate.py . python ./tools/yaml-validate.py .
bash -c ./tools/roles-data-validation.sh bash -c ./tools/roles-data-validation.sh
bash -c ./tools/check-up-to-date.sh bash -c ./tools/check-up-to-date.sh
flake8 ./docker_config_scripts/ flake8 ./container_config_scripts/
[testenv:flake8] [testenv:flake8]
commands = commands =
flake8 ./docker_config_scripts/ flake8 ./container_config_scripts/
[testenv:templates] [testenv:templates]
basepython = python3 basepython = python3