Execute shell command at recipe runtime
I need to collect the output of a shell command. The shell command includes a username, which is created in a preceding recipe.
The problem is that when using Kernel#` to execute the command, it is evaluated immediately and fails because the user does not exist yet.
I need the shell command to be “queued” to be run with its recipe, as opposed to immediately. How can this be done?
passenger_apache2: passenger-install-apache2-module not found on ubuntu
I’m having trouble getting passenger_apache2 cookbook up and running. The problem seems to be that the passenger-install-apache2-module can’t be found. The underlying issue is with my OS Ubuntu 10.4 which handles logins differently and won’t put the passenger-install-apache2-module executable on the path. My solution atm is to set the path in the execute statement of the cookbook, but that doesn’t seem right. How did other people handle this issue?