Hi, I've created a simple class for creating/updating a file in a user's home directory on Windows like so:
class put_file ($user = undef, $group = undef) {
file { 'user_dir':
path => "C:/Users/${user}",
ensure => directory,
owner => "${user}",
}
file { 'some_file':
path => "C:/Users/${user}/somefile",
ensure => file,
content => template('put_file/somefile.erb'),
owner => "${user}",
group => "${group}",
mode => '0666',
require => File['user_dir'],
}
}
The home directory exists as the user has been logged in before.
However, when I try to apply this class (via agent), I get the following
error message:
Error: ReplaceFile(C:/Users/the_user/somefile,
C:/Users/the_user/somefile20140303-1756-qjll80): The system cannot find
the file specified.
Any idea what's going wrong here? Both master and agent are running
Puppet 3.4.2.
Thanks...
Dirk
--
*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>
http://www.recommind.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/53148A0A.5020604%40recommind.com.
For more options, visit https://groups.google.com/groups/opt_out.
<<inline: Logo.gif>>
