blob: 2f3169644bed8608c5463e1b79c1a1af2cf617b3 [file] [log] [blame]
Andy Bavier42831ac2015-12-08 15:30:15 -05001# This shouldn't be hardcoded
2DEVSTACK_ROOT:=~/devstack
3
Andy Bavierdc5d7c92015-12-09 05:47:34 -05004all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url node_key
Andy Bavier42831ac2015-12-08 15:30:15 -05005
6prereqs:
7 make -f Makefile.prereqs
8
9admin-openrc:
10 bash ./devstack-creds.sh $(DEVSTACK_ROOT) > admin-openrc.sh
11 touch controller_settings
12
Andy Bavierdc5d7c92015-12-09 05:47:34 -050013flat_name:
Andy Bavierdb9771d2015-12-09 06:18:16 -050014 echo private|tr -d '\n' > flat_net_name
15 bash -c "source admin-openrc.sh; openstack network set --share private"
Andy Bavierdc5d7c92015-12-09 05:47:34 -050016
Andy Bavier42831ac2015-12-08 15:30:15 -050017nodes_yaml:
18 bash ./make-cloudlab-nodes-yaml.sh
19
20ceilometer_url:
21 echo http://`hostname -i`/xosmetering/ > ceilometer_url
22
23public_key: ~/.ssh/id_rsa.pub
24 cp ~/.ssh/id_rsa.pub .
25
26private_key: ~/.ssh/id_rsa
27 cp ~/.ssh/id_rsa .
28
29~/.ssh/id_rsa.pub:
30 cat /dev/zero | ssh-keygen -q -N ""
31
32node_key:
33 sudo cat ~/.ssh/id_rsa > node_key
34 sudo cat ~/.ssh/id_rsa.pub > node_key.pub