Skip to content

Commit

Permalink
Merge "Closes-Bug: #1602872 - User configured database dir not create…
Browse files Browse the repository at this point in the history
…d if path doesn't exist" into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 19, 2016
2 parents 5fda3d7 + 3c14eb8 commit 61a453f
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -93,6 +93,12 @@
notify { "Database - zookeeper_ip_list = ${zookeeper_ip_list}":;} ->
notify { "Database - database_index = ${database_index}":;} ->
notify { "Database - cassandra_seeds = ${cassandra_seeds}":;} ->
exec {'Create database dir':
command => "mkdir -p ${database_dir}",
unless => "test -d ${database_dir}",
provider => shell,
logoutput => $contrail_logoutput
} ->
file { $database_dir :
ensure => directory,
owner => cassandra,
Expand Down

0 comments on commit 61a453f

Please sign in to comment.