Re: [Puppet Users] file resource issue?

2018-06-04 Thread Jason McMahan
Thank you for the input Arnau, That was good suggestions. Since we were bound by the meta data returned from the webserver we chose to do it slightly different. Instead we created a local vsts repo, cloned the Azure/WaLinuxAgent and next we will set up a task to sync to that repo every so often.

Re: [Puppet Users] file resource issue?

2018-06-01 Thread Arnau
Hi, Looks like you're not the only one having such issue: https://tickets.puppetlabs.com/browse/PUP-6624 A workaround is to force md5 checksumming: With apache, set ContentDigest On and use: puppet apply -e 'file { "/tmp/foo":

[Puppet Users] file resource issue?

2018-05-31 Thread Jason McMahan
Good day, I am using the file resource to check if a file has changed or altered on github. the code i am using is file { 'azure_udev_rule': path => '/etc/udev/rules.d/66-azure-storage.rules', ensure => 'file', source => 'https://raw.githubuserconten

[Puppet Users] File resource

2014-11-19 Thread Евгений Троицкий
Hi, colleagues! Can I repeatedly use a one file resource in Windows in follow case? 1. Check file resource with md5 from source disk. 2. If it changed -> stop application -> replace .exe on destination -> start application. 3. If not -> noop. 'Define' with 'realize' don't help me - d

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-25 Thread Josh Cooper
There are actually two different issues here: On Tue, Feb 18, 2014 at 12:31 PM, jmp242 wrote: > Here's another test where I just added --test to your command, and passed > to a log file. It should show my issue. Anyway, it does look very similar > an error, though I can't figure out why any of t

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-18 Thread jmp242
Here's another test where I just added --test to your command, and passed to a log file. It should show my issue. Anyway, it does look very similar an error, though I can't figure out why any of the string manipulation would fail on openvpn.exe and not on fusion.exe ... On Tuesday, February 18

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-18 Thread Rob Reynolds
I didn't see the error that you described (your log notes an issue with forking), but have a look at https://tickets.puppetlabs.com/browse/PUP-1389(which speaks of the require_file issues you describe). We've recently fixed that issue and it will be in the next release. I'm not sure these are the s

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-18 Thread jmp242
As far as I can tell. I'm on Windows, and it scrolls off the screen. It didn't seem to capture much when I tried to redirect to a file. On Tuesday, February 18, 2014 2:51:01 PM UTC-5, Rob Reynolds wrote: > > Is this the correct log file for the error you described? > > > On Tue, Feb 18, 2014 at 1

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-18 Thread Rob Reynolds
Is this the correct log file for the error you described? On Tue, Feb 18, 2014 at 1:06 PM, jmp242 wrote: > Puppet 3.4.2, as specified. I've attached a log file. > > > > > On Friday, February 7, 2014 12:35:32 PM UTC-5, Rob Reynolds wrote: > >> First question - what version of puppet? >> >> Secon

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-18 Thread jmp242
Puppet 3.4.2, as specified. I've attached a log file. On Friday, February 7, 2014 12:35:32 PM UTC-5, Rob Reynolds wrote: > > First question - what version of puppet? > > Second question - can you run puppet apply (or agent) with --trace --debug > --verbose and post the relevant results? We have

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-10 Thread Laurent Lepinay
I have a similar issue here, i'm sourcing files from a directory recursively: some files get copied but some throw the same error as yours. I'm on windows too. Le vendredi 7 février 2014 18:35:32 UTC+1, Rob Reynolds a écrit : > > First question - what version of puppet? > > Second question - can

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-07 Thread José Luis Ledesma
I'm a Unix guy, and perhaps this is a silly question but... Does C:/ProgramData/puppetfiles/ directory exists? Regards El 07/02/2014 17:31, "jmp242" escribió: > I'm really lost as to why this is failing. > > file{ 'openvpn.exe': > path => 'C:/ProgramData/puppetfiles/openvpn.exe', > source => "p

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-07 Thread Rob Reynolds
First question - what version of puppet? Second question - can you run puppet apply (or agent) with --trace --debug --verbose and post the relevant results? We have some recent fixes related to this. On Thu, Feb 6, 2014 at 3:27 PM, jmp242 wrote: > I'm really lost as to why this is failing. > >

[Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-07 Thread jmp242
I'm really lost as to why this is failing. file{ 'openvpn.exe': path => 'C:/ProgramData/puppetfiles/openvpn.exe', source => "puppet:///modules/openvpn/openvpn.exe", owner => 'SYSTEM', group => 'Administrators', mode => 0770, provider => windows, ensure => present, } gives me this error: Replac

[Puppet Users] file resource to provide serveral files

2014-01-24 Thread Jose Luis Ledesma
I think that what you need is a define here. Regards, -- 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 di

[Puppet Users] file resource to provide serveral files

2014-01-24 Thread Andreas Dvorak
Dear all, with my class config.pp I would like to provide config file to /etc/logrotate.d. filename: config.pp class logrotate::config($conf_file){ case $::osfamily { redhat:{ file { "/etc/logrotate.d/${conf_file}": ensure => 'present', owner => 'root', group

Re: [Puppet Users] file resource calling a 'define'd exec syntax?

2013-11-17 Thread Neil - Puppet List
Hello First up the file type supports selinux roles etc so you might not need any of that. If you did make the exec resource refreshonly and notify it from the file resource. Anyway the parser is right the syntax is bad. Inside the curly its always like type{'name': var => value, Followed by more

[Puppet Users] file resource calling a 'define'd exec syntax?

2013-11-17 Thread dkoleary
Hi; This one should be easy; but, so far, it's eluding me. I would like to configure ssh to use a different directory for authorized keys files. I have the file resource which that works on its own. I want the file resource to call the exec to set the selinux type on the directory when neede

[Puppet Users] File resource without ensure

2013-04-04 Thread cmon
Hi all, if I define a file resource without specifying an ensure parameter, it seems to behave like ensure => present was specified. I'm trying to require a file only when a command is executed, using something like this: file{'myfile': path => '/tmp/myfile', source => "puppet:///module

Re: [Puppet Users] file resource, multiple owner values

2013-02-12 Thread Felix Frank
Fascinating. I propose opening a documentation bug, if there is indeed no mention of the functionality. I suppose there isn't, because this is the first time I hear about this. Cheers, Felix On 02/11/2013 05:26 PM, Jennings, Jared L CTR USAF AFMC 96 SK/CCI wrote: > With Puppet 2.7.20, it seems th

RE: [Puppet Users] file resource, multiple owner values

2013-02-11 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
> This behavior when I provide multiple values for owner is just what I > want! But I don't want to depend on it if it might go away. Does anyone > else use the owner and group properties this way? Is there documentation > for this behavior that I've missed? Ah. From

[Puppet Users] file resource, multiple owner values

2013-02-11 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
With Puppet 2.7.20, it seems that when I write file { '/tmp/bla': owner => ['root', 'jared'] } then if the owner of /tmp/bla is either root or jared, nothing happens, and if not, the owner is changed to root. More generically speaking, my reading of the code suggests that if the o

Re: [Puppet Users] file resource

2012-04-16 Thread Denmat
Hi, Use > file { "/opt/tarball_name-${version}.tar.gz" : You then declare that with $version = 1.2.3 See http://docs.puppetlabs.com/learning/variables.html for fuller explanation. Den On 17/04/2012, at 7:32, Eslam Mamdouh wrote: > Hi All, > i'd like to define a file resource that transf

[Puppet Users] file resource

2012-04-16 Thread Eslam Mamdouh
Hi All, i'd like to define a file resource that transfers a tar ball that doesn't have fixed name actually tarball name will be tarball_name-.tar.gz i tried to define file resouce as following using regex : > file { "/opt/tarball_name*.tar.gz" : > ... > } > but it seems that regex doesn't wo

[Puppet Users] File resource "owner" not found, only during automatic puppet runs

2011-08-31 Thread treydock
I have a file resource defined to be owned by a group that is accessible via samba/winbind (AD based group), but every time Puppet runs automatically (every 30 min) the run fails with this error , (sensitive information removed) (/Stage[main]//Node[node1.tld]/Apache::Vhost[vhost1]/File[/var/www/ v

[Puppet Users] file resource question

2010-02-17 Thread Roy Nielsen
Hello, It's not mentioned in the online documentation, but will the file resource parameter "replace" work with content => template("mytemplate.erb"), I'd like to be able to say "if the file is already there, don't modify it", with the replace => false, Is that possible? (puppet 25.1

[Puppet Users] File resource type: critical chmod security issue

2009-07-27 Thread Judd Maltin
This code: file { '/tmp/default': ensure => directory, mode => '666' } produces: r...@blah# ls -la /tmp/default/ total 16 drwxrwxrwx 2 root root 4096 2009-07-27 16:21 . That is a major security issue. I cannot recommend Puppet to my clients if I get different results on my f