Ask Your Question

Why is Puppet Complaining about the split method

asked 2014-09-10 13:03:58 -0500

Derongan gravatar image

updated 2014-09-10 17:53:48 -0500

When I apply a puppet manifest in noop mode I get the following error:

Error: undefined method `split' for ["Administrator", "Domain Admins", "user1", "group1"]:Array
Error: /Group[Administrators]: Could not evaluate: Puppet::Util::Log requires a message

I am very confused as to why, as I am never calling split. The only place I use the 'user1' and 'group1' users and groups is in the following block of code:

group { 'Administrators':
        ensure   => present,
        members  => [ "Administrator",

So it looks like the error is not coming from any of my manifests. I never reference any group called "Domain Admins".

What is causing this?

edit retag flag offensive close merge delete


Add which version of Puppet you're using on the agent and master. IIRC there are some bugs in < 3.4

ramindk gravatar imageramindk ( 2014-09-10 18:17:32 -0500 )edit

I'm running 3.6.2, which I think is the latest. Also I am running masterless

Derongan gravatar imageDerongan ( 2014-09-10 18:25:04 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2014-09-10 16:31:58 -0500

ramindk gravatar image

'domain\group1", should be 'domain\group1', Note the quotes.

btw, running your code through the parser would have caught this. You should set your environment to do it automatically.

puppet parser validate ghee.pp
Error: Could not parse for environment production: Unclosed quote after '' in 'domain\group1",
' at working/puppet/environments/dashboard_test.pp:5
edit flag offensive delete link more


That is actually just a typo I made when obfuscating the code here. It should be a single quote

Derongan gravatar imageDerongan ( 2014-09-10 16:53:52 -0500 )edit

Might want to obfuscate a bit less. I notice "Domain Admins" is in your error and not in the code you're showing. I'd try to write some code that you can post that generates the error and repost with that information.

ramindk gravatar imageramindk ( 2014-09-10 17:00:29 -0500 )edit

That is how it is for me too. Domain Admins never shows up in my code but shows up in the error message.

Derongan gravatar imageDerongan ( 2014-09-10 17:53:25 -0500 )edit

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: 2014-09-10 13:03:58 -0500

Seen: 699 times

Last updated: Sep 10 '14