On Mon, Feb 25, 2013 at 10:13 AM, David Stewart
<[email protected]>wrote:

> Hi,
>
> I am new to puppet and have hit a problem in developing a module.
> I have defined a Type and Provider, but as the Provider is implemented in
> Ruby (i.e. a '.rb' file) I cannot leverage Puppet style constructs, e.g. if
> 'create' is called on my provider I want to provision files on the agent in
> order to create an installation, for this I would have liked to use the
> 'file' construct, but this, as I understand it, can only exist in '.pp'
> files.
>

in general, the best way to create combinations of resources that are
parameterized is with a defined resource type (which is created using
Puppet's DSL and the 'define' keyword)


> There is a possibility that the DSL
>

the ruby DSL has ( I assume that is what you mean)


> could be used but I have seen that this has been deprecated, and is
> effectively being re-engineered so I am not certain that this is th correct
> route. I may well be missing something obvious, any help would be
> appreciated.
>

There are a few native types that do autogenerate resource (like the file
type with fiel recursion), but this approach is not documented anywhere and
I would not recommend it.


>
> Thanks.
>
> This email and any files transmitted with it are confidential and solely
> for the use of the intended recipient. This message contains confidential
> information and is intended only for the individual named. If you are not
> the intended recipient you are notified that disclosing, copying,
> distributing or taking any action in reliance on the contents of this
> information is strictly prohibited. Please notify the sender immediately by
> e-mail if you have received this e-mail by mistake and delete this e-mail
> from your system.
>
>
>
> Computer viruses can be transmitted via email. The recipient should check
> this email and any attachments for the presence of viruses. Although the
> company has taken reasonable precautions to ensure no viruses are present
> in this email, the company cannot accept responsibility for any loss or
> damage arising from the use of this email or attachments.
>
>
>
> Any views or opinions presented in this email are solely those of the
> author and do not necessarily represent those of the Estafet. Employees of
> Estafet are expressly required not to make defamatory statements and not to
> infringe or authorize any infringement of copyright or any other legal
> right by email communications. Any such communication is contrary to
> company policy. The company will not accept any liability in respect of
> such communication, and the employee responsible will be personally liable
> for any damages or other liability arising.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to