Hi Josh,
I'm runnig from cmd.exe, I'm using Administrator account on the windows box, this is the output for the command that you asked:

C:\Users\Administrator>whoami /groups

GROUP INFORMATION
-----------------

Group Name Type SID Attributes ==================================== ================ ============ =============================================================== Everyone Well-known group S-1-1-0 Mandatory group, Enabled by default, Enabled group BUILTIN\Administrators Alias S-1-5-32-544 Mandatory group, Enabled by default, Enabled group, Group owner BUILTIN\Users Alias S-1-5-32-545 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4 Mandatory group, Enabled by default, Enabled group CONSOLE LOGON Well-known group S-1-2-1 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory group, Enabled by default, Enabled group LOCAL Well-known group S-1-2-0 Mandatory group, Enabled by default, Enabled group NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10 Mandatory group, Enabled by default, Enabled group Mandatory Label\High Mandatory Level Label S-1-16-12288 Mandatory group, Enabled by default, Enabled group

C:\Users\Administrator>


I found a page that talks about security on windows 2008, and I tried changing a configuration for the IIS, On the Ineternet Information Services Manager, under Management, Configuration Editor, selecting Providers, click on Edit Items, selecting DataProtectionConfigurationProvider, I change useMachineProtection, and save the change.

On Windows 7 the scripts run perfect, but on Windows 2008 R2 still didn't work, still the execution said that the file was modified, but nothing happens on the file..... no errors it's showed....

Regards

On 29-02-2012 13:43, Josh Cooper wrote:
Hi Marco,

On Wed, Feb 29, 2012 at 5:46 AM, mparrad <marco.parr...@gmail.com <mailto: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 <http://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.

--
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