Ask Your Question
0

Error: undefined method `[]' for nil:NilClass

asked 2013-12-24 06:47:25 -0500

mikebell gravatar image

I'm upgrading my vagrant setup to Puppet 3 so that I can use Hiera for variable management but I keep getting the following error on provisioning:

Error: undefined method `[]' for nil:NilClass at /tmp/vagrant-puppet/manifests/default.pp:7 on node drupal.example.com
Wrapped exception:
undefined method `[]' for nil:NilClass
Error: undefined method `[]' for nil:NilClass at /tmp/vagrant-puppet/manifests/default.pp:7 on node drupal.example.com
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

is means the command failed!

Here is my default.pp:

#import 'devsites ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-19 18:57:33 -0500

solarkennedy gravatar image

More information is needed to get the context of this error. Can you run puppet against the manifest with --debug and pastebin the output.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-24 06:47:25 -0500

Seen: 645 times

Last updated: Apr 19 '14