Merge pull request #3 from jeffmccune/feedback/master/composite_transitive_relationships

Feedback/master/composite transitive relationships
This commit is contained in:
James Fryman 2011-06-14 20:07:15 -07:00
commit 7e4b8bfbb4

View file

@ -3,7 +3,7 @@
# This module manages NGINX. # This module manages NGINX.
# #
# Parameters: # Parameters:
# #
# There are no default parameters for this class. All module parameters are managed # There are no default parameters for this class. All module parameters are managed
# via the nginx::params class # via the nginx::params class
# #
@ -24,9 +24,16 @@
# include nginx # include nginx
# } # }
class nginx { class nginx {
include nginx::package
include nginx::config include nginx::package
include nginx::service include nginx::config
include nginx::service
Class['nginx::package'] -> Class['nginx::config'] ~> Class['nginx::service']
Class['nginx::package'] -> Class['nginx::config'] ~> Class['nginx::service']
# Allow the end user to establish relationships to the "main" class
# and preserve the relationship to the implementation classes through
# a transitive relationship to the composite class.
Class['nginx::service'] -> Class['nginx']
} }