Merge "Added config files to snap."

This commit is contained in:
Jenkins 2017-08-10 20:21:16 +00:00 committed by Gerrit Code Review
commit 7f1673673d
10 changed files with 79 additions and 0 deletions

9
.gitignore vendored
View File

@ -3,3 +3,12 @@ prime
stage
*.snap
.tox
# Snapcraft
.snapcraft
__pycache__
.cache
# emacs
*~
\#*

View File

@ -0,0 +1,5 @@
[database]
connection = mysql+pymysql://nova:nova@localhost/nova
[api_database]
connection = mysql+pymysql://nova:nova@localhost/nova_api

View File

@ -0,0 +1,2 @@
[glance]
api_servers = http://localhost:9292

View File

@ -0,0 +1,13 @@
[keystone_authtoken]
auth_uri = http://localhost:5000
auth_url = http://localhost:35357
memcached_servers = localhost:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
[paste_deploy]
flavor = keystone

View File

@ -0,0 +1,15 @@
[DEFAULT]
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[neutron]
url = http://localhost:9696
auth_url = http://localhost:35357
memcached_servers = localhost:11211
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron

View File

@ -0,0 +1,9 @@
[placement]
os_region_name = RegionOne
project_domain_name = default
project_name = service
auth_type = password
user_domain_name = default
auth_url = http://localhost:35357
username = placement
password = placement

View File

@ -0,0 +1,2 @@
[DEFAULT]
transport_url = rabbit://openstack:rabbitmq@localhost

View File

@ -0,0 +1,3 @@
[scheduler]
discover_hosts_in_cells_interval = 30
scheduler_driver = filter_scheduler

View File

@ -4,6 +4,18 @@ set -ex
source $BASE_DIR/admin-openrc
sudo mysql -u root << EOF
CREATE DATABASE IF NOT EXISTS nova;
CREATE DATABASE IF NOT EXISTS nova_api;
CREATE DATABASE IF NOT EXISTS nova_cell0;
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' \
IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' \
IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' \
IDENTIFIED BY 'nova';
EOF
openstack user show nova || {
openstack user create --domain default --password nova nova
openstack role add --project service --user nova admin

9
tests/nova_cleanup.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -x
sudo mysql -u root << EOF
DROP DATABASE nova;
DROP DATABASE nova_api;
DROP DATABASE nova_cell0;
EOF