On Tue, Jan 22, 2013 at 12:30 AM, yarlagadda ramya <[email protected]> wrote:

You really want the `[email protected]` list for this sort
of question; the dev list is about modifying Puppet itself, not about
manifest level questions.

> I have created two manifests one for moving and other for renaming the moved
> file.
>
> these are the two manifests i wrote.
>
> 1)exec{"/bin/mv t2.txt /opt/tcs":
> cwd =>"/opt",
>
> 2)exec{"/bin/mv t2.txt trename.txt":
> cwd =>"/opt/tcs",
>
> How can i combine them in a class??

You need to check with the documentation at
http://docs.puppetlabs.com/references/2.7.latest/

You probably care specifically about the file type:
http://docs.puppetlabs.com/references/2.7.latest/type.html#file

...and the `require` metaparameter to ensure ordering:
http://docs.puppetlabs.com/references/2.7.latest/metaparameter.html#require

For "how to put them in a class", this:
http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html

-- 
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

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

Reply via email to