Realizing Users in Nodes

1 view
Skip to first unread message

Duncan Hill

unread,
Mar 17, 2008, 8:17:03 AM3/17/08
to puppet...@googlegroups.com
I'm trying to work with Users and the realize function, and it's
driving me batty. Puppet is 0.23.2.

My definition looks something like:

class virtual_users {
@user { fred : uid => 500 ... }
@user { derf : uid => 501 ... }
}

node base-node {
include virtual_users
}

node "testnode.domain.local" inherits base-node {
realize User[fred]
}

puppetd throws an error of:
err: Could not retrieve configuration: Failed to find virtual
resources User[fred]

Do I have to realize fred in another class instead, and then include
that class in the node definition? (Bit of a pain if that is indeed
the case.)

Duncan Hill

unread,
Mar 17, 2008, 11:44:55 AM3/17/08
to Puppet Users
On Mar 17, 12:17 pm, "Duncan Hill" <bajand...@googlemail.com> wrote:
> I'm trying to work with Users and the realize function, and it's
> driving me batty. Puppet is 0.23.2.
>
> My definition looks something like:
>
> class virtual_users {
> @user { fred : uid => 500 ... }
> @user { derf : uid => 501 ... }
>
> }
>
> node base-node {
> include virtual_users

I'm an idiot. I had my include defined in the base server node, and
was working with a workstation.
Reply all
Reply to author
Forward
0 new messages