On 2014-08-05 19:03, Ritesh Nanda wrote:
Hello ,
I would like to use ruby dsl in my manifest . Online doc for this topic
is very limited , i am stuck at a place where i want to use ruby DIr
class to find a particular file in a directory and then run operation on
it .
Is it possible to use ruby dsl for puppet in this way.
The ruby DSL is deprecated and will be removed in Puppet 4.
What you want is probably to write a function in Ruby.
The deprecated Ruby DSL was a way to write manifests in .rb files
instead of .pp files.
If what you want to do is something that executes on the master side,
you implement it as a function. If it is something that should run on
the agent, it is implemented as a resource type.
Regards
- henrik
Regards,
Ritesh Nanda
--
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+unsubscr...@googlegroups.com
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/fcb75cd4-68fa-4ed6-93a0-596d175f87fe%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/fcb75cd4-68fa-4ed6-93a0-596d175f87fe%40googlegroups..com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/lkge4q%24tb1%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.