blob: f969b3d565e6d11df251babf82f20162443deb80 [file] [log] [blame]
Andy Bavier42831ac2015-12-08 15:30:15 -05001# This shouldn't be hardcoded
2DEVSTACK_ROOT:=~/devstack
3
Andy Bavierd8ef7082015-12-23 17:24:06 -05004all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url node_key net_fix
Andy Bavier42831ac2015-12-08 15:30:15 -05005
6prereqs:
7 make -f Makefile.prereqs
Andy Bavierd8ef7082015-12-23 17:24:06 -05008 sudo pip install httpie --upgrade
Andy Bavier42831ac2015-12-08 15:30:15 -05009
10admin-openrc:
11 bash ./devstack-creds.sh $(DEVSTACK_ROOT) > admin-openrc.sh
12 touch controller_settings
13
Andy Bavierdc5d7c92015-12-09 05:47:34 -050014flat_name:
Andy Bavierdb9771d2015-12-09 06:18:16 -050015 echo private|tr -d '\n' > flat_net_name
16 bash -c "source admin-openrc.sh; openstack network set --share private"
Andy Bavierdc5d7c92015-12-09 05:47:34 -050017
Andy Bavier42831ac2015-12-08 15:30:15 -050018nodes_yaml:
Andy Bavier0566e1d2015-12-23 16:10:12 -050019 bash ./make-nodes-yaml.sh
Andy Bavier42831ac2015-12-08 15:30:15 -050020
21ceilometer_url:
22 echo http://`hostname -i`/xosmetering/ > ceilometer_url
23
24public_key: ~/.ssh/id_rsa.pub
25 cp ~/.ssh/id_rsa.pub .
26
27private_key: ~/.ssh/id_rsa
28 cp ~/.ssh/id_rsa .
29
30~/.ssh/id_rsa.pub:
31 cat /dev/zero | ssh-keygen -q -N ""
32
33node_key:
34 sudo cat ~/.ssh/id_rsa > node_key
35 sudo cat ~/.ssh/id_rsa.pub > node_key.pub
Andy Bavierd8ef7082015-12-23 17:24:06 -050036
37net_fix:
38 sudo devstack/net-fix.sh
39 bash -c "source admin-openrc.sh; neutron subnet-update private-subnet --dns-nameservers list=true 8.8.8.8 8.8.4.4"