: )) thought I had alredy replied ....
Yes you are right , :
b) the class itself is not being included properly elsewhere
as it is not listed i
/var/lib/puppet/state/classes.txtAnd Yes you are right , I should have attached my init.pp and oel.pp see now below:
[root@ldn-lx-puppet01 manifests]# pwd
/etc/puppet/testing/modules/itrs_probe/manifests
[root@ldn-lx-puppet01 manifests]#
[root@ldn-lx-puppet01 manifests]# more *.pp
::::::::::::::
init.pp
::::::::::::::
class itrs_probe () inherits local::conf {
notify { 'inside itrs_probe': }
case $operatingsystem {
/OEL|RedHat/: { class { 'itrs_probe::oel': }
}
default: { }
}
}
::::::::::::::
oel.pp
::::::::::::::
class itrs_probe::oel ($region='london'){
package { 'Global_NetProbe':
ensure => installed,
}
file { '/opt/NetProbe/start_netprobe_app':
owner => root,
group => root,
mode => 755,
ensure => present,
source => [ "puppet:///modules/itrs_probe/oel/${hostname}.start_netprobe_app",
"puppet:///modules/itrs_probe/oel/${region}.start_netprobe_app",
"puppet:///modules/itrs_probe/oel/start_netprobe_app",
]
}
file { '/opt/NetProbe/start_netprobe_inf':
owner => root,
group => root,
mode => 755,
ensure => present,
require => File['/opt/NetProbe'],
source => [ "puppet:///modules/itrs_probe/oel/${hostname}.start_netprobe_inf",
"puppet:///modules/itrs_probe/oel/${region}.start_netprobe_inf",
"puppet:///modules/itrs_probe/oel/start_netprobe_inf",
]
}
service { 'netprobe_app':
enable => true,
}
service { 'netprobe_inf':
enable => true,
}
Package['Global_NetProbe'] -> File['/opt/NetProbe/start_netprobe_app'] -> Service['netprobe_app']
Package['Global_NetProbe'] -> File['/opt/NetProbe/start_netprobe_inf'] -> Service['netprobe_inf']
}
[root@ldn-lx-puppet01 manifests]#
Thanks & Regards
Yes you are right , :b) the class itself is not being included properly elsewhereas it is not listed i
/var/lib/puppet/state/classes.txtAnd Yes you are right , I should have attached my init.pp and oel.pp see now below:
He John ,
Thanks for Your comment. But now I´m totally lost.
I have to admit, the puppet server was already set up and working with a bunch of modules when I take over ( I have not set puppet up myself....and do not have many experience with Puppet !)
So I had expected to create new path under modules e.g......testing /modules/itrs_prob/ { files, templates, manifests} and then put a init.pp and the oel.pp into manifests should let puppet deploy my stuff.
This seems not to be the case.
For testing I made again a new modul (/dummy/ { files, templates, manifests} and also put an init.pp in to manifests .
(this init pp)
class dummy () {
notify { 'inside dummy': }
}
I had expected to see something like this ...what I have tested on a other already working modul ... it additionally send the notify ....
notice: /Stage[main]/Altiris_client/Notify[inside altiris_client]/message: current_value absent, should be inside altiris_client (noop)
But the notify for dummy does not appear ...
How do I add my new modules to get deploy ... ( where dummy is not required it does nothing ... but my itrs_probe needed)
Greetings