From c43b3710a854998433c0cce70956d3d9b96be6af Mon Sep 17 00:00:00 2001 From: Megh Bhatt Date: Thu, 10 Sep 2015 14:53:33 -0700 Subject: [PATCH] Change ownership of /var/lib/cassandra/data to cassandra:cassandra in preparation for moving cassandra out of supervisord and running as cassandra user. Partial-Bug: #1484297 Change-Id: I97193998f8e69c3a0f94c0f90421b68ba84a2c19 (cherry picked from commit 891ba46c5b7d98c282123c6fd992be2b75bc1820) --- .../environment/modules/contrail/manifests/database.pp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrail/environment/modules/contrail/manifests/database.pp b/contrail/environment/modules/contrail/manifests/database.pp index 284b6d56..366d1c71 100644 --- a/contrail/environment/modules/contrail/manifests/database.pp +++ b/contrail/environment/modules/contrail/manifests/database.pp @@ -128,7 +128,9 @@ ensure => link, target => "${analytics_data_dir}/ContrailAnalytics", require => File[$database_dir], - notify => Service['supervisor-database'] + notify => Service['supervisor-database'], + owner => cassandra, + group => cassandra, } } contrail::lib::report_status { 'database_started': @@ -165,7 +167,9 @@ -> file { $database_dir : ensure => directory, - require => Package['contrail-openstack-database'] + require => Package['contrail-openstack-database'], + owner => cassandra, + group => cassandra, } -> file { "${contrail_cassandra_dir}/cassandra.yaml" :