Daniel Pittman
2013-Jan-22 17:41 UTC
Re: How can i create a class with this....?? Pls help
On Tue, Jan 22, 2013 at 12:30 AM, yarlagadda ramya <rams.15891@gmail.com> wrote: You really want the `puppet-users@googlegroups.com` 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 puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
Reasonably Related Threads
- How to add a new line at a particular place in a file..
- nested modules and autoloading
- Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.
- Pls do suggest a simple example for creating a class using manifests
- Announce: Puppet 2.7.7rc1 available