Run those, that will set up your PATH so the commands work
chef361
so i did the zsh options since im running zsh (echo 'eval "$(chef shell-init zsh)"' >> ~/.zshrc)
and it didnt error out
but when i did which ruby
it still pointed to /usr/bin/ruby
dfinninger has quit
coderanger
Did you start a new shell?
Gazzonyx joined the channel
chef361
yea
so i did and it show up as zsh: chef command not found and then the shell prompt
spox joined the channel
spox has quit
spox joined the channel
stanchan has quit
coderanger
chef361: If you run /opt/chefdk/bin/chef does it work?
chef361
nope states that there is no such file or directory
coderanger
Whats in /opt?
Might chef-dk
I forget
chef361
so inside of opt
is opscode
then went in there
jaym
/opt/opscode is chef-server
coderanger
Sure, that's not related to chefdk though
Also you generally don't install Chef Server on your workstation
scalp42 has quit
Majost
Can I set attributes within a ruby block?
pmonson joined the channel
er, ruby_block resource rather
vijendar has quit
coderanger
Majost: Sure, but it usually doesn't do much good.
ChrissKO has quit
Majost
coderanger, I need to parse a json file, but I want to put an only_if guard to run the block only when the file exists.
ChrissKO joined the channel
vijendar joined the channel
coderanger
Remember it will only happen at converge time
Majost
Thats perfect.
coderanger
So you'll need to be very careful with how you use the data
Majost
well. hrmm
maybe
trying to wrap the supermarket.json values in a way the supermarket-omnibus-cookbook can use them automagically.
ChrissKO has quit
vijendar has quit
alterm4nn has quit
chef361
so coderanger within opscode
it had had binaries for chef-shell, chef-solo, chef-server-ctl, knife,ohai,chef-apply and chef client
coderanger
chef361: That's part of Chef Server, don't touch em
chef361
gotcha
so what else can i do atm
coderanger
Install ChefDK
not-faw joined the channel
tomfoolry_______ has quit
chef361
@coderanger lolololol literally installed chefdk via rpm and it worked lololol
thanks for the help~!
exut
chef361 has quit
flaccid joined the channel
raccoon_ops has quit
Wolfspyre1 is now known as Wolfspyre
grill joined the channel
ovaistariq joined the channel
coredump joined the channel
dfinninger joined the channel
Dairenn has quit
ohlol has quit
tatemz joined the channel
ohlol joined the channel
dfinninger has quit
ohlol has quit
RobertBirnie joined the channel
rm_ joined the channel
OddDuck has quit
OddDuck joined the channel
grill has quit
ryan8403 joined the channel
zanshin_ joined the channel
zanshin_ has quit
fryguy
is there a way to get things like IP address from other provisioned machines in chef-provision run? like, let's say I want to provision a db and a webserver, provision the db first, and then set an attribute on the webserver corresponding to the provisioned database ip.