Custom provider: How can I upload file from 'files' folder of the module?
Good day! I am writing a custom type for puppet that should upload a file and then do some buiseness logic. How can I upload a file from 'files' folder of the module? I try following :
attr_writer :content def create @content = Puppet::FileSystem.read(@resource[:file]) puts @content end
But get an error:
Could not set 'present on ensure: undefined method `read' for Puppet::FileSystem:Module at /etc/puppetlabs/puppet/modules/glassfish/manifests/rootcertificate.pp:10