Skip to content

Commit

Permalink
Change ownership of /var/lib/cassandra/data to cassandra:cassandra
Browse files Browse the repository at this point in the history
in preparation for moving cassandra out of supervisord and running
as cassandra user.
Partial-Bug: #1484297

Change-Id: I97193998f8e69c3a0f94c0f90421b68ba84a2c19
(cherry picked from commit 891ba46)
  • Loading branch information
Megh Bhatt committed Sep 15, 2015
1 parent 048ca2b commit c43b371
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contrail/environment/modules/contrail/manifests/database.pp
Expand Up @@ -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':
Expand Down Expand Up @@ -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" :
Expand Down

0 comments on commit c43b371

Please sign in to comment.