On Thursday, July 26, 2012 3:41:05 AM UTC-5, biot023 wrote:
>
> Hi -- I'm trying call apply in standalone mode on a configuration I've 
> written.
> The way I call the command is like this:
>   $ puppet apply manifests/site.pp -v --modulepath modules
>
> The directory structure is simple:
>   .
>   manifests/site.pp
>   manifests/nodes.pp
>   modules/ ...
>
> site.pp just includes nodes.pp, and nodes.pp looks like this: 
> https://gist.github.com/3181007
>
> When I comment out the node declaration, it all compiles just fine, but 
> with the node declaration, I get this error:
>   Cannot reassign variable name on node 
> ip-xx-xx-xx-xx.eu-west-1.compute.internal
>
> Obviously, the node's name in the original doesn't have 'xx's, but a valid 
> IP.
>
> Can anybody advise me as to how to get this working? I've tried everything 
> I can think of.
>

The problem is in one of the classes declared by class 'imageserver', not 
in nodes.pp itself.  When you comment out the node declaration, no resource 
declarations remain for any node, so of course there is no error.

You didn't say anything about the classes declared by class 'imageserver', 
so I can't be more specific than that.  If I were to take a wild guess, 
however, it would be that somewhere in there you have a defined type that 
attempts to assign a value to a local variable $name.  The variable names 
"name" and "title" are reserved inside defined types; for each instance, 
they are pre-assigned to the resource title, and like all puppet variables, 
their values cannot be reassigned.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Vu0Ytpap1-8J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to