Andy Hall
unread,Aug 20, 2020, 7:29:03 AM8/20/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.