fileserving in parser function

60 views
Skip to first unread message

Rich Siegel

unread,
Apr 4, 2014, 4:51:42 PM4/4/14
to puppet...@googlegroups.com
In my  loadcsv parser function I do (I stripped out all non-relevant parts)

```
require 'puppet/file/serving/configuration'
# on windows this fails - path is the args[0]:
# path  = 'puppet:///modules/name/myfile.csv'
content = Puppet::FileServing::Content.indirection.find(path) 
```

just trying to do this:
$niccsv = loadcsv ('puppet:///modules/network/ise-lld/ise-nic.csv')


Puppet::Error:
       Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: undefined method `supports_acl?' fo
r #<Puppet::Type::File::ProviderWindows:0x000000082399e0>
       undefined method `supports_acl?' for #<Puppet::Type::File::ProviderWindows:0x000000082399e0> at /home/rismoney/puppet/modules/dns/spe
c/fixtures/modules/dns/manifests/windows.pp:10 on node dev.example.com

L10 is just
$niccsv = loadcsv ('puppet:///modules/network/lld/ise-nic.csv')

Am I missing something to use the File API on windows?

Rob Reynolds

unread,
Apr 7, 2014, 10:43:38 AM4/7/14
to puppet...@googlegroups.com
Rich,
 What version is the puppet agent?


--
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/11260c1c-fafe-4d87-b1b9-5dcfae8aa060%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco - http://puppetconf.com 

Rich Siegel

unread,
Apr 8, 2014, 10:17:48 AM4/8/14
to puppet...@googlegroups.com
I am getting this error in rpec using the puppet gem 3.4.3

Rob Reynolds

unread,
Apr 9, 2014, 3:41:28 PM4/9/14
to puppet...@googlegroups.com
One of the reasons you might see this could be a check on the path in 3.4.x to verify that volumes are NTFS.

I think we may have already fixed this for 3.5.x with https://tickets.puppetlabs.com/browse/PUP-1450.

Another thing to verify is that you have all of the correct gems (and versions) loaded with puppet for use on Windows. https://github.com/puppetlabs/puppetlabs-acl/blob/master/Gemfile#L26-L40





For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages