Hi Anthony,

This is not really a Vagrant issue, but I'll answer as best I can here. 

I do not see rabbitmq in your Chef configuration run_list. Vagrant has no way 
of knowing you want to run the rabbitmq recipe if you do not specify it in the 
run_list. Just like your other recipes (apt, vim, git), you need to tell Chef 
to run that recipe.

> I think it will defeat the purpose of using chef if I have to explicitly add 
> rabbitmq to the recipe list.

I am not sure I understand this comment. You must declare the recipe in your 
run_list or Chef does not know to run the recipe.

Best,
Seth

> On Nov 4, 2014, at 3:16 PM, Anthony Kong <[email protected]> wrote:
> 
> 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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to