Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-05 Thread Luke Anderson
Yes that was the case originally. To test again I uninstalled 
openssh-server and ensured that /etc/ssh/sshd_config file was removed, then 
ran puppet again. All worked as expected, package was installed, 
/etc/ssh/sshd file created and service running, however the quest tasks was 
not marked as completed, still stays at 5/6.

Unless this is a bug in the learning VM... as it is the very last quest & 
task.

As all is working as expected, and you have kindly validated my puppet code 
i'm happy with what I have learned.

Thank you for helping me! Also, thanks to Edouard for replying!

LA

On Thursday, 4 June 2015 18:26:17 UTC+1, LinuxDan wrote:
>
> OK.
> Here are the significant bits:
>
> Debug: importing '/etc/puppetlabs/puppet/environments/production/modules/
> sshd/manifests/init.pp' in environment production
>
> Debug: Automatically imported sshd from sshd into production
>
> Debug: /Stage[main]/Sshd/Package[openssh-server]/before: requires 
> File[/etc/ssh/sshd_config]
>
> Debug: /Stage[main]/Sshd/Service[sshd]/subscribe: subscribes to File[/etc/
> ssh/sshd_config]
>
> Debug: Executing '/sbin/service sshd status'
>
> Debug: Executing '/sbin/chkconfig sshd'
>
> Debug: Finishing transaction 90055050
>
> Debug: Storing state
>
> I see nothing wrong.
> Based on that output, I would say that :
> Service sshd is already running
> Package openssh-server is already installed
> File /etc/ssh/sshd_config is identical to 
> puppet:///modules/sshd/sshd_config
>
> Change any or all of those states and run Puppet again.
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere in 
> the universe is that none of it has tried to contact us.”  (Bill Waterson: 
> Calvin & Hobbes)
>
>
> On Jun 04, 2015, at 01:00 PM, Luke Anderson  > wrote:
>
> Hi,
>
> Output of "puppet apply 'sshd/tests/init.pp' --debug" is below:
>
>   [0;36mDebug: Runtime environment: puppet_version=3.7.3 (Puppet Enterprise 
> 3.7.1), ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8 [0m 
> [0;36mDebug: Loading external facts from /var/opt/lib/pe-puppet/facts.d [0m 
> [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/concat/lib/facter/concat_basedir.rb
>  [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_windir.rb
>  [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_http_get.rb
>  [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/pe_version.rb
>  [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/puppet_vardir.rb
>  [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/root_home.rb
>  [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/facter_dot_d.rb
>  [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_version.rb
>  [0m [0;36mDebug: Loading facts from 
> /etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_server_id.rb
>  [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/pe_staging/lib/facter/staging_http_get.rb 
> [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/custom_auth_conf.rb
>  [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_build.rb [0m 
> [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/platform_tag.rb 
> [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_version.rb 
> [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/windows.rb [0m 
> [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /opt/puppet/share/puppet/modules/pe_concat/lib/facter/pe_concat_basedir.rb 
> [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from 
> /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb [0m [0;36mDebug: 
> Loading facts from /var/opt/lib/pe-puppet/lib/facter/pe_build.rb [0m 
> [0;36mDebug: Loading facts from 
> /var/opt/lib/pe-puppet/lib/facter/platform_tag.rb [0m [0;36mDebug: Loading 
> facts from /var/opt/lib/pe-puppet/lib/facter/pe_version.rb [0m [0;36mDebug: 
> Loading facts from /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb [0m 
> [0;36mDebug: Loading facts from 
> /var/opt/lib/pe-puppet/lib/facter/root_home.rb [0m [0;36mDebug: Loading facts 
> from /var/opt/lib/pe-puppet/lib/facter/staging_windir.rb [0m [0;36mDebug: 
> Loading facts fro

Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-04 Thread Dan White

OK.
Here are the significant bits:

Debug: importing 
'/etc/puppetlabs/puppet/environments/production/modules/sshd/manifests/init.pp' 
in environment production
Debug: Automatically imported sshd from sshd into production

Debug: /Stage[main]/Sshd/Package[openssh-server]/before: requires 
File[/etc/ssh/sshd_config]
Debug: /Stage[main]/Sshd/Service[sshd]/subscribe: subscribes to 
File[/etc/ssh/sshd_config]

Debug: Executing '/sbin/service sshd status'
Debug: Executing '/sbin/chkconfig sshd'
Debug: Finishing transaction 90055050
Debug: Storing state

I see nothing wrong.
Based on that output, I would say that :
Service sshd is already running
Package openssh-server is already installed
File /etc/ssh/sshd_config is identical to puppet:///modules/sshd/sshd_config
Change any or all of those states and run Puppet again.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the 
universe is that none of it has tried to contact us.”  (Bill Waterson: Calvin & 
Hobbes)

On Jun 04, 2015, at 01:00 PM, Luke Anderson  wrote:

Hi,

Output of "puppet apply 'sshd/tests/init.pp' --debug" is below:

 [0;36mDebug: Runtime environment: puppet_version=3.7.3 (Puppet Enterprise 3.7.1), ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8 [0m [0;36mDebug: Loading external facts from /var/opt/lib/pe-puppet/facts.d [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/concat/lib/facter/concat_basedir.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_windir.rb [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_http_get.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/pe_version.rb [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/puppet_vardir.rb [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/root_home.rb [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/facter_dot_d.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_version.rb [0m [0;36mDebug: Loading facts from /etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_server_id.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/pe_staging/lib/facter/staging_http_get.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/custom_auth_conf.rb [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_build.rb [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/platform_tag.rb [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_version.rb [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/windows.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /opt/puppet/share/puppet/modules/pe_concat/lib/facter/pe_concat_basedir.rb [0m [0;32mInfo: Loading facts [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/pe_build.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/platform_tag.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/pe_version.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/root_home.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/staging_windir.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/mysql_version.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/windows.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/mysql_server_id.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/staging_http_get.rb [0m [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/pe_concat_basedir.rb [0m [0;36mDebug: importing '/etc/puppetlabs/puppet/environments/production/modules/sshd/manifests/init.pp' in environment production [0m [0;36mDebug: Automatically imported sshd from sshd into production [0m [0;36mDebug: Executing '/bin/rpm --version' [0m [0;36mDebug: Executing '/bin/rpm -

Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-04 Thread Luke Anderson
Hi,

Output of "puppet apply 'sshd/tests/init.pp' --debug" is below:

 [0;36mDebug: Runtime environment: puppet_version=3.7.3 (Puppet Enterprise 
3.7.1), ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8 [0m
 [0;36mDebug: Loading external facts from /var/opt/lib/pe-puppet/facts.d [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/concat/lib/facter/concat_basedir.rb
 [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_windir.rb
 [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/staging/lib/facter/staging_http_get.rb
 [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/pe_version.rb
 [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/puppet_vardir.rb
 [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/root_home.rb
 [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/stdlib/lib/facter/facter_dot_d.rb
 [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_version.rb
 [0m
 [0;36mDebug: Loading facts from 
/etc/puppetlabs/puppet/environments/production/modules/mysql/lib/facter/mysql_server_id.rb
 [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/pe_staging/lib/facter/staging_http_get.rb [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/custom_auth_conf.rb
 [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_build.rb [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/platform_tag.rb 
[0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_version.rb [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/windows.rb [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/opt/puppet/share/puppet/modules/pe_concat/lib/facter/pe_concat_basedir.rb [0m
 [0;32mInfo: Loading facts [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb [0m
 [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/pe_build.rb 
[0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/platform_tag.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/pe_version.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb [0m
 [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/root_home.rb 
[0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/staging_windir.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/mysql_version.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb [0m
 [0;36mDebug: Loading facts from /var/opt/lib/pe-puppet/lib/facter/windows.rb 
[0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/mysql_server_id.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/staging_http_get.rb [0m
 [0;36mDebug: Loading facts from 
/var/opt/lib/pe-puppet/lib/facter/pe_concat_basedir.rb [0m
 [0;36mDebug: importing 
'/etc/puppetlabs/puppet/environments/production/modules/sshd/manifests/init.pp' 
in environment production [0m
 [0;36mDebug: Automatically imported sshd from sshd into production [0m
 [0;36mDebug: Executing '/bin/rpm --version' [0m
 [0;36mDebug: Executing '/bin/rpm -ql rpm' [0m
 [0;36mDebug: Executing '/bin/rpm --version' [0m
 [mNotice: Compiled catalog for learning.puppetlabs.vm in environment 
production in 0.96 seconds [0m
 [0;36mDebug: Puppet::Type::Package::ProviderSun: file /usr/bin/pkginfo does 
not exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does 
not exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist 
[0m
 [0;36mDebug: Puppet::Type::Package::ProviderUp2date: file 
/usr/sbin/up2date-nox does not exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderDpkg: file /usr/bin/dpkg does not 
exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not 
exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not 
exist [0m
 [0;36mDebug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist 
[0m
 [0;36mDebug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not 
e

Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Dan White

Add the debug flag (--debug) and see what you get.
Also, put a dummy notify resource in your module file to get an indication that 
it is being processed.

Like this : 
                   notify {'here I am': }
“Sometimes I think the surest sign that intelligent life exists elsewhere in the 
universe is that none of it has tried to contact us.”  (Bill Waterson: Calvin & 
Hobbes)

On Jun 02, 2015, at 09:18 AM, Luke Anderson  wrote:

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 ')
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.
For more options, visit https://groups.google.com/d/optout.

--
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/f5d0841f-2498-4e0e-b158-68b8cf24c007%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Edouard Fazenda
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 :

> 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 ')
> 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
> 
> .
> 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.


[Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Luke Anderson
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 ')
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.
For more options, visit https://groups.google.com/d/optout.