Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-27 Thread Felix Frank
On 03/13/2015 03:40 PM, Fraser Goffin wrote:
 I am attempting to use the puppetlabs/concat module on Windows, but
 having some problems.

I just found out that Richard has made an alternative that explicitly
does support Windows:

https://forge.puppetlabs.com/ispavailability/file_concat

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55155487.5020604%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-26 Thread Neil - Puppet List
Hello

As it is a param to the file resource you could set it as the default with

File { source_permissions = ignore, }

Be warned that it may mess up other file resources.

Neil
On 13 Mar 2015 15:13, Fraser Goffin goff...@gmail.com wrote:

 Hi,

 I am attempting to use the puppetlabs/concat module on Windows, but having
 some problems. To keep things really simple since it illustrates the
 problem, here is the mainfest I'm using (note: it just uses concat at this
 stage) :-

 class concat_file {

   concat { 'E:/Temp/puppetTests/myfiles/concatFile.txt':
 ensure = present,
   }
 }

 When run the following is output :-

 Warning: Copying owner/mode/group from the source file on Windows is
 deprecated; use source_permissions = ignore.
(at D:/Apps/puppet/puppet/lib/puppet/type/file/source.rb:133:in `block
 in copy_source_values')
 Debug:
 /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]:
 Copying owner
 from the source file on Windows is deprecated; use source_permissions =
 ignore.
 ...
 Error:
 /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]:
 Could not evaluate:
 Could not read file
 C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb:
 Permission denied -
 C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb

 followed by a number of other consequent errors.

 The Warning is fair enough, but obviously I can't add source_permissions
 as a param since the concat manifest doesn't support it and will throw and
 invalid param error if I try. Its just a warning so OK, lets move on.

 As part of setup (now included by default in init.pp) concatfragments.rb
 is copied to location shown, but clearly does not have permissions to read
 it ?

 If I look at this file I can see that it indeed does not have read (or any
 other) permissions set.

 I tried adding values user, group and mode but to no avail.

 Can anyone suggest what I need to do here ?

 Kind Regards

 Fraser.

 --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/89289e85-5f3c-4035-af5a-7b5f9f25383a%40googlegroups.com
 https://groups.google.com/d/msgid/puppet-users/89289e85-5f3c-4035-af5a-7b5f9f25383a%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAohVBej4YoWmTekR4t9NfG4skTqfqpiGFczKQMH2Hup_1sTuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-25 Thread Felix Frank
On 03/13/2015 03:40 PM, Fraser Goffin wrote:
 If I look at this file I can see that it indeed does not have read (or
 any other) permissions set.

 I tried adding values user, group and mode but to no avail.

 Can anyone suggest what I need to do here ?

Shot in the dark: Is the agent running without Admin privileges?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55134EDD.9010605%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppetlabs/concat Problem on Windows

2015-03-13 Thread Fraser Goffin
Hi,

I am attempting to use the puppetlabs/concat module on Windows, but having 
some problems. To keep things really simple since it illustrates the 
problem, here is the mainfest I'm using (note: it just uses concat at this 
stage) :-

class concat_file {
  
  concat { 'E:/Temp/puppetTests/myfiles/concatFile.txt':
ensure = present,
  }
}

When run the following is output :-

Warning: Copying owner/mode/group from the source file on Windows is 
deprecated; use source_permissions = ignore.
   (at D:/Apps/puppet/puppet/lib/puppet/type/file/source.rb:133:in `block 
in copy_source_values')
Debug: 
/Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]:
 
Copying owner
from the source file on Windows is deprecated; use source_permissions = 
ignore.
...
Error: 
/Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]:
 
Could not evaluate:
Could not read file 
C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb: 
Permission denied - 
C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb

followed by a number of other consequent errors.

The Warning is fair enough, but obviously I can't add source_permissions as 
a param since the concat manifest doesn't support it and will throw and 
invalid param error if I try. Its just a warning so OK, lets move on.

As part of setup (now included by default in init.pp) concatfragments.rb is 
copied to location shown, but clearly does not have permissions to read it ?

If I look at this file I can see that it indeed does not have read (or any 
other) permissions set.

I tried adding values user, group and mode but to no avail.

Can anyone suggest what I need to do here ?

Kind Regards

Fraser.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/89289e85-5f3c-4035-af5a-7b5f9f25383a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.