[Chef]Chefでローカルにあるファイルのコピーを行いたい場合
Chefでローカルマシン内に既にあるファイルとかをコピーして別の場所に配置したい場合、 executeやscriptを使ってコマンドを書くしかないとばかり思っていたのだが、 "file" resource の "content" attribute が使えることに気付いた。recipeには以下のような感じで。 参考...
View Article[Chef]Chef の Common Automatic Attributes
ohaiによって自動で付与されるAttributesの一覧。 >http://wiki.opscode.com/display/chef/Recipes#Recipes-CommonAutomaticAttributes:title> Ohai detects attributes on the node based on its own plugin system. The most...
View Article[Chef]berkshelfで依存しているCookbook/RecipeをincludeするときにChefspecでエラーが出る時
タイトル通りだけど、以下のような感じでCookbookが無いと言われる。 公式ドキュメント通りだけど、"spec/spec_helper.rb"に、 こんな感じでrequireしておけばOK。 ちなみに、Librarianを使っている時は、 参考 https://github.com/sethvargo/chefspec#berkshelf
View Article
More Pages to Explore .....