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: Ic08196c14649ed27178453335935acc7ea990455
This commit is contained in:
Pete Vander Giessen 2017-08-10 19:05:52 +00:00
parent c3a469e00e
commit 6a11f694d4
9 changed files with 78 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,3 @@
[DEFAULT]
nova_metadata_ip = localhost
metadata_proxy_shared_secret = supersecret

View File

@ -0,0 +1,10 @@
[securitygroup]
enable_security_group = True
firewall_driver = iptables_hybrid
[AGENT]
tunnel_types = geneve,vxlan,gre
[ovs]
local_ip = 127.0.0.1
bridge_mappings = physnet1:br-ex

View File

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

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 = nova
password = nova

View File

@ -0,0 +1,17 @@
[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
service_metadata_proxy = True
metadata_proxy_shared_secret = supersecret

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,13 @@
#!/bin/bash
set -x
# Manually define aliases if snap isn't installed from snap store.
# Otherwise, snap store defines these aliases automatically.
snap aliases nova-hypervisor | grep neutron-ovs-cleanup || \
sudo snap alias nova-hypervisor.neutron-ovs-cleanup neutron-ovs-cleanup
snap aliases nova-hypervisor | grep neutron-netns-cleanup || \
sudo snap alias nova-hypervisor.neutron-netns-cleanup neutron-netns-cleanup
sudo neutron-ovs-cleanup
sudo neutron-netns-cleanup