fuel-plugin-6wind-virtual-a.../deployment_scripts/puppet/modules/virtual_accelerator/manifests/service.pp

43 lines
949 B
Puppet

#
# Copyright 2016 6WIND S.A.
class virtual_accelerator::service inherits virtual_accelerator {
$NOVA_CONF_FILE = "/etc/nova/nova.conf"
exec { 'vcpu_pin':
command => "crudini --set ${NOVA_CONF_FILE} DEFAULT vcpu_pin_set $(python /usr/local/bin/get_vcpu_pin_set.py)",
notify => Service['virtual-accelerator'],
}
service { 'virtual-accelerator':
ensure => 'running',
notify => Service['openvswitch-switch'],
}
service { 'openvswitch-switch':
ensure => 'running',
notify => Service['neutron-plugin-openvswitch-agent'],
}
service { 'neutron-plugin-openvswitch-agent':
ensure => 'running',
notify => Service['libvirt-bin'],
}
service { 'libvirt-bin':
ensure => 'stopped',
notify => Service['libvirtd'],
}
service { 'libvirtd':
ensure => 'running',
notify => Service['nova-compute'],
}
service { 'nova-compute':
ensure => 'running',
}
}