How to copy module files with a Provider?

12 views
Skip to first unread message

Akai

unread,
Nov 9, 2016, 5:06:26 AM11/9/16
to Puppet Users
Hello together,

my provider need some specific files on a node for his work.

I want to copy this files from the Provider Module on the node. How can i do this?
In Puppet DSL, i would use this:


    file
{ 'c:/Temp/file.rsp':
        source
=> 'puppet:///modules/MODULENAME/file.rsp',
        source_permissions
=> ignore,
   
}
   
    file
{ 'c:/Temp':
       
ensure => 'directory',
        source_permissions
=> ignore,
   
}

is it possible to something like this in the native ruby language? I dont know how to access the file in a module by native ruby language (puppet:///modules/MODULENAME/file.rsp') inside a  provider.

Iam thanksful to any help

best regards

Akai
Reply all
Reply to author
Forward
0 new messages