class vhost::vhost1 { custom::apache::vhost{ #parameters } } class vhost::vhost2 { custom::apache::vhost{ #parameters } } define custom::apache::vhost () { include custom::apache } class custom::apache { class { '::apache': #parameters } class { '::apache::mod::ssl': #parameters } include apache::mod::authnz_ldap include apache::mod::headers include apache::mod::rewrite include apache::mod::fastcgi apache::listen { '443': } }
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/045a13d7-7bf0-4523-9067-8bbf73c26c89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
class vhost::vhost1 { custom_apache::site{ #parameters
}}
define custom_apache::site (#parameters) { include custom_apache::ssl
}
class custom_apache::ssl (#parameters){ class { 'custom_apache':
#parameters }
}
class custom_apache (#parameters) { include custom_apache::params class {'custom_apache::install': #parameters } class {'custom_apache::config': #parameters
} class {'custom_apache::service': #parameters }}class vhost::vhost3 { custom::apache::vhost{ #parameter }
include ::apache::mod::proxy include ::apache::mod::proxy_http}--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0665b012-601b-4fac-83ff-fa7acfae9fa7%40googlegroups.com.
Hi,"include" shouldn't be a problem:the problematic declariation must be one of the resource like declaration. You can only declare a class in such format once.