The Puppet code is looping through dozens of domains, creating resources 
for each, so downloading won't work unless I create some service that can 
craft the right file from parameters in the URL. I've gone with the hack I 
suggested above for now, that searches for files that should be updated and 
puts them into position - it was only a few lines of shell script and runs 
each hour. Just wondered when that feature from 2013 might get implemented 
:-)

Thanks,

Iain.

On Wednesday, 12 January 2022 at 17:37:52 UTC Josh Cooper wrote:

> On Wed, Jan 12, 2022 at 8:59 AM Iain Hallam <iain....@gmail.com> wrote:
>
>> I find myself needing to manage a file that has content that to Puppet 
>> looks like a checksum. It isn't, but because Puppet sees any file content 
>> line beginning with "{", 3 to 5 characters, "}", as a checksum, it doesn't 
>> accept the content but instead tries to find the file in a filebucket...
>>
>>
>> https://github.com/puppetlabs/puppet/blob/2f14ddd269c26cba36771d9b3464c2c29422e46a/lib/puppet/type/file/content.rb#L49
>>
>> I actually need to store "{CRYPT}$..." which isn't one of Puppet's 
>> recognised types.
>>
>> It seems there's no way to work around this in pure Puppet code, so I 
>> can't manage those files without doing something hackish, like putting a 
>> modified form of the content in a file alongside then having a script on 
>> the machine that puts it in the correct place without the modifications, 
>> but the issue for removing this behaviour was last updated in 2018:
>>
>
> I'd use the "checksum" and "checksum_value" parameters along with the 
> "source" parameter. That way the agent can determine if the file needs 
> updating without needing the full content in the catalog, and the agent can 
> download the source as needed, potentially from a regular file server, e.g. 
> https://
>
>
>> https://tickets.puppetlabs.com/browse/PUP-1043
>>
>> It says it will now target Puppet 7, which came and went some time ago. 
>> Does anyone know if there will be a new target for this?
>>
>> Thanks,
>>
>> Iain Hallam.
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/72752c00-68db-4db2-98ff-b2d42ddeadedn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/72752c00-68db-4db2-98ff-b2d42ddeadedn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Josh Cooper
> Software Engineer
> jo...@puppet.com
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/749ce92e-9825-4063-8dec-aa80567cdd18n%40googlegroups.com.

Reply via email to