On Wed, Jan 12, 2022 at 8:59 AM Iain Hallam <iain.hal...@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+unsubscr...@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 j...@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/CA%2Bu97ukKrV6TDs34nh5EbyZ5WnGa-vNLAcLGAf9napOQHBZP%2BQ%40mail.gmail.com.