Ask Your Question

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

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

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
Wrapped exception:
undefined method `[]' for nil:NilClass
Error: undefined method `[]' for nil:NilClass at /tmp/vagrant-puppet/manifests/default.pp:7 on node
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 ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

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


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

Seen: 899 times

Last updated: Apr 19 '14