Hi Lowe,
Here are the details....
This is the directory structure for manifests file site.pp and nodes.pp :- "C:\Maruti\Puppet\manifests"
The is the code for site.pp file
import 'nodes.pp'
This is the code for nodes.pp file
node 'IMIBLRKA1030' {
include apache
}
--------
This is the directory structure for module's manifests file init.pp :- "C:\Maruti\Puppet\modules\apache\manifests"
This is the code for init.pp file
# 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',
}
}
and I'm invoking site.pp file using puppet apply command as mentioned below and getting class apache is not found.
C:\>puppet apply C:\Maruti\Puppet\manifests\site.pp
Warning: The use of 'import' is deprecated at C:/Maruti/Puppet/manifests/site.pp