Hi Marco,

On Wed, Feb 29, 2012 at 5:46 AM, mparrad <marco.parr...@gmail.com> wrote:

> Hi Guys, I'm recently start working with puppet and mostly puppet for
> windows, On linux works perfect, but on windows works fine!, but I got a
> issue working on c:\windows\system32\inetsrv\config folder, I need modify
> the file applicationHost.config using puppet, to keep centralized the
> config for IIS, but when I run the puppet agent for windows the behavior
> it's real weird, The execution finish without errors, also said the file
> was updated, or created, but when I take a look to the file, it's remain
> without changes.
>
> I'm working with puppet master 2.7.1 on CentOS 5.7 server, and puppet for
> windows 2.7.1 on Windows 2008 R2 server...
>

Are you running puppet agent from cmd.exe? or as a service? If the former,
can you run: whoami /groups

I tried changing the permissions to the folder, I put read/write
> permission, I put Full control, I take ownership, but nothing, when I run
> the puppet agent I got the next:
>
> On puppet master i wrote this init.pp for a module called iisconfig:
>
> class iisconfig()
> {
> file { 'C:\Windows\System32\drivers\etc\hosts':
>         ensure => present,
>         content => template("/etc/puppet/modules/iisconfig/files/hosts"),
>         }
>
> file { 'C:\Windows\System32\inetsrv\config\applicationHost.config':
>         ensure => 'present',
>         content =>
> template('/etc/puppet/modules/iisconfig/files/applicationHost.config'),
>         }
>
>
Can you try changing content => 'some literal string'? I'm curious if this
is a templating issue.


> file { "c:/temp/test.txt":
>         ensure => 'file',
>         mode => '660',
>         owner => 'Administrator',
>         group => 'Administrators',
>         content =>
> template('/etc/puppet/modules/iisconfig/files/applicationHost.config'),
>         }
> }
>
> This is the execution
> C:\temp>puppet agent --test
> notice: Ignoring --listen on onetime run
> info: Retrieving plugin
> info: Caching catalog for test01.office.com
> info: Applying configuration version '1330497348'
> notice:
> /Stage[main]/Iisconfig/File[C:\Windows\System32\drivers\etc\hosts]/content:
> info: FileBucket adding {md5}f6b9e9fce03e4bbd9952814d55353857
> info: /Stage[main]/Iisconfig/File[C:\Windows\System32\drivers\etc\hosts]:
> Filebucketed C:/Windows/System32/drivers/etc/hosts to puppet sum
> f6b9e9fce03e4bbd9952814d55353857
> notice:
> /Stage[main]/Iisconfig/File[C:\Windows\System32\drivers\etc\hosts]/content:
> content changed '{md5}f6b9e9fce03e4bbd9952814d55353 to
> '{md5}32aca7ae45f022642e2f5b0156dcb3ca'
> notice: /Stage[main]/Iisconfig/File[c:/temp/test.txt]/content:
> info: FileBucket adding {md5}b3589a284c00ce9a67dd42ccaf15e46d
> info: /Stage[main]/Iisconfig/File[c:/temp/test.txt]: Filebucketed
> c:/temp/test.txt to puppet with sum b3589a284c00ce9a67dd42ccaf15e46d
> notice: /Stage[main]/Iisconfig/File[c:/temp/test.txt]/content: content
> changed '{md5}b3589a284c00ce9a67dd42ccaf15e46d' to
> '{md5}881bfbf113937635f5c35241ed2'
> notice: Finished catalog run in 8.25 seconds
> notice:
> /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]/content:
>
>
> The first file and the last one works fine, but the file I need to modify
> didn't works, but also didn't show any error message or something....


Yeah, that's no good. Hopefully the above will shed some light on what's
going on.

Josh

-- 
Josh Cooper
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to