diff --git a/contrail/environment/modules/contrail/manifests/database/config.pp b/contrail/environment/modules/contrail/manifests/database/config.pp index a800b571..6d0d466a 100644 --- a/contrail/environment/modules/contrail/manifests/database/config.pp +++ b/contrail/environment/modules/contrail/manifests/database/config.pp @@ -164,7 +164,7 @@ # File['/etc/init.d/supervisord-contrail-database'] -> File['/etc/contrail/contrail_setup_utils/config-zk-files-setup.sh'] File['/etc/init.d/supervisord-contrail-database'] -> File['/etc/zookeeper/conf/zoo.cfg'] -> File ['/etc/zookeeper/conf/log4j.properties'] -> File ['/etc/zookeeper/conf/environment'] -> - File ['/var/lib/zookeeper/myid'] + File ['/etc/zookeeper/conf/myid'] } # set high session timeout to survive glance led disk activity # Commented out call to old exec diff --git a/contrail/environment/modules/contrail/manifests/database/new_config_zk_files_setup.pp b/contrail/environment/modules/contrail/manifests/database/new_config_zk_files_setup.pp index 0271d1c1..9cfa1dd6 100644 --- a/contrail/environment/modules/contrail/manifests/database/new_config_zk_files_setup.pp +++ b/contrail/environment/modules/contrail/manifests/database/new_config_zk_files_setup.pp @@ -1,4 +1,4 @@ -class contrail::database::config_zk_files_setup ( +class contrail::database::new_config_zk_files_setup ( $contrail_logoutput = $::contrail::params::contrail_logoutput, $database_index = 1 ) { @@ -49,13 +49,9 @@ } } - file {'/var/lib/zookeeper/myid': - ensure => present, + file {'/etc/zookeeper/conf/myid': + ensure => present, + mode => '0755', + content => "${database_index}", } - -> - file_line { 'Add cfgm_index to Zookeeper ID': - path => '/var/lib/zookeeper/myid', - line => '${database_index}', - } - notify { "executed contrail contrail_zk_exec_cmd : ${contrail_zk_exec_cmd}":; } }