Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Ignore puppet_config is an empty dict"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 8, 2021
2 parents 5e7ed96 + 45fca9e commit 776d375
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 106 deletions.
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,7 @@ outputs:
value:
service_name: ceph_base
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
config_settings: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ outputs:
value:
service_name: ceph_client
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ outputs:
value:
service_name: ceph_client
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
config_settings: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ outputs:
- 9100
- 9283
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-mds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ outputs:
- []
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-mgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ outputs:
- {get_param: CephEnableDashboard}
- - {get_param: CephDashboardPort}
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-mon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ outputs:
collectd::plugin::ceph::daemons: []
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ outputs:
tripleo_upgrade_key: ceph_nfs_short_node_names_override
when: ceph_nfs_short_node_names_upgraded | length == ceph_nfs_short_node_names | length
step_config: 'include tripleo::profile::pacemaker::ceph_nfs'
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
# step_config seems to be ignored if docker_config is present
#docker_config: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-osd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ outputs:
when: step|int == 2
become: true
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-rbdmirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ outputs:
dport:
- '6800-7300'
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/ceph-ansible/ceph-rgw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ outputs:
- swiftoperator
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,7 @@ outputs:
value:
service_name: ceph_base
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
config_settings: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ outputs:
value:
service_name: ceph_client
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ outputs:
value:
service_name: ceph_client
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
config_settings: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ outputs:
- 9100
- 9283
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-mds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ outputs:
- if:
- {get_param: CephEnableDashboard}
- - '9100'
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks: []
external_update_tasks: []
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-mgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ outputs:
- {get_param: CephEnableDashboard}
- - {get_param: CephDashboardPort}
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-mon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ outputs:
- ceph
collectd::plugin::ceph::daemons: []
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks: []
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ outputs:
tripleo_upgrade_key: ceph_nfs_short_node_names_override
when: ceph_nfs_short_node_names_upgraded | length == ceph_nfs_short_node_names | length
step_config: 'include tripleo::profile::pacemaker::ceph_nfs'
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
# step_config seems to be ignored if docker_config is present
#docker_config: {}
external_deploy_tasks:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-osd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ outputs:
tripleo.collectd.plugins.ceph_osd:
- ceph
collectd::plugin::ceph::daemons: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-rbdmirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ outputs:
dport:
- '6800-7300'
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks: []
5 changes: 1 addition & 4 deletions deployment/cephadm/ceph-rgw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ outputs:
- swiftoperator
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
external_deploy_tasks:
list_concat:
Expand Down
5 changes: 1 addition & 4 deletions deployment/logging/rsyslog-baremetal-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ outputs:
deploy_steps_tasks: []
docker_config: {}
kolla_config: {}
puppet_config:
config_volume: ''
step_config: ''
config_image: ''
puppet_config: {}
host_prep_tasks:
- name: Ensure rsyslog is installed
package:
Expand Down
5 changes: 1 addition & 4 deletions deployment/octavia/octavia-deployment-config.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ outputs:
value:
service_name: octavia_deployment_config
upgrade_tasks: []
puppet_config:
config_image: ''
config_volume: ''
step_config: ''
puppet_config: {}
docker_config: {}
config_settings: {}
external_post_deploy_tasks:
Expand Down
6 changes: 1 addition & 5 deletions deployment/ovn/ovn-dbs-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ outputs:
# the NB and SB DB servers to listen on the proper IP address/port
# in the docker_config section.
# puppet_config is defined to satisfy the pep8 validations.
puppet_config:
config_volume: ''
config_image: ''
step_config: |
include tripleo::profile::base::neutron::ovn_northd #unused
puppet_config: {}
kolla_config:
/var/lib/kolla/config_files/ovn_north_db_server.json:
command: /usr/local/bin/start-nb-db-server
Expand Down
5 changes: 1 addition & 4 deletions deployment/undercloud/undercloud-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ outputs:
deploy_steps_tasks: []
docker_config: {}
kolla_config: {}
puppet_config:
config_volume: ''
step_config: ''
config_image: ''
puppet_config: {}
upgrade_tasks:
- name: Enforce RHOSP rules regarding subscription.
include_role:
Expand Down
3 changes: 2 additions & 1 deletion tools/yaml-validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,8 @@ def validate_docker_service(filename, tpl):
return 1

if 'puppet_config' in role_data and \
VALIDATE_DOCKER_PUPPET_CONFIG_OVERRIDE.get(filename, True):
VALIDATE_DOCKER_PUPPET_CONFIG_OVERRIDE.get(filename, True) and \
role_data.get('puppet_config', {}) != {}:
if validate_docker_service_mysql_usage(filename, tpl):
print('ERROR: could not validate use of mysql service for %s.'
% filename)
Expand Down

0 comments on commit 776d375

Please sign in to comment.