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:
parent
8138c04765
commit
26d6bcb315
9
.gitignore
vendored
9
.gitignore
vendored
@ -3,3 +3,12 @@ prime
|
||||
stage
|
||||
*.snap
|
||||
.tox
|
||||
|
||||
# Snapcraft
|
||||
.snapcraft
|
||||
__pycache__
|
||||
.cache
|
||||
|
||||
# emacs
|
||||
*~
|
||||
\#*
|
||||
|
@ -0,0 +1,2 @@
|
||||
[database]
|
||||
connection = mysql+pymysql://neutron:neutron@localhost/neutron
|
13
tests/etc/snap-neutron/neutron/neutron.conf.d/keystone.conf
Normal file
13
tests/etc/snap-neutron/neutron/neutron.conf.d/keystone.conf
Normal 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
|
13
tests/etc/snap-neutron/neutron/neutron.conf.d/nova.conf
Normal file
13
tests/etc/snap-neutron/neutron/neutron.conf.d/nova.conf
Normal 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
|
@ -2,6 +2,12 @@
|
||||
|
||||
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
|
||||
|
||||
openstack user show neutron || {
|
||||
|
7
tests/neutron_cleanup.sh
Executable file
7
tests/neutron_cleanup.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
sudo mysql -u root << EOF
|
||||
DROP DATABASE neutron;
|
||||
EOF
|
Loading…
Reference in New Issue
Block a user