philipcristiano's posterous

 
Filed under

AUR

 

Cooking with Arch AUR

I've recently started using Vagrant to manage my development virtual machines. If you use VMs at all you should at least take a look at Vagrant. 

The issue I had starting out with using it is getting Chef to install my applications. While the guide for Vagrant is complete and accurate Chef's wiki isn't very helpful if you are just starting out. 

I spent some time initially building my Arch VM to get it to the base image Vagrant needs. This actually took more time then I expected but now it's done and I don't have to worry about it again. My biggest issue with this was drinking at the same time and glossing over some of the requirements. 

It's great that Arch is supported in Chef but there were some packages I needed from the AUR. Sadly the AUR isn't initially supported by Chef but there is a cookbook you can use to fix that! Opscode provides a Pacman Cookbook. After requiring that you can a new resource package_aur which you can use. 

Now when you need something from the AUR you can specify in your recipe something along the lines of 



pacman_aur "supervisor" do
     action [:build, :install]
end


Now though you will need to be careful of AUR dependencies as pacman_aur won't try to resolve them. You will need to include any dependencies properly for your cookbook or include the other AUR packages in your recipe. Since I've just started I've taken the easy way out and just included them in my recipe. 

Filed under  //   AUR   Arch   Chef   Linux   Pacman   Vagrant   Virtual Machines  

Comments [0]