Initial Devstack support skeleton.
This commit is contained in:
parent
f28231f20d
commit
6f69ba8090
21
devstack/README.md
Normal file
21
devstack/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
This directory contains the Tatu (SSH-as-a-Service) DevStack plugin.
|
||||||
|
|
||||||
|
To configure Tatu with DevStack, you will need to enable this plugin and
|
||||||
|
the Tatu service by adding one line to the [[local|localrc]] section of
|
||||||
|
your local.conf file.
|
||||||
|
|
||||||
|
To enable the plugin, add a line of the form:
|
||||||
|
|
||||||
|
enable_plugin tatu <GITURL> [GITREF]
|
||||||
|
|
||||||
|
where
|
||||||
|
|
||||||
|
<GITURL> is the URL of a Tatu repository
|
||||||
|
[GITREF] is an optional git ref (branch/ref/tag). The default is master.
|
||||||
|
|
||||||
|
For example
|
||||||
|
|
||||||
|
enable_plugin tatu https://github.com/pinodeca/tatu stable/queens
|
||||||
|
|
||||||
|
For more information, see the "Externally Hosted Plugins" section of
|
||||||
|
https://docs.openstack.org/devstack/latest/plugins.html
|
50
devstack/plugin.sh
Normal file
50
devstack/plugin.sh
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# plugin.sh - DevStack plugin.sh dispatch script
|
||||||
|
|
||||||
|
function install_tatu {
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
function init_tatu {
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
function configure_tatu {
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
# check for service enabled
|
||||||
|
if is_service_enabled tatu; then
|
||||||
|
|
||||||
|
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
|
||||||
|
# Set up system services
|
||||||
|
echo_summary "Configuring system services tatu"
|
||||||
|
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
|
# Perform installation of service source
|
||||||
|
echo_summary "Installing tatu"
|
||||||
|
install_tatu
|
||||||
|
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
|
# Configure after the other layer 1 and 2 services have been configured
|
||||||
|
echo_summary "Configuring tatu"
|
||||||
|
configure_tatu
|
||||||
|
|
||||||
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||||
|
# Initialize and start the tatu service
|
||||||
|
echo_summary "Initializing tatu"
|
||||||
|
init_tatu
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "unstack" ]]; then
|
||||||
|
# Shut down tatu services
|
||||||
|
# no-op
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$1" == "clean" ]]; then
|
||||||
|
# Remove state and transient data
|
||||||
|
# Remember clean.sh first calls unstack.sh
|
||||||
|
# no-op
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
fi
|
1
devstack/settings
Normal file
1
devstack/settings
Normal file
@ -0,0 +1 @@
|
|||||||
|
enable_service tatu
|
Loading…
x
Reference in New Issue
Block a user