I must be missing something completely obvious but I’m declaring a git resource as “git /path/to/where/I/want” and I’m ending up with the contents of the clone waaay down under /var/chef/cache/cookbooks/mycookbook/templates/default/want/ - what I am missing?
note the matching basename between the resource name and the actual directory
heathsnow has quit
heathsno_ has quit
Breakin__ joined the channel
Breaking_Pitt has quit
slabgrha has quit
antkong_ joined the channel
riceandbeans joined the channel
riceandbeans
how long does a chef resource have to time out and how can I increase that time?
rhodgin has quit
AllanEspinosa has quit
zmalone joined the channel
rodolfojcj has quit
rodolfojcj joined the channel
jackjackdripper has quit
CVTJNII
I'm working on a recipe where I want to check out a repo from git and then iterate over files in a subdirectory, calling a LWRP for each one. I'm currently using Dir.entries to list the files, but that doesn't work because of compile time/run time issues. If I put Dir.entries outside of a ruby_block it doesn't work because the files aren't checked out. If I put it inside a ruby_block I get errors because the LWRPs are undefined in that scope.
How can I list and iterate over files in a directory in a recipe at run time?
anero79 joined the channel
riceandbeans
CVTJNII: make a library with a method that does it and reference the library in your recipe
howdoicomputer has quit
Breakin__ has quit
Breaking_Pitt joined the channel
CVTJNII
riceandbeans, Can I call a LWRP within the library method?
anero79 has quit
riceandbeans
I don't know
rockpapergoat joined the channel
ssd7 has quit
sparc_ has quit
Breaking_Pitt has quit
cuthbertx joined the channel
Breaking_Pitt joined the channel
slabgrha joined the channel
rockpapergoat has quit
cuthbertx has quit
rockpapergoat joined the channel
zmalone has quit
Hackz has quit
Breaking_Pitt joined the channel
zmalone joined the channel
jbz_away is now known as jbz
tas50 has quit
Breaking_Pitt has quit
Breaking_Pitt joined the channel
goacid has quit
iswid has quit
bmurt joined the channel
Breaking_Pitt has quit
Breakin__ joined the channel
tas50 joined the channel
jmash has quit
iswid joined the channel
Breakin__ has quit
Breaking_Pitt joined the channel
podman has quit
explody
CVTJNII: did your git checkout acutally make it out of the cookbook cache directory?
CVTJNII
Yea, the checkout worked. This is a compile time/run time problem. It looks like to call a LWRP inside a ruby block you need to use pure ruby, I think this method will work: http://lists.opscode.com/sympa/arc/chef/2013-12...
ChrissKO has quit
explody
Ah ha “git[] checkout destination /var/named/db already exists or is a non-empty directory”
tkuchiki joined the channel
zmalone has quit
Breaking_Pitt has quit
Breaking_Pitt joined the channel
anero79 joined the channel
zmalone joined the channel
Breaking_Pitt joined the channel
cnk has quit
Cervator joined the channel
otter768 joined the channel
ssd7 joined the channel
ryan8403 has quit
AllanEspinosa joined the channel
slabgrha has quit
Breaking_Pitt has quit
Breaking_Pitt joined the channel
ssd7 has quit
slabgrha joined the channel
euphy has quit
bmurt has quit
jlast joined the channel
AllanEspinosa has quit
slabgrha has quit
Breakin__ joined the channel
iswid has quit
iswid joined the channel
ProT-0-TypE joined the channel
Breaking_Pitt joined the channel
tas50 has quit
mithrandeer joined the channel
mithrandeer has quit
ryan8403 joined the channel
AllanEspinosa joined the channel
mithrandeer joined the channel
tas50 joined the channel
tas50 has quit
CpuID joined the channel
bmurt joined the channel
Breakin__ joined the channel
anero79 has quit
ybathia joined the channel
bmurt has quit
Breaking_Pitt joined the channel
Breakin__ joined the channel
tas50 joined the channel
ovaistariq has quit
antkong_ has quit
jackjackdripper joined the channel
Breakin__ has quit
Breaking_Pitt joined the channel
slabgrha joined the channel
ovaistariq joined the channel
Breakin__ joined the channel
AllanEspinosa has quit
slabgrha has quit
Breakin__ has quit
slabgrha joined the channel
Breaking_Pitt joined the channel
rhodgin joined the channel
ssd7 joined the channel
slabgrha has quit
ssd7 has quit
aruntomar joined the channel
Breaking_Pitt has quit
ybathia has quit
aruntomar_ joined the channel
aruntomar has quit
aruntomar_ is now known as aruntomar
tas50 has quit
rodolfojcj has quit
aytch
Can anyone throw me a bone on how to use the 12.4 Chef::Log::WinEvt.new log_location attribute?
all I get is: +log_location #<Chef::Log::WinEvt:0x4709088>