On Tue, Mar 1, 2011 at 4:30 PM, Markus Roberts <[email protected]> wrote:
>
>
>> If you were on 2.6.4 (and probably earlier) and
>> if you managed a file with the source parameter and
>> if the local file was absent or content differed, we wrote out:
>>
>> !ruby/sym type: !ruby/sym absent
>>
>> !ruby/sym owner: !ruby/sym absent
>>
>> to state.yaml, even if you weren't auditing.
>
> I can not find a version where it logs the type as absent for a content
> difference. It always/only seems to log type absent when the file being
> managed is actually absent.
>
> I'm using:
>
> File { audit => all, }
>
> file { "/tmp/bar":
> source => "file:///tmp/foo",
> }
>
> and either
>
> rm /tmp/bar
>
> or
>
> echo bleck > /tmp/bar
>
> with git bisect between 2.6.5rc2 and 2.6.2
>
> Is there something else I'm missing to reproduce this?
No, I think I've overstated the situation, and was testing absence,
then content modification, without recognizing the :absent was caused
by the former, and not undone by the latter.
eg taking this manifest without auditing, on 2.6.4:
file { "/tmp/bar":
source => "file:///tmp/foo",
}
$ rm -f /tmp/bar
$ puppet apply /tmp/test.pp
state.yaml shows:
"File[/tmp/bar]":
!ruby/sym type: !ruby/sym absent
!ruby/sym checked: 2011-02-24 13:13:03.743376 -08:00
!ruby/sym synced: 2011-02-24 13:13:03.747736 -08:00
!ruby/sym owner: !ruby/sym absent
$ echo "foo" >> /tmp/bar
$ puppet apply /tmp/test.pp
state.yaml shows:
"File[/tmp/bar]":
!ruby/sym type: !ruby/sym absent
!ruby/sym checked: 2011-02-24 13:14:27.019537 -08:00
!ruby/sym synced: 2011-02-24 13:14:27.025681 -08:00
!ruby/sym owner: !ruby/sym absent
Even if I move to audit => all, all I get is:
"File[/tmp/bar]":
!ruby/sym type: !ruby/sym absent
!ruby/sym checked: 2011-02-24 13:16:11.955335 -08:00
!ruby/sym seluser:
!ruby/sym synced: 2011-02-24 13:15:28.592088 -08:00
!ruby/sym selrole:
!ruby/sym seltype:
!ruby/sym owner: !ruby/sym absent
!ruby/sym selrange:
!ruby/sym target: !ruby/sym notlink
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.