On 01/28/2016 12:22 PM, Maruti Gangumolu wrote:
> Thanks Dirk! It worked. I'm still facing with module class file. When
> I'm invoking site.pp -> nodes.pp -> init.pp manifest files I'm getting
> an error that apache class is not found. Could you please help me with it?
>
> # Manage apache tomcat v8 application server
> class apache {
> package { 'Tomcat8' :
> ensure => present,
> source => 'C:/Maruti/Puppet/apache-tomcat-8.0.30.exe',
> install_options => ['/S','/D=C:\Maruti\Puppet\apache-tomcat-8'],
> description => 'Installing tomcat v8.0.30 on windows system',
> }
> }
Hi,
where did you create that `class apache`?
Ideally, you should put it into a custom module such as 'site' or
'local' and call it local::apache. It might even go into your profiles
module as profile::apache.
Have you completed the training VM course?
HTH,
Felix