Hi all,

I am trying to install sensu to a VM in Virtual Box.

It is my Cheffile:

# encoding: utf-8

site 'http://community.opscode.com/api/v1'

cookbook "apt"
cookbook "python", {}
cookbook "vim", {}
cookbook "git", {}
cookbook "postfix", {}
cookbook 'sensu', '~> 2.2.0'

I can confirm that sensu's dependencies are correctly resolved in 
Cheffile.lock. e.g.

$ grep rabbit Cheffile.lock
    rabbitmq (3.3.0)
      rabbitmq (>= 2.0.0)


However, after vagrant up, I find that the package rabbitmq-server is not 
installed.

Here is my chef provision section of my Vagrant file


  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "cookbooks"
    # Enable this for debug info
    # chef.log_level = :debug
    chef.data_bags_path = "data_bags"
    chef.add_recipe 'apt'
    chef.add_recipe 'python'
    chef.add_recipe 'vim'
    chef.add_recipe 'git'
    # Must provide ssl.json in data bag for sensu
    chef.add_recipe 'sensu'
    chef.json = {
      :git   => {
        :prefix => "/usr/local"
      }
    }
  end

I think it will defeat the purpose of using chef if I have to explicitly 
add rabbitmq to the recipe list. How can I resolve this missing dependency 
problem?

Thanks
 

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to