warning: Could not retrieve fact fqdn
もう一つの warning ですが
によれば /etc/resolv.conf にダミーなエントリを入れれ、ってことで試してみたところ warning は出力されなくなりました。
とりあえず UT な環境でもありますし、逆にそうでない環境にマニフェストを適用させる場合、基本的にそこでは fqdn は設定されているはずなので /etc/resolv.conf を以下にして guard 実行してみた所、warning は出力されなくなってます。
domain example.com
出力は綺麗なもので以下なカンジ。
Guard::RSpec is running, with RSpec 2! Running all specs role::webserver should include Class[apache] should create Package[httpd] Finished in 4 seconds 2 examples, 0 failures Running all features Feature: Catalog policy In order to ensure basic correctness I want all catalogs to obey my policy Scenario Outline: Generic policy for all server roles Given a node with role "<server_role>" When I compile its catalog Then compilation should succeed And all resource dependencies should resolve Examples: | server_role | | role::webserver | 1 scenario (1 passed) 4 steps (4 passed) 0m1.390s
ただし、virtualbox な問題が残ったままなのでこの直後に以下な出力がナニ。
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed. If VirtualBox is installed, it may be an incorrect version. Vagrant currently requires VirtualBox 4.1.x. Please install the proper version to continue. If you have an older or newer version of VirtualBox, please make sure you're using the proper version of Vagrant. Ask the mailing list if you have questions.
ちなみに、VirtualBox は 4.1.x です。
$ dpkg --get-selections|grep virtualbox virtualbox-4.1 install virtualbox-guest-dkms install virtualbox-guest-utils install virtualbox-guest-x11 install $
こちら、少々ハードルが高いッス。