ok you're right this file is included and contains functions. I've finally made it work with a new fresh repository. where can I find more information about this naming conventions and how it works ? is it related to ruby (I'm not yet an experimented ruby coder) ?On 17 Jan 2014, at 20:21, Daniel DeLeo < " target="_blank"> > wrote:What `hostsfile` cookbook are you using? Is it this one? https://github.com/customink-webops/hostsfile http://community.opscode.com/cookbooks/hostsfileLooking at the code on github, this file should be providing the hostsfile_entry resource: https://github.com/customink-webops/hostsfile/blob/master/resources/entry.rb Note that the name of the resource is inferred from the cookbook name plus an underscore plus the file name so you won’t necessarily see the string “hostsfile_entry” in the source.thanksIn any case, try running with debug logging (`chef-client -ldebug`) and look for a message like "Loading cookbook #{cookbook_name}'s resources from #{filename}” to confirm that the cookbook is getting loaded.--Daniel DeLeoOn Friday, January 17, 2014 at 8:42 AM, George Miranda wrote:
Hi Cyril,There’s not enough information to go on. Can you provide some additional stats? It would help to have: cookbook version for each (I’m guessing you’re using the community cookbooks named ‘hostname’ and ‘hostsfile’?) as well as a stacktrace of the chef run (chef-client? chef-solo?) giving you an error, and which platform you’re running this on.You can remove any sensitive information from the logs. But the more info you can provide, the easier it will be to troubleshoot.
On Fri, Jan 17, 2014 at 1:22 AM, Cyril Scetbon < " target="_blank"> > wrote:yes :$ grep depends ../../hostname/metadata.rb
depends "hostsfile"--
Cyril SCETBONOn 17 Jan 2014, at 00:33, George Miranda < " target="_blank"> > wrote:Does cookbooks/hostname/metadata.rb contain the line: “depends hostsfile” ?On Thu, Jan 16, 2014 at 3:28 PM, Cyril Scetbon < " target="_blank"> > wrote:Hi,
I've installed cookbook hostname but neither me neither chef could find the resource hostsfile_entry :
$ tree cookbooks
cookbooks
├── README.md
├── hostname
│ ├── Berksfile
│ ├── Berksfile.lock
│ ├── CHANGELOG.md
│ ├── Gemfile
│ ├── Gemfile.lock
│ ├── Gemfile~
│ ├── README.md
│ ├── Rakefile
│ ├── Strainerfile
│ ├── metadata.json
│ ├── metadata.rb
│ └── recipes
│ ├── default.rb
│ └── vmware.rb
└── hostsfile
├── CHANGELOG.md
├── README.md
├── attributes
│ └── default.rb
├── libraries
│ ├── entry.rb
│ └── manipulator.rb
├── metadata.json
├── metadata.rb
├── providers
│ └── entry.rb
└── resources
└── entry.rb
$ ack -i --ruby hostsfile_entry .
cookbooks/hostname/recipes/default.rb
44: hostsfile_entry "localhost" do
50: hostsfile_entry "set hostname" do
Anyone ?
--
Cyril SCETBON
--George Miranda — Consulting
512.481.2876 – " style="color:rgb(105,117,130)" target="_blank"> – Linkedin Twitter
CHEFTM
--George Miranda — Consulting
512.481.2876 – " style="color:rgb(105,117,130)" target="_blank"> – Linkedin Twitter
CHEFTM
George Miranda — Consulting
512.481.2876 – " style="color:rgb(105,117,130)" target="_blank"> – Linkedin Twitter
| ||
Archive powered by MHonArc 2.6.16.