fuel-library/deployment/puppet/mellanox_openstack/manifests/eswitchd.pp
Dmitry Ilyin 64208c07fa Add missing notify dependencies
Packages should notify services to
restart if package is updated

Closes-Bug: 1362675
Change-Id: Ibd3e34d0e0834dfe5e29eeb4a4526f510f693680
2014-08-28 19:35:07 +04:00

32 lines
612 B
Puppet

class mellanox_openstack::eswitchd (
$physnet,
$physifc,
) {
include mellanox_openstack::params
$package = $::mellanox_openstack::params::eswitchd_package
mellanox_eswitchd_config {
'DAEMON/fabrics': value => "${physnet}:${physifc}";
}
package { $package :
ensure => installed,
}
service { 'eswitchd' :
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
Package[$package] ->
Mellanox_eswitchd_config <||> ~>
Service['eswitchd']
Package[$package] ~>
Service['eswitchd']
}