CentOS: Ensure /var/cache/swift has correct selinux type
This is a temporal fix until the new openstack-selinux package is released for CentOS 8 and fixes the wrong selinux type assigned to the /var/cache/swift directory. See [1] to find details. [1] https://bugzilla.redhat.com/show_bug.cgi?id=2050636 Change-Id: I81c6410b8759a04eb921b0b8fe7d7006541c8ebc
This commit is contained in:
parent
256dd9349c
commit
ac4c2ae979
|
@ -33,6 +33,20 @@ class openstack_integration::swift {
|
|||
ensure => directory,
|
||||
mode => '0755',
|
||||
}
|
||||
|
||||
# TODO(tkajinam): Remove this once fixed version of openstack-selinux is
|
||||
# released.
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2050636
|
||||
file { '/var/cache/swift':
|
||||
ensure => directory,
|
||||
owner => 'swift',
|
||||
group => 'swift',
|
||||
mode => '0755',
|
||||
seltype => 'swift_var_cache_t'
|
||||
}
|
||||
Anchor['swift::install::end']
|
||||
-> File['/var/cache/swift']
|
||||
-> Anchor['swift::config::begin']
|
||||
}
|
||||
|
||||
file { '/etc/rsyslog.d/10-swift.conf':
|
||||
|
|
Loading…
Reference in New Issue