blob: 0dff27cfd52ea9d0b4af1cf6643f2f971a72ff26 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001# This shouldn't be hardcoded
2DEVSTACK_ROOT:=~/devstack
3SETUPDIR:=../setup
4
5all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url other_keys net_fix
6
7prereqs:
8 make -f Makefile.prereqs
9 sudo pip install httpie --upgrade
10 mkdir -p $(SETUPDIR)
11
12admin-openrc:
13 bash ./devstack-creds.sh $(DEVSTACK_ROOT) > $(SETUPDIR)/admin-openrc.sh
14 touch $(SETUPDIR)/controller_settings
15
16flat_name:
17 echo private|tr -d '\n' > $(SETUPDIR)/flat_net_name
18 bash -c "source $(SETUPDIR)/admin-openrc.sh; neutron net-update private --shared"
19
20nodes_yaml:
21 export SETUPDIR=$(SETUPDIR); bash ./make-nodes-yaml.sh
22
23ceilometer_url:
24 echo http://`hostname -i`/xosmetering/ > $(SETUPDIR)/ceilometer_url
25
26public_key: ~/.ssh/id_rsa.pub
27 cp ~/.ssh/id_rsa.pub $(SETUPDIR)
28
29private_key: ~/.ssh/id_rsa
30 cp ~/.ssh/id_rsa $(SETUPDIR)
31
32~/.ssh/id_rsa.pub:
33 cat /dev/zero | ssh-keygen -q -N ""
34
35other_keys: public_key private_key
36 cp $(SETUPDIR)/id_rsa $(SETUPDIR)/node_key
37 cp $(SETUPDIR)/id_rsa.pub $(SETUPDIR)/node_key.pub
38 cp $(SETUPDIR)/id_rsa.pub $(SETUPDIR)/padmin_public_key
39
40net_fix:
41 sudo devstack/net-fix.sh
42 bash -c "source $(SETUPDIR)/admin-openrc.sh; neutron subnet-update private-subnet --dns-nameservers list=true 8.8.8.8 8.8.4.4"