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.githubusercontent.com/Azure/WALinuxAgent/master/config/66-azure-storage.rules',
notify => Exec['azure_udev_reload'],
}
exec { 'azure_udev_reload':
command => 'udevadm control --reload-rules && udevadm
trigger --subsystem-match=block',
path => ['/usr/sbin', '/usr/bin'],
refreshonly => true,
}
The problem i have is every puppet run it sees the content as changed.
Notice: /Stage[main]/Profile::Azure/File[azure_udev_rule]/content:
Info: Computing checksum on file /etc/udev/rules.d/66-azure-storage.rules
Info: /Stage[main]/Profile::Azure/File[azure_udev_rule]: Filebucketed
/etc/udev/rules.d/66-azure-storage.rules to puppet with sum
b775eb19522b919062b1e4aaff4c018e
Debug: HTTP GET request to
https://raw.githubusercontent.com/Azure/WALinuxAgent/master/config/66-azure-storage.rules
returned 200 OK
Notice: /Stage[main]/Profile::Azure/File[azure_udev_rule]/content: content
changed '{mtime}2018-05-31 16:28:31 -0500' to '{mtime}2018-05-31 16:31:11
-0500'
Info: /Stage[main]/Profile::Azure/File[azure_udev_rule]: Scheduling refresh
of Exec[azure_udev_reload]
Debug: /Stage[main]/Profile::Azure/File[azure_udev_rule]: The container
Class[Profile::Azure] will propagate my refresh event
Debug: Exec[azure_udev_reload](provider=posix): Executing 'udevadm control
--reload-rules && udevadm trigger --subsystem-match=block'
Debug: Executing: 'udevadm control --reload-rules && udevadm trigger
--subsystem-match=block'
Notice: /Stage[main]/Profile::Azure/Exec[azure_udev_reload]: Triggered
'refresh' from 1 events
Is this a bug, am i doing something wrong?
Any help or suggestions would be greatly appreciated.
I tried using checksum => mtime and ctime but that did not help either.
The masters are 5.3.3 version.
Thank you
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/27d76968-bce6-4c17-aa7d-092ea9b0a768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.