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

+ 1
- 0
deployment/aodh/aodh-api-container-puppet.yaml View File

@ -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
- 0
deployment/aodh/aodh-evaluator-container-puppet.yaml View File

@ -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
- 0
deployment/aodh/aodh-listener-container-puppet.yaml View File

@ -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
- 0
deployment/aodh/aodh-notifier-container-puppet.yaml View File

@ -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
- 0
deployment/ceilometer/ceilometer-agent-central-container-puppet.yaml View File

@ -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
- 0
deployment/ceilometer/ceilometer-agent-compute-container-puppet.yaml View File

@ -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
- 0
deployment/ceilometer/ceilometer-agent-ipmi-container-puppet.yaml View File

@ -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
- 0
deployment/ceilometer/ceilometer-agent-notification-container-puppet.yaml View File

@ -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
- 0
deployment/cinder/cinder-api-container-puppet.yaml View File

@ -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
- 0
deployment/cinder/cinder-common-container-puppet.yaml View File

@ -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
- 0
deployment/cinder/cinder-scheduler-container-puppet.yaml View File

@ -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
- 0
deployment/database/mysql-container-puppet.yaml View File

@ -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
- 0
deployment/database/mysql-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/database/redis-container-puppet.yaml View File

@ -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
- 0
deployment/database/redis-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-api-container-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-central-container-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-mdns-container-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-producer-container-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-sink-container-puppet.yaml View File

@ -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
- 0
deployment/experimental/designate/designate-worker-container-puppet.yaml View File

@ -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
- 0
deployment/glance/glance-api-logging-file-container.yaml View File

@ -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
- 0
deployment/gnocchi/gnocchi-api-container-puppet.yaml View File

@ -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
- 0
deployment/gnocchi/gnocchi-metricd-container-puppet.yaml View File

@ -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
- 0
deployment/gnocchi/gnocchi-statsd-container-puppet.yaml View File

@ -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
- 0
deployment/haproxy/haproxy-container-puppet.yaml View File

@ -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
- 0
deployment/haproxy/haproxy-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/horizon/horizon-container-puppet.yaml View File

@ -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
- 0
deployment/ironic/ironic-api-container-puppet.yaml View File

@ -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
- 0
deployment/ironic/ironic-conductor-container-puppet.yaml View File

@ -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 }


+ 3
- 1
deployment/ironic/ironic-inspector-container-puppet.yaml View File

@ -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
- 0
deployment/ironic/ironic-pxe-container-puppet.yaml View File

@ -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
- 0
deployment/keepalived/keepalived-container-puppet.yaml View File

@ -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
- 0
deployment/logging/files/barbican-api.yaml View File

@ -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
- 0
deployment/logging/files/heat-api-cfn.yaml View File

@ -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
- 0
deployment/logging/files/heat-api.yaml View File

@ -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
- 0
deployment/logging/files/heat-engine.yaml View File

@ -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
- 0
deployment/logging/files/keystone.yaml View File

@ -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
- 0
deployment/logging/files/neutron-api.yaml View File

@ -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
- 0
deployment/logging/files/neutron-common.yaml View File

@ -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
- 0
deployment/logging/files/nova-api.yaml View File

@ -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
- 0
deployment/logging/files/nova-common.yaml View File

@ -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
- 0
deployment/logging/files/nova-libvirt.yaml View File

@ -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
- 0
deployment/logging/files/nova-metadata.yaml View File

@ -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
- 0
deployment/logging/files/placement-api.yaml View File

@ -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
- 0
deployment/manila/manila-api-container-puppet.yaml View File

@ -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
- 0
deployment/manila/manila-scheduler-container-puppet.yaml View File

@ -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
- 0
deployment/manila/manila-share-container-puppet.yaml View File

@ -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
- 0
deployment/manila/manila-share-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/messaging/rpc-qdrouterd-container-puppet.yaml View File

@ -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
- 0
deployment/metrics/collectd-container-puppet.yaml View File

@ -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
- 0
deployment/metrics/qdr-container-puppet.yaml View File

@ -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
- 0
deployment/mistral/mistral-api-container-puppet.yaml View File

@ -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
- 0
deployment/mistral/mistral-engine-container-puppet.yaml View File

@ -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
- 0
deployment/mistral/mistral-event-engine-container-puppet.yaml View File

@ -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
- 0
deployment/mistral/mistral-executor-container-puppet.yaml View File

@ -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
- 0
deployment/nova/nova-ironic-container-puppet.yaml View File

@ -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
- 0
deployment/nova/novajoin-container-puppet.yaml View File

@ -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
- 0
deployment/octavia/octavia-api-container-puppet.yaml View File

@ -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
- 0
deployment/octavia/octavia-health-manager-container-puppet.yaml View File

@ -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
- 0
deployment/octavia/octavia-housekeeping-container-puppet.yaml View File

@ -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
- 0
deployment/octavia/octavia-worker-container-puppet.yaml View File

@ -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
- 0
deployment/ovn/ovn-controller-container-puppet.yaml View File

@ -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
- 0
deployment/ovn/ovn-dbs-container-puppet.yaml View File

@ -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
- 0
deployment/ovn/ovn-dbs-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/qdr/qdrouterd-container-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-container-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-messaging-notify-container-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-messaging-rpc-container-puppet.yaml View File

@ -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
- 0
deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml View File

@ -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
- 0
deployment/sahara/sahara-api-container-puppet.yaml View File

@ -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
- 0
deployment/sahara/sahara-engine-container-puppet.yaml View File

@ -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
- 0
deployment/swift/swift-proxy-container-puppet.yaml View File

@ -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
- 0
deployment/swift/swift-storage-container-puppet.yaml View File

@ -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
- 0
deployment/undercloud/tempest-container-puppet.yaml View File

@ -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
- 0
deployment/zaqar/zaqar-container-puppet.yaml View File

@ -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