I have 2 modules with class name has A-Class and B-Class. I want to make sure B-Class runs first and with A-Class when i run Puppet apply site.pp. But getting error as 'Syntax error at 'mongos'; expected '}' at require B-Class line, below is the code.
node 'HOST-1'{
class { 'a_class':
require b_class,
first => "abcd",
log_data_path => "/log/serv.1",
}
class { 'b_Class':
build_id => "php_2.4",
}
}
Is it the right way to use require? Else what is the better way to do.
TIA