bbaugher / apache_zookeeper

Chef cookbook for Apache Zookeeper
MIT License
9 stars 22 forks source link

RHEL init scripts includes hardcoded paths #30

Closed cog-piisang closed 7 years ago

cog-piisang commented 9 years ago

This caused problems for me, as I use custom paths for logs, data, conf, etc.

As I don't have time for fixing it now, This is how I worked aorund it:

include_recipe 'apache_zookeeper::install'

#The configure/service recipes have bugs, working around those for the time being
#(if you have conf separate from install dir, just follow the example of data and log): 
link '/opt/zookeeper' do
  to node['apache_zookeeper']['install_dir']
end

link '/var/opt/zookeeper/data' do
  to node['apache_zookeeper']['data_dir']
end

link '/var/opt/zookeeper/log' do
  to node['apache_zookeeper']['log_dir']
end

include_recipe 'apache_zookeeper::configure'
include_recipe 'apache_zookeeper::service'
bbaugher commented 9 years ago

Thanks for logging the issue. I'd probably lock down on the last release (0.5.0). We made some big changes and still need to throughly validate them

cog-piisang commented 9 years ago

The 0.5.0 didn't work out for me and the 0.6.0 configuration seems better, that's why I wen't with 0.6.0

ghost commented 8 years ago

Hi

include_recipe 'apache_zookeeper::configure'

dose not work :

Recipe: build-essential::_debian
         * apt_package[autoconf] action install (up to date)
         * apt_package[binutils-doc] action install (up to date)
         * apt_package[bison] action install (up to date)
         * apt_package[build-essential] action install (up to date)
         * apt_package[flex] action install (up to date)
         * apt_package[gettext] action install (up to date)
         * apt_package[ncurses-dev] action install (up to date)

         ================================================================================
         Recipe Compile Error
         ================================================================================

         Chef::Exceptions::RecipeNotFound
         --------------------------------
         could not find recipe configure for cookbook apache_zookeeper
bbaugher commented 8 years ago

@RaidRohana are you sure you have the right version on your chef server and you are not locking down to an older version? I can't think of any other reason it give you that

bbaugher commented 7 years ago

Likely duplicate to #40