-
-
Notifications
You must be signed in to change notification settings - Fork 870
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds-feedbackFurther information is requestedFurther information is requested
Description
Hello,
I am using heira to manage my system configs, and have found multiple of my systems need a local nginx proxy, so I created a module with an init.pp that looks like this:
class localproxy (
$exthostname,
$cfg_append = {}
)
{
include ::nginx
nginx::resource::upstream { 'local_app':
ensure => present,
members => [
'localhost:8080',
],
require => [
Class['::nginx'],
Class['::nginx::package']
]
}
nginx::resource::vhost { "$exthostname" :
ensure => present,
proxy => 'http://local_app',
location_cfg_append => $cfg_append,
}
}
When I run puppet, I get this error:
Error: Could not apply complete catalog: Found 1 dependency cycle:
(Anchor[nginx::end] => Class[Nginx] => Nginx::Resource::Upstream[local_app] => File[/etc/nginx/conf.d/local_app-upstream.conf] => Class[Nginx::Service] => Service[nginx] => Class[Nginx::Service] => Anchor[nginx::end])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
I have gone in circles (fitting I suppose), but am unable to figure out how to break this dependency cycle correctly.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-feedbackFurther information is requestedFurther information is requested