Jasper Hargreaves
2011-Nov-25 12:03 UTC
[Puppet Users] file type creating directory instead of file
Hi all, Just signed onto the mailing lists, so apologies if this has already been addressed, but can''t seem to find much relevant content online. We''re just in the process of upgrading some of our test systems (server & agent) from 2.6.4 to 2.7.5 - and we''re experiencing some odd behaviour with the file resource type, in that it''s suddenly created directories instead of files (indeed, replacing previously puppet deployed .ini files with directories). Example is a php.ini - all worked fine on 2.6.4.. upgrade, and it turns into a directory. I''ve tried hard coding it to ensure => file, just in case the parameters went crazy.. but no joy there either. And the logfiles would imply that it thinks it''s created a file..> puppet-agent[23390]: > (/Stage[main]//Node[hostname]/Configfile[php.ini]/File[php.ini]/ensure) createdAnybody able to shed any light on this at all? It''d be nice to be able to upgrade these systems... Thanks! -- Best regards, Jasper Hargreaves -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Nov-25 19:12 UTC
Re: [Puppet Users] file type creating directory instead of file
On Fri, Nov 25, 2011 at 4:03 AM, Jasper Hargreaves < jasper.hargreaves@m-w.co.uk> wrote:> Hi all, > > Just signed onto the mailing lists, so apologies if this has already been > addressed, but can''t seem to find much relevant content online. > We''re just in the process of upgrading some of our test systems (server & > agent) from 2.6.4 to 2.7.5 - and we''re experiencing some odd behaviour with > the file resource type, in that it''s suddenly created directories instead > of files (indeed, replacing previously puppet deployed .ini files with > directories). > > Example is a php.ini - all worked fine on 2.6.4.. upgrade, and it turns > into a directory. > I''ve tried hard coding it to ensure => file, just in case the > parameters went crazy.. but no joy there either. > > And the logfiles would imply that it thinks it''s created a file.. > >> puppet-agent[23390]: (/Stage[main]//Node[hostname]/** >> Configfile[php.ini]/File[php.**ini]/ensure) created >> > > Anybody able to shed any light on this at all? > It''d be nice to be able to upgrade these systems... >How reproducible is this Jasper? Does it happen on every resource or just some? Is it definitely happening with just "plain" File resources? These aren''t defined types or anything? If you look in the agent catalog, does the resource entry in the catalog reflect that you''re explicitly specifying "ensure => file" ?> > Thanks! > > -- > > Best regards, > Jasper Hargreaves > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@** > googlegroups.com <puppet-users%2Bunsubscribe@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en> > . > >-- Nigel Kersten Product Manager, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stefan Schulte
2011-Nov-25 20:58 UTC
Re: [Puppet Users] file type creating directory instead of file
On Fri, Nov 25, 2011 at 12:03:05PM +0000, Jasper Hargreaves wrote:> Hi all, > > Just signed onto the mailing lists, so apologies if this has already > been addressed, but can''t seem to find much relevant content online. > We''re just in the process of upgrading some of our test systems (server > & agent) from 2.6.4 to 2.7.5 - and we''re experiencing some odd behaviour > with the file resource type, in that it''s suddenly created directories > instead of files (indeed, replacing previously puppet deployed .ini > files with directories). > > Example is a php.ini - all worked fine on 2.6.4.. upgrade, and it turns > into a directory. > I''ve tried hard coding it to ensure => file, just in case the > parameters went crazy.. but no joy there either.Hi Jasper, did puppet also *replaced* a file with a directory or was php.ini absent before? Can you please print your File[php.ini] resource? Do you specify a source parameter and if so is the source definitly a file itself? -Stefan