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
mode: "{{ item[1].mode | default('0600', true) }}"
setype: svirt_sandbox_file_t
loop: "{{ role_data_docker_config_scripts | dictsort }}"
loop: "{{ role_data_container_config_scripts | dictsort }}"
loop_control:
label: "{{ item[0] }}"
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:
- container_config_scripts

View File

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

View File

@ -20,9 +20,9 @@ import stat
from oslotest import base
from docker_config_scripts.nova_statedir_ownership import \
from container_config_scripts.nova_statedir_ownership import \
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
# all of the methods that interact with the filesystem

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -34,15 +34,15 @@ parameters:
type: json
outputs:
docker_config_scripts:
container_config_scripts:
description: Shared docker config scripts
value:
nova_statedir_ownership.py:
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:
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:
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}
owner: nova:nova
perm: '0600'
docker_config_scripts:
container_config_scripts:
map_merge:
- {get_attr: [ContainersCommon, docker_config_scripts]}
- {get_attr: [NovaComputeCommon, docker_config_scripts]}
- {get_attr: [ContainersCommon, container_config_scripts]}
- {get_attr: [NovaComputeCommon, container_config_scripts]}
docker_config:
step_3:
nova_statedir_owner:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -48,7 +48,7 @@ conditions:
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
outputs:
docker_config_scripts:
container_config_scripts:
description: Shared docker config scripts
value:
docker_puppet_apply.sh:
@ -85,7 +85,7 @@ outputs:
exit $rc
pyshim.sh:
mode: "0700"
content: { get_file: ../../docker_config_scripts/pyshim.sh }
content: { get_file: ../../container_config_scripts/pyshim.sh }
volumes_base:
description: Base volume list
@ -120,7 +120,7 @@ outputs:
- /etc/puppet:/etc/puppet:ro
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:
list_concat:
- *volumes_base

View File

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

View File

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

View File

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

View File

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