Closed Rainfellow2002 closed 11 years ago
I figured it out myself, you get the following error when you try to run the 'install.rb' script from a location other than where 'install.rb' and 'deploy.rb' resides. For example:
My sprinkle scripts are in: /etc/sprinkle/deploy.rb /etc/sprinkle/install.rb /etc/sprinkle/packages/...
If I'm at /etc/sprinkle and start the script with 'sprinkle -c -s install.rb' everything goes fine. If I'm at for example /root and start the script with 'sprinkle -c -s /etc/sprinkle/install.rb' i get the error stated above.
Cheers
Dear all,
I am following this simple tutorial at http://engineering.gomiso.com/2011/08/26/forget-chef-or-puppet-automate-with-sprinkle/ and test script at the bottom of the page and when i run the script i get the following error message:
--> Cloud hierarchy for policy myapp
Policy myapp requires package git
--> Normalized installation order for all packages: git --> Checking if git is already installed for roles: app --> Verifying git... /usr/local/sprinkle/lib/sprinkle/actors/ssh.rb:69:in
execute_on_role': undefined method
[]' for nil:NilClass (NoMethodError)I've changed capistrano to ssh like so: deployment do delivery :ssh
source do prefix '/usr/local' archives '/usr/local/sources' builds '/usr/local/build' end end