updating concat breaks puppet run

10 views
Skip to first unread message

Andy Hall

unread,
Aug 20, 2020, 7:29:03 AM8/20/20
to puppet...@googlegroups.com
we have updated the concat module and it no longer likes our code...so
this used to work fine...

concat { "/etc/exports":
ensure => present,
}

Concat::Fragment {
content => "# HEADER: This file is managed by Puppet. DO NOT EDIT.\n",
order => '0',
}

concat::fragment { 'nfs_exports_header':
target => "/etc/exports",
}

exec { 'reload_nfs_exports':
command => "exportfs -ra",
subscribe => File["/etc/exports"],
refreshonly => true,
}

...but after updating to concat version 6.2 we get this error...

Server Error: Could not find resource 'File[/etc/exports]' in
parameter 'subscribe' (file:
/etc/puppetlabs/code/environments/production/modules/flex/manifests/profiles/archive/server.pp,
line: 34)

what has changed for this to break ? does concat itself not declare
the file ? this works fine once we roll back the version.

any help most appreciated thanks.

Ben Ford

unread,
Aug 20, 2020, 3:25:08 PM8/20/20
to puppet...@googlegroups.com
Subscribe to Concat['/etc/exports'] instead.

The concat type used to be a defined type that wrapped a file resource many years ago. It's now a first class citizen itself.

--
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/CAOp5WB7Ew4cz%3D1zo8oSHK4Y74kAdqteXWp%3DG%3D1YBZD3Vrx5Sxw%40mail.gmail.com.

Andy Hall

unread,
Aug 21, 2020, 5:39:02 AM8/21/20
to Puppet Users
thanks for the explanation I'll update our code then the module and try again...
Reply all
Reply to author
Forward
0 new messages