blob: a1636adf9cce228fa14f0921495756782cb9a17b [file] [log] [blame]
Dean Troyer8c032d12013-09-23 13:53:13 -05001# lib/nova_plugins/hypervisor-openvz
2# Configure the openvz hypervisor
3
4# Enable with:
5# VIRT_DRIVER=openvz
6
7# Dependencies:
8# ``functions`` file
9# ``nova`` configuration
10
11# install_nova_hypervisor - install any external requirements
12# configure_nova_hypervisor - make configuration changes, including those to other services
13# start_nova_hypervisor - start any external services
14# stop_nova_hypervisor - stop any external services
15# cleanup_nova_hypervisor - remove transient data and cache
16
17# Save trace setting
18MY_XTRACE=$(set +o | grep xtrace)
19set +o xtrace
20
21
22# Defaults
23# --------
24
25
26# Entry Points
27# ------------
28
29# clean_nova_hypervisor - Clean up an installation
Ian Wienandaee18c72014-02-21 15:35:08 +110030function cleanup_nova_hypervisor {
Dean Troyer8c032d12013-09-23 13:53:13 -050031 # This function intentionally left blank
32 :
33}
34
35# configure_nova_hypervisor - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +110036function configure_nova_hypervisor {
Dean Troyer8c032d12013-09-23 13:53:13 -050037 iniset $NOVA_CONF DEFAULT compute_driver "openvz.OpenVzDriver"
38 iniset $NOVA_CONF DEFAULT connection_type "openvz"
39 LIBVIRT_FIREWALL_DRIVER=${LIBVIRT_FIREWALL_DRIVER:-"nova.virt.libvirt.firewall.IptablesFirewallDriver"}
40 iniset $NOVA_CONF DEFAULT firewall_driver "$LIBVIRT_FIREWALL_DRIVER"
41}
42
43# install_nova_hypervisor() - Install external components
Ian Wienandaee18c72014-02-21 15:35:08 +110044function install_nova_hypervisor {
Dean Troyer8c032d12013-09-23 13:53:13 -050045 # This function intentionally left blank
46 :
47}
48
49# start_nova_hypervisor - Start any required external services
Ian Wienandaee18c72014-02-21 15:35:08 +110050function start_nova_hypervisor {
Dean Troyer8c032d12013-09-23 13:53:13 -050051 # This function intentionally left blank
52 :
53}
54
55# stop_nova_hypervisor - Stop any external services
Ian Wienandaee18c72014-02-21 15:35:08 +110056function stop_nova_hypervisor {
Dean Troyer8c032d12013-09-23 13:53:13 -050057 # This function intentionally left blank
58 :
59}
60
61
62# Restore xtrace
63$MY_XTRACE
64
65# Local variables:
66# mode: shell-script
67# End: