64208c07fa
Packages should notify services to restart if package is updated Closes-Bug: 1362675 Change-Id: Ibd3e34d0e0834dfe5e29eeb4a4526f510f693680
32 lines
612 B
Puppet
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']
|
|
|
|
}
|