Added config files to snap.

This is part of a transition to storing the config files in the snap,
rather than in snapstack.

Also updated .gitignore to ignore emacs temp files and snapcraft
cruft.

Change-Id: I2542bf23435d3dbe5e399f1c938f3c9d879ed9ba
This commit is contained in:
Pete Vander Giessen 2017-08-10 18:53:15 +00:00
parent 8138c04765
commit 26d6bcb315
6 changed files with 50 additions and 0 deletions

9
.gitignore vendored
View File

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

View File

@ -0,0 +1,2 @@
[database]
connection = mysql+pymysql://neutron:neutron@localhost/neutron

View File

@ -0,0 +1,13 @@
[DEFAULT]
auth_strategy = keystone
[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 = neutron
password = neutron

View File

@ -0,0 +1,13 @@
[DEFAULT]
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
[nova]
auth_url = http://localhost:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = nova

View File

@ -2,6 +2,12 @@
set -ex set -ex
sudo mysql -u root << EOF
CREATE DATABASE IF NOT EXISTS neutron;
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
IDENTIFIED BY 'neutron';
EOF
source $BASE_DIR/admin-openrc source $BASE_DIR/admin-openrc
openstack user show neutron || { openstack user show neutron || {

7
tests/neutron_cleanup.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -x
sudo mysql -u root << EOF
DROP DATABASE neutron;
EOF