Browse Source

Add mode option when creating persistent directories.

Almost every single tripleo service creates a persistent directory. To
simplify the creation, a with_items structure was being used. In which
many times, the mode option was being set. However, that mode option
was not taken into account at the time of creating the file. As a
consequence, the directory was being created with its father directory
rights, instead of the ones being passed in the template.

Change-Id: I215db2bb79029c19ab8c62a7ae8d93cec50fb8dc
Closes-Bug: #1871231
(cherry picked from commit 94bc023390)
changes/43/725543/2
Jose Luis Franco Arza 2 years ago
committed by Jesse Pretorius (odyssey4me)
parent
commit
56acca5078
  1. 1
      deployment/aodh/aodh-api-container-puppet.yaml
  2. 1
      deployment/aodh/aodh-evaluator-container-puppet.yaml
  3. 1
      deployment/aodh/aodh-listener-container-puppet.yaml
  4. 1
      deployment/aodh/aodh-notifier-container-puppet.yaml
  5. 1
      deployment/ceilometer/ceilometer-agent-central-container-puppet.yaml
  6. 1
      deployment/ceilometer/ceilometer-agent-compute-container-puppet.yaml
  7. 1
      deployment/ceilometer/ceilometer-agent-ipmi-container-puppet.yaml
  8. 1
      deployment/ceilometer/ceilometer-agent-notification-container-puppet.yaml
  9. 1
      deployment/cinder/cinder-api-container-puppet.yaml
  10. 1
      deployment/cinder/cinder-common-container-puppet.yaml
  11. 1
      deployment/cinder/cinder-scheduler-container-puppet.yaml
  12. 1
      deployment/database/mysql-container-puppet.yaml
  13. 1
      deployment/database/mysql-pacemaker-puppet.yaml
  14. 2
      deployment/database/redis-container-puppet.yaml
  15. 1
      deployment/database/redis-pacemaker-puppet.yaml
  16. 1
      deployment/experimental/designate/designate-api-container-puppet.yaml
  17. 1
      deployment/experimental/designate/designate-central-container-puppet.yaml
  18. 1
      deployment/experimental/designate/designate-mdns-container-puppet.yaml
  19. 1
      deployment/experimental/designate/designate-producer-container-puppet.yaml
  20. 1
      deployment/experimental/designate/designate-sink-container-puppet.yaml
  21. 1
      deployment/experimental/designate/designate-worker-container-puppet.yaml
  22. 1
      deployment/glance/glance-api-logging-file-container.yaml
  23. 1
      deployment/gnocchi/gnocchi-api-container-puppet.yaml
  24. 1
      deployment/gnocchi/gnocchi-metricd-container-puppet.yaml
  25. 1
      deployment/gnocchi/gnocchi-statsd-container-puppet.yaml
  26. 1
      deployment/haproxy/haproxy-container-puppet.yaml
  27. 1
      deployment/haproxy/haproxy-pacemaker-puppet.yaml
  28. 1
      deployment/horizon/horizon-container-puppet.yaml
  29. 1
      deployment/ironic/ironic-api-container-puppet.yaml
  30. 1
      deployment/ironic/ironic-conductor-container-puppet.yaml
  31. 4
      deployment/ironic/ironic-inspector-container-puppet.yaml
  32. 1
      deployment/ironic/ironic-pxe-container-puppet.yaml
  33. 1
      deployment/keepalived/keepalived-container-puppet.yaml
  34. 1
      deployment/logging/files/barbican-api.yaml
  35. 1
      deployment/logging/files/heat-api-cfn.yaml
  36. 1
      deployment/logging/files/heat-api.yaml
  37. 1
      deployment/logging/files/heat-engine.yaml
  38. 1
      deployment/logging/files/keystone.yaml
  39. 1
      deployment/logging/files/neutron-api.yaml
  40. 1
      deployment/logging/files/neutron-common.yaml
  41. 1
      deployment/logging/files/nova-api.yaml
  42. 1
      deployment/logging/files/nova-common.yaml
  43. 1
      deployment/logging/files/nova-libvirt.yaml
  44. 1
      deployment/logging/files/nova-metadata.yaml
  45. 1
      deployment/logging/files/placement-api.yaml
  46. 1
      deployment/manila/manila-api-container-puppet.yaml
  47. 1
      deployment/manila/manila-scheduler-container-puppet.yaml
  48. 1
      deployment/manila/manila-share-container-puppet.yaml
  49. 1
      deployment/manila/manila-share-pacemaker-puppet.yaml
  50. 1
      deployment/messaging/rpc-qdrouterd-container-puppet.yaml
  51. 1
      deployment/metrics/collectd-container-puppet.yaml
  52. 1
      deployment/metrics/qdr-container-puppet.yaml
  53. 1
      deployment/mistral/mistral-api-container-puppet.yaml
  54. 1
      deployment/mistral/mistral-engine-container-puppet.yaml
  55. 1
      deployment/mistral/mistral-event-engine-container-puppet.yaml
  56. 1
      deployment/mistral/mistral-executor-container-puppet.yaml
  57. 1
      deployment/nova/nova-ironic-container-puppet.yaml
  58. 1
      deployment/nova/novajoin-container-puppet.yaml
  59. 1
      deployment/octavia/octavia-api-container-puppet.yaml
  60. 1
      deployment/octavia/octavia-health-manager-container-puppet.yaml
  61. 1
      deployment/octavia/octavia-housekeeping-container-puppet.yaml
  62. 1
      deployment/octavia/octavia-worker-container-puppet.yaml
  63. 1
      deployment/ovn/ovn-controller-container-puppet.yaml
  64. 1
      deployment/ovn/ovn-dbs-container-puppet.yaml
  65. 1
      deployment/ovn/ovn-dbs-pacemaker-puppet.yaml
  66. 1
      deployment/qdr/qdrouterd-container-puppet.yaml
  67. 1
      deployment/rabbitmq/rabbitmq-container-puppet.yaml
  68. 1
      deployment/rabbitmq/rabbitmq-messaging-notify-container-puppet.yaml
  69. 1
      deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml
  70. 1
      deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml
  71. 1
      deployment/rabbitmq/rabbitmq-messaging-rpc-container-puppet.yaml
  72. 1
      deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml
  73. 1
      deployment/sahara/sahara-api-container-puppet.yaml
  74. 1
      deployment/sahara/sahara-engine-container-puppet.yaml
  75. 1
      deployment/swift/swift-proxy-container-puppet.yaml
  76. 1
      deployment/swift/swift-storage-container-puppet.yaml
  77. 1
      deployment/undercloud/tempest-container-puppet.yaml
  78. 1
      deployment/zaqar/zaqar-container-puppet.yaml

1
deployment/aodh/aodh-api-container-puppet.yaml

@ -245,6 +245,7 @@ outputs:
path: "{{ item.path }}"
setype: "{{ item.setype }}"
state: directory
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/aodh-api, setype: svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/aodh/aodh-evaluator-container-puppet.yaml

@ -113,6 +113,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
external_upgrade_tasks:

1
deployment/aodh/aodh-listener-container-puppet.yaml

@ -113,6 +113,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
external_upgrade_tasks:

1
deployment/aodh/aodh-notifier-container-puppet.yaml

@ -113,6 +113,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/aodh, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/aodh, 'setype': svirt_sandbox_file_t }

1
deployment/ceilometer/ceilometer-agent-central-container-puppet.yaml

@ -169,6 +169,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
external_upgrade_tasks:

1
deployment/ceilometer/ceilometer-agent-compute-container-puppet.yaml

@ -118,6 +118,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/ceilometer/ceilometer-agent-ipmi-container-puppet.yaml

@ -136,6 +136,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
fast_forward_upgrade_tasks:

1
deployment/ceilometer/ceilometer-agent-notification-container-puppet.yaml

@ -227,6 +227,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/ceilometer, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/cinder/cinder-api-container-puppet.yaml

@ -413,6 +413,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/cinder-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/cinder/cinder-common-container-puppet.yaml

@ -93,6 +93,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/cinder, 'setype': svirt_sandbox_file_t }

1
deployment/cinder/cinder-scheduler-container-puppet.yaml

@ -135,6 +135,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/cinder, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/database/mysql-container-puppet.yaml

@ -270,6 +270,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t', 'mode': '0750'}
- {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'}

1
deployment/database/mysql-pacemaker-puppet.yaml

@ -313,6 +313,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- {'path': /var/log/containers/mysql, 'setype': 'svirt_sandbox_file_t', 'mode': '0750'}
- {'path': /var/lib/mysql, 'setype': 'svirt_sandbox_file_t'}

2
deployment/database/redis-container-puppet.yaml

@ -218,6 +218,8 @@ outputs:
file:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/run/redis, 'setype': svirt_sandbox_file_t }

1
deployment/database/redis-pacemaker-puppet.yaml

@ -288,6 +288,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/lib/redis, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/redis, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-api-container-puppet.yaml

@ -163,5 +163,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-central-container-puppet.yaml

@ -201,5 +201,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-mdns-container-puppet.yaml

@ -159,6 +159,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/designate, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-producer-container-puppet.yaml

@ -132,5 +132,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-sink-container-puppet.yaml

@ -124,5 +124,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/experimental/designate/designate-worker-container-puppet.yaml

@ -225,6 +225,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/designate, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: create persistent named directory

1
deployment/glance/glance-api-logging-file-container.yaml

@ -37,6 +37,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/glance, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/glance, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/gnocchi/gnocchi-api-container-puppet.yaml

@ -357,6 +357,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/gnocchi-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/gnocchi/gnocchi-metricd-container-puppet.yaml

@ -158,6 +158,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: create persistent data directory

1
deployment/gnocchi/gnocchi-statsd-container-puppet.yaml

@ -152,6 +152,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/gnocchi, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: create persistent data directory

1
deployment/haproxy/haproxy-container-puppet.yaml

@ -372,6 +372,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/haproxy, 'setype': var_log_t, 'mode': '0750' }
- { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t }

1
deployment/haproxy/haproxy-pacemaker-puppet.yaml

@ -304,6 +304,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/haproxy, 'setype': var_log_t, 'mode': '0750' }
- { 'path': /var/lib/haproxy, 'setype': svirt_sandbox_file_t }

1
deployment/horizon/horizon-container-puppet.yaml

@ -317,6 +317,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/horizon, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/horizon, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/ironic/ironic-api-container-puppet.yaml

@ -309,6 +309,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/ironic-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/ironic/ironic-conductor-container-puppet.yaml

@ -564,6 +564,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t }

4
deployment/ironic/ironic-inspector-container-puppet.yaml

@ -494,8 +494,10 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/ironic-inspector, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/ironic-inspector, 'setype': container_file_t, 'mode': '0750' }
- { 'path': /var/lib/ironic-inspector/dhcp-hostsdir, 'setype': container_file_t }
- name: create persistent ironic-inspector dnsmasq dhcp hostsdir
file:
path: /var/lib/ironic-inspector/dhcp-hostsdir

1
deployment/ironic/ironic-pxe-container-puppet.yaml

@ -152,6 +152,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/lib/ironic, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/ironic, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/keepalived/keepalived-container-puppet.yaml

@ -148,5 +148,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/keepalived, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/barbican-api.yaml

@ -38,6 +38,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/barbican, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/barbican-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/heat-api-cfn.yaml

@ -24,6 +24,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/heat-api-cfn, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/heat-api.yaml

@ -24,6 +24,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/heat-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/heat-engine.yaml

@ -39,5 +39,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/heat, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/keystone.yaml

@ -39,6 +39,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/keystone, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/keystone, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/neutron-api.yaml

@ -47,6 +47,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/neutron-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/neutron-common.yaml

@ -35,5 +35,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/neutron, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/nova-api.yaml

@ -47,6 +47,7 @@ outputs:
path: "{{ item.path }}"
setype: "{{ item.setype }}"
state: directory
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/nova-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/nova-common.yaml

@ -67,5 +67,6 @@ outputs:
path: "{{ item.path }}"
setype: "{{ item.setype }}"
state: directory
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/nova-libvirt.yaml

@ -37,5 +37,6 @@ outputs:
path: "{{ item.path }}"
setype: "{{ item.setype }}"
state: directory
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/libvirt, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/nova-metadata.yaml

@ -36,6 +36,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/nova-metadata, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/logging/files/placement-api.yaml

@ -36,6 +36,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/placement, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/placement, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/manila/manila-api-container-puppet.yaml

@ -249,6 +249,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/manila-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/manila/manila-scheduler-container-puppet.yaml

@ -108,6 +108,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/manila/manila-share-container-puppet.yaml

@ -163,6 +163,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t }

1
deployment/manila/manila-share-pacemaker-puppet.yaml

@ -200,6 +200,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/manila, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/manila, 'setype': svirt_sandbox_file_t }

1
deployment/messaging/rpc-qdrouterd-container-puppet.yaml

@ -149,6 +149,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/qdrouterd, 'setype': svirt_sandbox_file_t }

1
deployment/metrics/collectd-container-puppet.yaml

@ -703,6 +703,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/collectd, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
fast_forward_upgrade_tasks:

1
deployment/metrics/qdr-container-puppet.yaml

@ -346,6 +346,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/metrics-qdr, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/metrics-qdr, 'setype': svirt_sandbox_file_t }

1
deployment/mistral/mistral-api-container-puppet.yaml

@ -277,6 +277,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
deploy_steps_tasks:

1
deployment/mistral/mistral-engine-container-puppet.yaml

@ -137,6 +137,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/mistral/mistral-event-engine-container-puppet.yaml

@ -112,6 +112,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: enable virt_sandbox_use_netlink for healthcheck

1
deployment/mistral/mistral-executor-container-puppet.yaml

@ -218,6 +218,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/mistral, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/mistral, 'setype': svirt_sandbox_file_t }

1
deployment/nova/nova-ironic-container-puppet.yaml

@ -208,6 +208,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/nova, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/nova, 'setype': svirt_sandbox_file_t }

1
deployment/nova/novajoin-container-puppet.yaml

@ -239,6 +239,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/novajoin, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- name: Enroll to FreeIPA

1
deployment/octavia/octavia-api-container-puppet.yaml

@ -378,6 +378,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/octavia-api, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/octavia/octavia-health-manager-container-puppet.yaml

@ -154,5 +154,6 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/octavia/octavia-housekeeping-container-puppet.yaml

@ -153,6 +153,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
upgrade_tasks: []

1
deployment/octavia/octavia-worker-container-puppet.yaml

@ -140,6 +140,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/octavia, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- block:

1
deployment/ovn/ovn-controller-container-puppet.yaml

@ -285,6 +285,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }

1
deployment/ovn/ovn-dbs-container-puppet.yaml

@ -201,6 +201,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }

1
deployment/ovn/ovn-dbs-pacemaker-puppet.yaml

@ -265,6 +265,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/openvswitch, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/openvswitch/ovn, 'setype': svirt_sandbox_file_t }

1
deployment/qdr/qdrouterd-container-puppet.yaml

@ -138,6 +138,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/qdrouterd, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/qdrouterd, 'setype': svirt_sandbox_file_t }

1
deployment/rabbitmq/rabbitmq-container-puppet.yaml

@ -343,6 +343,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }

1
deployment/rabbitmq/rabbitmq-messaging-notify-container-puppet.yaml

@ -285,6 +285,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }

1
deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml

@ -245,6 +245,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml

@ -245,6 +245,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/rabbitmq/rabbitmq-messaging-rpc-container-puppet.yaml

@ -285,6 +285,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }

1
deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml

@ -253,6 +253,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/lib/rabbitmq, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/containers/rabbitmq, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

1
deployment/sahara/sahara-api-container-puppet.yaml

@ -209,6 +209,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/sahara, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/sahara, 'setype': svirt_sandbox_file_t }

1
deployment/sahara/sahara-engine-container-puppet.yaml

@ -126,6 +126,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/sahara, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/sahara, 'setype': svirt_sandbox_file_t }

1
deployment/swift/swift-proxy-container-puppet.yaml

@ -432,6 +432,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /srv/node, 'setype': svirt_sandbox_file_t }
- { 'path': /var/log/swift, 'setype': svirt_sandbox_file_t }

1
deployment/swift/swift-storage-container-puppet.yaml

@ -596,6 +596,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /srv/node, 'setype': svirt_sandbox_file_t }
- { 'path': /var/cache/swift, 'setype': svirt_sandbox_file_t }

1
deployment/undercloud/tempest-container-puppet.yaml

@ -58,6 +58,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode|default(omit) }}"
with_items:
- { 'path': /var/log/containers/tempest, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/lib/tempestdata, 'setype': svirt_sandbox_file_t }

1
deployment/zaqar/zaqar-container-puppet.yaml

@ -372,6 +372,7 @@ outputs:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
mode: "{{ item.mode }}"
with_items:
- { 'path': /var/log/containers/zaqar, 'setype': svirt_sandbox_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/zaqar, 'setype': svirt_sandbox_file_t, 'mode': '0750' }

Loading…
Cancel
Save