Skip to content

Instantly share code, notes, and snippets.

@gcgists
Forked from timbot/veta_configure_api.sh
Last active December 25, 2015 17:49
Show Gist options
  • Save gcgists/7016407 to your computer and use it in GitHub Desktop.
Save gcgists/7016407 to your computer and use it in GitHub Desktop.
echo | sudo tee -a /etc/nova/nova.conf <<EOF
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
osapi_compute_extension=veta.extension.Veta_extension
EOF
sudo restart nova-api
echo | sudo tee -a /etc/nova/nova.conf <<EOF
veta_snapshot_driver=cobaltdriver.CobaltSnapshotDriver
EOF
echo | sudo tee -a /etc/openstack-dashboard/local_settings.py <<EOF
import sys
mod = sys.modules['openstack_dashboard.settings']
mod.INSTALLED_APPS += ('veta.horizon',)
EOF
sudo service apache2 restart
keystone user-create --name veta --tenant-id <SERVICE TENANT ID> --pass <VETA SERVICE PASSWORD>
keystone user-role-add --user-id <VETA USER ID> --tenant-id <SERVICE TENANT ID> --role-id <ADMIN ROLE ID>
echo | sudo tee -a /etc/nova/veta-manager.conf <<EOF
[DEFAULT]
veta_auth_strategy=keystone
veta_auth_user=veta
veta_auth_tenant=<SERVICE TENANT NAME>
veta_auth_password=<VETA SERVICE PASSWORD>
veta_auth_url=<KEYSTONE URL> # Defaults to https://127.0.0.1:5000/v2.0
EOF
sudo start veta-manager
$ nova help |grep backup-schedule
backup-schedule-add
backup-schedule-clear
backup-schedule-delete
backup-schedule-disable
backup-schedule-enable
backup-schedule-list
backup-schedule-list-backups
backup-schedule-update
git clone https://github.com/gridcentric/veta.git
cd veta
sudo python setup.py install
git clone https://github.com/gridcentric/vetaclient.git
cd vetaclient
sudo python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment