Hi Luke, This is also my first post :) But maybe I can help you.
So I have created the same class 'sshd' as you. Here the structure : [vagrant@vm01 modules]$ pwd /etc/puppet/modules [vagrant@vm01 modules]$ tree . └── sshd ├── files │ └── sshd_config ├── manifests │ └── init.pp └── tests └── init.pp 4 directories, 3 files And I have run the init.pp in the test directory with puppet apply while putting the --modulepath option. This option can be added in your puppet.con located in the /etc/puppet/ directory. [vagrant@vm01 ~]$ sudo puppet apply --modulepath="/etc/puppet/modules/" /etc/puppet/modules/sshd/tests/init.pp Notice: Compiled catalog for vm01.v.cablecom.net in environment production in 0.53 seconds Notice: /Stage[main]/Sshd/File[/etc/ssh/sshd_config]/content: content changed '{md5}3bdf2cc35b8e94d3ec2440b921db1728' to '{md5}d41d8cd98f00b204e9800998ecf8427e' Notice: /Stage[main]/Sshd/Service[sshd]: Triggered 'refresh' from 1 events Notice: Finished catalog run in 0.52 seconds You're puppet code is valid and execute without error. Hope this help ! Cheers, Edouard. 2015-06-02 13:42 GMT+02:00 Luke Anderson <landerso...@gmail.com>: > Hi, > > Firstly, apologies if i have started a duplicate topic, this is my first > post & I couldn't find a topic that matches my question... > > I ran into a problem when working on the Ordering quest in the Puppet > Learning VM. It is when managing the sshd service, during the final task > number 6 the quest asks you to complete the following; "The > sshd/manifests/init.pp manifest should should define the sshd class". I > have followed along and cannot see any issues with my manifest, however > when applying the manifest it doesn't do anything, and the task is not > completed. > > My 'sshd/manifests/init.pp' manifest file looks like this: > > * 1 class sshd {* > * 2* > * 3 package { 'openssh-server':* > * 4 ensure => present,* > * 5 before => File['/etc/ssh/sshd_config'],* > * 6 }* > * 7* > * 8 file { '/etc/ssh/sshd_config':* > * 9 ensure => file,* > * 10 mode => 600,* > * 11 source => 'puppet:///modules/sshd/sshd_config',* > * 12 }* > * 13* > * 14 service { 'sshd':* > * 15 ensure => running,* > * 16 enable => true,* > * 17 subscribe => File['/etc/ssh/sshd_config'],* > * 18 }* > * 19* > * 20 }* > > and my 'sshd/tests/init.pp' manifest looks like: > > *1 include 'sshd'* > > The puppet parser tool returns no syntax errors, however when using > 'puppet apply sshd/tests/init.pp' nothing seems to happen; > > [root@learning /etc/puppetlabs/puppet/environments/production/modules]# > puppet apply sshd/tests/init.pp > Notice: Compiled catalog for learning.puppetlabs.vm in environment > production in 0.83 seconds > Warning: The package type's allow_virtual parameter will be changing its > default value from false to true in a future release. If you do not want to > allow virtual packages, please explicitly set allow_virtual to false. > (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/package.rb:430:in > `block (3 levels) in <module:Puppet>') > Notice: Finished catalog run in 0.63 seconds > [root@learning /etc/puppetlabs/puppet/environments/production/modules]# > > Please can anyone point me in the right direction? > > Again, apologies if I have posted in the wrong location, feel free to > direct me to the correct place. > > Thanks > LA > > > -- > 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/ccce60b1-f98e-4ecf-9909-32d602dab7f3%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/ccce60b1-f98e-4ecf-9909-32d602dab7f3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ________________________________________ Edouard Fazenda Tel : 0688451444 -- 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/CAJWWvFrgmfX%2BAsQU2dNjbD%3D1HvcXX%3DRHhnRQUFyKThOPsO4o%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.