*Hi all, Can some one please help me with this.... Declare a file resource in a manifest and apply it! Try changing the login message by setting the content of /etc/motd.* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/eWtJvPFscJ8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Jan 8, 2013 at 9:20 PM, yarlagadda ramya <rams.15891@gmail.com>wrote:> *Hi all, > > Can some one please help me with this.... > > Declare a file resource in a manifest and apply it! Try changing the login > message by setting the content of /etc/motd.*This exercise is suggesting you manage a particular file and set the actual content of it. It''s not a pattern you''d want to re-use in production but it can help you understand how Puppet operates. A simple example uses the content parameter of the file resource type to literally set the contents of the file you want to manage. file { ''/etc/motd'': ensure => file, content => "Hello World!", } You can read more about the syntax of this resource, here: http://docs.puppetlabs.com/puppet/3/reference/lang_resources.html#syntax Here''s more on the file resource type, what you can do with it: http://docs.puppetlabs.com/references/latest/type.html#file -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> * > Declare a file resource in a manifest and apply it! Try changing the login > message by setting the content of /etc/motd.*Isn''t this an exercise in puppet book / puppet basics training ? You''re asking for answers in puppet-users! -- *Krish* I lives in a cave nd writes me games - "Tank ''em Up<http://blog.toonheart.com>" is coming soon! I haz facebook.com/toonheart -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.