Hi guys, I''m having difficulties with this exercise: "Try wrapping a user resource in a *human::user* type that automatically grabs that personʼs *.bashrc* file from your *site module* and *manages one or more ssh_authorized_key resources* for their account" 1. What''s a "site module"? 2. What am I expected to change in the .bashrc-file? Really thanks in advance! -- 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. For more options, visit https://groups.google.com/groups/opt_out.
I''m not sure where you''re following the tutorial, but the version on the official puppetlabs site doesn''t include the phrase "site module". http://docs.puppetlabs.com/learning/definedtypes.html#exercises And for the bashrc file... You know normal stuff you''d have in a bashrc, aliases, path modifications, variable exports, whatevs. On Thursday, August 15, 2013 11:56:40 PM UTC-7, ytmp123 wrote:> > Hi guys, > > I''m having difficulties with this exercise: > "Try wrapping a user resource in a *human::user* type that automatically > grabs that personʼs *.bashrc* file from your *site module* and *manages > one or more ssh_authorized_key resources* > for their account" > > 1. What''s a "site module"? > 2. What am I expected to change in the .bashrc-file? > > Really thanks in advance! >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
Hi Ellison Marks: Thanks. But I don''t get what I''m exactly expected to do in this exercise. Is this structure right?: - human - |-> manifests - |-> init.pp - |-> user.pp 1. Does init.pp have to contain a class "human", what shall this class do? 2. What does the type "human::user" (user.pp) to do? Please give me some hints. It would be a great help! -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Well, first, for a module, your pp files go *inside* the manifests folder. For init.pp, it should contain a human class, but there doesn''t have to be anything in that class. The human::user defined type will do the heavy lifting, containing the user resource, a file or template for the bashrc, and one or more ssh_authorized_key resources. On Friday, August 16, 2013 10:44:02 AM UTC-7, ytmp123 wrote:> > Hi Ellison Marks: > > Thanks. But I don''t get what I''m exactly expected to do in this exercise. > Is this structure right?: > > - human > - |-> manifests > - |-> init.pp > - |-> user.pp > > 1. Does init.pp have to contain a class "human", what shall this class do? > 2. What does the type "human::user" (user.pp) to do? > > Please give me some hints. It would be a great help! > >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
Hi, I think you have confusion about structure. Structure should be: human: |-> manifests |-> init.pp |-> user.pp 1. init.pp -> Contains a class definition. (every class under manifests should be defined in int.pp) 2. human::user (user.pp) is a class which will create user according to your user.pp file (it should be also defined in init.pp) Refer link for better understanding of structure of puppet and basics : http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html Thanks & Regards, Sneha More, NTT DATA OSS Center Pune, India On Friday, August 16, 2013 11:14:02 PM UTC+5:30, ytmp123 wrote:> > Hi Ellison Marks: > > Thanks. But I don''t get what I''m exactly expected to do in this exercise. > Is this structure right?: > > - human > - |-> manifests > - |-> init.pp > - |-> user.pp > > 1. Does init.pp have to contain a class "human", what shall this class do? > 2. What does the type "human::user" (user.pp) to do? > > Please give me some hints. It would be a great help! > >-- 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. For more options, visit https://groups.google.com/groups/opt_out.