Windows warning about source permissions

899 views
Skip to first unread message

Michael Legleux

unread,
Jul 2, 2014, 2:53:34 AM7/2/14
to puppet...@googlegroups.com
This warning is haunting me:

Copying owner/mode/group from the source file on Windows is deprecated; use source_permissions => ignore.

It is referenced here:
http://docs.puppetlabs.com/windows/writing.html#managing-file-permissions

I am not copying ANY files or anything yet, the site.pp is otherwise blank. What files are PUPPET copying?
This folder is empty:
so I put this in site.pp
if $osfamily == 'windows' {
File { source_permissions => ignore } }
to no avail.

Must I just live with this warning? What gives?
Immediately after the warning it says
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying owner from the source file on Windows is deprecated; user source_permissions => ignore.
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying mode from the source file on Windows is deprecated; user source_permissions => ignore.
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying group from the source file on Windows is deprecated; user source_permissions => ignore.

C:/ProgramData/PuppetLabs/puppet/var/facts.d is empty!

Rob Reynolds

unread,
Jul 2, 2014, 10:37:47 PM7/2/14
to puppet...@googlegroups.com
Does the directory already exist? Perhaps the permissions are not set correctly and something is attempting to create that.

What version of Puppet on the master? What version on the agent?
 

--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/eb59f831-4eb6-491f-9a5d-c73f25f37b1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 20-24 in San Francisco
Register by July 31st to take advantage of the Early Bird discount save $249!

Michael Legleux

unread,
Jul 3, 2014, 9:44:39 PM7/3/14
to puppet...@googlegroups.com
The directory already exists.
Puppet master and agent are both 3.6.2
This is in the debug from the run on the agent.

Debug: Using settings: adding file resource 'pluginfactdest': 'File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'

Rob Reynolds

unread,
Jul 7, 2014, 8:37:12 PM7/7/14
to puppet...@googlegroups.com
On Thu, Jul 3, 2014 at 4:44 PM, Michael Legleux <leg...@gmail.com> wrote:
The directory already exists.
Puppet master and agent are both 3.6.2
This is in the debug from the run on the agent.

Debug: Using settings: adding file resource 'pluginfactdest': 'File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'


On Tuesday, July 1, 2014 7:53:34 PM UTC-7, Michael Legleux wrote:
This warning is haunting me:

Copying owner/mode/group from the source file on Windows is deprecated; use source_permissions => ignore.

It is referenced here:
http://docs.puppetlabs.com/windows/writing.html#managing-file-permissions

I am not copying ANY files or anything yet, the site.pp is otherwise blank. What files are PUPPET copying?
This folder is empty:
so I put this in site.pp
if $osfamily == 'windows' {
File { source_permissions => ignore } }
to no avail.

Since this warning is coming from the puppet settings catalog[1] and not the regular catalog, I don't believe this would be applied to those items.



Must I just live with this warning? What gives?
Immediately after the warning it says
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying owner from the source file on Windows is deprecated; user source_permissions => ignore.
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying mode from the source file on Windows is deprecated; user source_permissions => ignore.
Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Copying group from the source file on Windows is deprecated; user source_permissions => ignore.

C:/ProgramData/PuppetLabs/puppet/var/facts.d is empty!

I'm a bit surprised to see this issue, unless there is some sort of sync for external facts you are attempting from the master. With the directory being empty it doesn't make sense though. It could be this is just a spot where the setting wasn't applied in the settings catalog. It may be we need to address it.

 

--
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 puppet-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rob Reynolds

unread,
Jul 8, 2014, 4:53:26 PM7/8/14
to puppet...@googlegroups.com
We created PUP-2907[1] to address this issue. 


 

--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e4a17a27-bb72-4be1-b085-72e100d12f72%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 20-24 in San Francisco
Register by July 31st to take advantage of the Early Bird discount save $249!
Reply all
Reply to author
Forward
0 new messages