Problem with LWRP Resource loader


#1

Hi guys,

I need help
withhttp://wiki.opscode.com/display/chef/Opscode+LWRP+ResourcesLWRP
Resources
(http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources#OpscodeLWRPResources-php)

try run recipe with code:

php_pear “mongo” do
action :install
end

and receive error:

FATAL: NoMethodError: undefined method `php_pear’ for
#Chef::Recipe:0x7f554185ab68

Full log attached.

Can you advice how to fix the problem?


Best regards,
Alexey Khristov

php-developer


#2

have you included the php recipe in your recipe or runlist?

On Tue, Apr 10, 2012 at 5:16 PM, Alexey Khristov a.khristov@2gis.kiev.uawrote:

Hi guys,

I need help with
http://wiki.opscode.com/display/chef/Opscode+LWRP+ResourcesLWRP
Resources (
http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources#OpscodeLWRPResources-php
)

try run recipe with code:

php_pear “mongo” do
action :install
end

and receive error:

FATAL: NoMethodError: undefined method `php_pear’ for
#Chef::Recipe:0x7f554185ab68

Full log attached.

Can you advice how to fix the problem?


Best regards,
Alexey Khristov

php-developerhttp://2gis.ru/


#3

Thanks Ranjib,
I’m set php cookbook as “depends” of my own cookbook. Problem solved.

10.04.2012 14:53, Ranjib Dey ???:

have you included the php recipe in your recipe or runlist?

On Tue, Apr 10, 2012 at 5:16 PM, Alexey Khristov
<a.khristov@2gis.kiev.ua mailto:a.khristov@2gis.kiev.ua> wrote:

Hi guys,

I need help
with<http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources>LWRP
Resources
(http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources#OpscodeLWRPResources-php)

try run recipe with code:

php_pear "mongo" do
  action :install
end

and receive error:

FATAL: NoMethodError: undefined method `php_pear' for
#<Chef::Recipe:0x7f554185ab68>

Full log attached.

Can you advice how to fix the problem?

-- 
Best regards,
Alexey Khristov

php-developer
http://2gis.ru/


Best regards,
Alexey Khristov

php-developer


#4

For future reference, this list (chef-dev@lists.opscode.com) is focused on making changes to chef, ohai, chef-server and friends. Especially useful here are questions about bugs or patches for the projects.

If you’re developing with chef, especially if you have questions about writing cookbooks, you’ll find more folks and quicker responses at the main list:
chef@lists.opscode.com

Good luck making more awesome stuff with chef!


josephholsten.com

On Tuesday, April 10, 2012 at 12:47, Alexey Khristov wrote:

Thanks Ranjib,
I’m set php cookbook as “depends” of my own cookbook. Problem solved.

10.04.2012 14:53, Ranjib Dey пишет:

have you included the php recipe in your recipe or runlist?

On Tue, Apr 10, 2012 at 5:16 PM, Alexey Khristov <a.khristov@2gis.kiev.ua (mailto:a.khristov@2gis.kiev.ua)> wrote:

Hi guys,

I need help with (http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources)LWRP Resources (http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources#OpscodeLWRPResources-php)

try run recipe with code:

php_pear “mongo” do
action :install
end

and receive error:

FATAL: NoMethodError: undefined method `php_pear’ for #Chef::Recipe:0x7f554185ab68

Full log attached.

Can you advice how to fix the problem?
– Best regards, Alexey Khristov php-developer http://2gis.ru/

– Best regards, Alexey Khristov php-developer http://2gis.ru/