time and again i stumple upon a dependency cycle while trying to "order" things and still notify services. in my current example i run the `iredmail-installer` which installs the packages for the services, of course puppet doesn't know about the services and i have to define the services in puppet. this works quite well.
also the part where i install my self created `iredadmin-pro` package works fine but the package needs to restart `php` and `uwsgi` which leads to a dependency cycle.
Error: Failed to apply catalog: Found 1 dependency cycle:
==> default: (Package[iredadmin-pro] => Service[php5-fpm] => Package[iredadmin-pro])
exec { 'run-iredmail-installer': ... }
->
service { [ 'nginx', 'dovecot', 'postfix', 'php5-fpm', 'iredapd', 'uwsgi' ]:
ensure => running,
enable => true,
}
->
package { 'iredadmin-pro':
ensure => present,
notify => Service['php5-fpm', 'uwsgi',],
}
how to ensure the given order `run-iredmail-installer -> define services created by the installer -> install package iredadmin-pro -> restart php` without a dependency cycle?
↧