Hi,
I have 3 classes and i need to execute class 3 only when class 1 and class 2 completes. All of these classes must be attached to a host.
class1($version='1.1.1'){
.
.
.
}
class2($version='2.2.2'){
.
.
.
}
and
class3(){
import class1
import class2
exec{ 'something':
cmd => 'some command here',
before => [Class['class1'], Class['class2']]
}
}
When i try to apply the above relation, i get the following error
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[class1] is already declared; cannot re declare on node machine.domain.com
Can any one guide me how to handle this scenario?
Thanks