1

Here is a small exemple module :

class apache {
...
}

What is the difference between these two methods if i want to include my example module ?

node web1 {
include apache
}

node web1 {
class { 'apache:' }
}

What is the best practices to include a class ?

1 Answer 1

3

There is no difference between those two approaches. You would need to use the class {'apache':} format if you want to add class parameters.

You must log in to answer this question.