Issue #6727 has been updated by Ben Hughes.
Status changed from Unreviewed to Investigating
Assignee set to Ben Hughes
What outcome are are you expecting? This is not realising things due to not
specify what state you want them to be in.
<pre>
$user_name = 'puppet_test'
$group_name = 'puppet_test'
@group { $group_name: ensure=> present }
@user { $user_name: ensure=> present, gid => $group_name }
realize Group[$group_name]
realize User[$user_name]
file { '/tmp/nothing':
owner => $user_name,
group => $group_name,
ensure => file,
require => User[$user_name],
}
</pre>
Works fine.
----------------------------------------
Bug #6727: "Could not find user" When Managing a File - But the New User Exists
https://projects.puppetlabs.com/issues/6727
Author: Jeremy Jack
Status: Investigating
Priority: Normal
Assignee: Ben Hughes
Category:
Target version:
Affected Puppet version: 0.25.5
Keywords:
Branch:
A basic user and file creation like this
$user_name = 'puppet_test'
$group_name = 'puppet_test'
@group { $group_name: }
@user { $user_name: }
realize Group[$group_name]
realize User[$user_name]
file { '/tmp/nothing':
owner => $user_name,
group => $group_name,
# ensure => file,
require => User[$user_name],
}
Results in the following error: err: //File[/tmp/nothing]: Failed to retrieve
current state of resource: Could not find user puppet_test
Uncommenting the ensure line will cause it to work. Is this an error in my
logic, the underlying logic of puppet, or just a display bug?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.