valet/devstack/stack-valet-plugins-configure-manual.sh
Cliff Parsons bac30ca8a7 Valet Devstack Plugin
This commit contains the scripts for the Valet Devstack
plugin. The plugin.sh file is the entry point into the
plugin. These scripts provide the "stack", "unstack" and
"clean" capabilities.

Task: #4591
Story: #2001035

Change-Id: Ib7ec301802bb05969ebc83d060823c0bb8146f53
2017-06-20 16:19:23 -05:00

41 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# Modify Heat conf file to include Valet configuration
sudo vi /etc/heat/heat.conf
[DEFAULT]
...
plugin_dirs=/usr/local/lib/python2.7/dist-packages/valet_plugins/heat
[valet]
read_timeout=5
url=http://${HOST_IP}:8090/v1
connect_timeout=1
# Modify Nova conf file to include Valet configuration
sudo vi /etc/nova/nova.conf
Comment out the existing scheduler_default_filters line (or delete it) and then add:
[DEFAULT]
...
scheduler_available_filters=nova.scheduler.filters.all_filters
scheduler_available_filters=valet_plugins.plugins.nova.valet_filter.ValetFilter
scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter,ValetFilter
...
[valet]
url=http://${HOST_IP}:8090/v1
admin_username=valet
connect_timeout=5
admin_tenant_name=service
admin_auth_url=http://${HOST_IP}:35357/v2.0
read_timeout=600
failure_mode=reject
admin_password=valet
# Restart nova scheduler (n-sch) and heat processes (h-eng, h-api, h-api-cfn, h-api-cw) using screen
screen -dr
(ctrl-A N to move forward through the processes)
(ctrl-A P to move backward through the processes)
(ctrl-C to kill a process; then press up arrow key to bring up the service start command and ENTER)
(ctrl-A D to detach/exit from screen)