Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | # This shouldn't be hardcoded |
| 2 | DEVSTACK_ROOT:=~/devstack |
| 3 | SETUPDIR:=../setup |
| 4 | |
| 5 | all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url other_keys net_fix |
| 6 | |
| 7 | prereqs: |
| 8 | make -f Makefile.prereqs |
| 9 | sudo pip install httpie --upgrade |
| 10 | mkdir -p $(SETUPDIR) |
| 11 | |
| 12 | admin-openrc: |
| 13 | bash ./devstack-creds.sh $(DEVSTACK_ROOT) > $(SETUPDIR)/admin-openrc.sh |
| 14 | touch $(SETUPDIR)/controller_settings |
| 15 | |
| 16 | flat_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 | |
| 20 | nodes_yaml: |
| 21 | export SETUPDIR=$(SETUPDIR); bash ./make-nodes-yaml.sh |
| 22 | |
| 23 | ceilometer_url: |
| 24 | echo http://`hostname -i`/xosmetering/ > $(SETUPDIR)/ceilometer_url |
| 25 | |
| 26 | public_key: ~/.ssh/id_rsa.pub |
| 27 | cp ~/.ssh/id_rsa.pub $(SETUPDIR) |
| 28 | |
| 29 | private_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 | |
| 35 | other_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 | |
| 40 | net_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" |