Hello all, I was wondering if someone could help me, as I am new to Chef and Ruby, I want to loop through some values in a recipe and in another recipe to create some templates with those values. However, when I do so, the last value in the variables is applied :(
mikecmpbll joined the channel
eugenmayer1 has quit
eugenmayer1 joined the channel
CoJoNEs_ joined the channel
CoJoNEs_ has quit
CoJoNEs_ joined the channel
CoJoNEs has quit
CoJoNEs_ is now known as CoJoNEs
cdown joined the channel
Sergiu has quit
cdown has quit
nicolasbock joined the channel
djc` joined the channel
djc` has left the channel
MattMaker has quit
cdown joined the channel
msvbhat joined the channel
dciwill_ has quit
dciwill joined the channel
dciwill has quit
msvbhat has quit
Clemlar joined the channel
vegardx
Got some example code?
And by values, do you mean attributes?
wandering_vagran has quit
indistylo joined the channel
msvbhat joined the channel
wandering_vagran joined the channel
MattMaker joined the channel
MattMaker has quit
indistylo has quit
dciwill joined the channel
chip- has quit
indistylo joined the channel
MattMaker joined the channel
dciwill has quit
chip- joined the channel
gclawes joined the channel
wandering_vagran has quit
matti joined the channel
matti has quit
matti joined the channel
MattMaker has quit
wandering_vagran joined the channel
cdown joined the channel
dciwill joined the channel
purist joined the channel
GenteelBen joined the channel
apathor has left the channel
dciwill has quit
ryancrowq joined the channel
msvbhat has quit
msvbhat joined the channel
msvbhat_ joined the channel
msvbhat has quit
dciwill joined the channel
jordanm joined the channel
grymmjack joined the channel
grymmjack has quit
Iezgen has quit
Iezgen joined the channel
Clemlar joined the channel
Iezgen has quit
__Yiota joined the channel
phutchins joined the channel
MattMaker joined the channel
Rapture joined the channel
msvbhat_ has quit
geggam_ joined the channel
geggam has quit
msvbhat joined the channel
rellis joined the channel
MattMaker has quit
overlord_tm has quit
Camusensei joined the channel
Camusensei
Hello guys. On one of my machines, I get " * apt_package[apache2] action install (up to date)" even though "aptitude install" notices there is a new version
It is true that I am using a specific configuration for apache in /etc/apt/preferences.d/apache but I'd like to know how chef "checks" the version... Does someone know the internals of the "package" resource which calls "apt_package"?
(chef 12.7.2)
Reading /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/provider/package/apt.rb now.. I hope that's what I should do
jlb joined the channel
candidate_version gets populated with the new version. Continuing investigation in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.7.2/lib/chef/provider/package.rb ... If you know what's happening, please tell me...
__Yiota has quit
the reason was that it's not upgrading a package if I use :install...