Andy Bavier | 42831ac | 2015-12-08 15:30:15 -0500 | [diff] [blame] | 1 | # This shouldn't be hardcoded |
| 2 | DEVSTACK_ROOT:=~/devstack |
| 3 | |
Andy Bavier | d8ef708 | 2015-12-23 17:24:06 -0500 | [diff] [blame] | 4 | all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url node_key net_fix |
Andy Bavier | 42831ac | 2015-12-08 15:30:15 -0500 | [diff] [blame] | 5 | |
| 6 | prereqs: |
| 7 | make -f Makefile.prereqs |
Andy Bavier | d8ef708 | 2015-12-23 17:24:06 -0500 | [diff] [blame] | 8 | sudo pip install httpie --upgrade |
Andy Bavier | 42831ac | 2015-12-08 15:30:15 -0500 | [diff] [blame] | 9 | |
| 10 | admin-openrc: |
| 11 | bash ./devstack-creds.sh $(DEVSTACK_ROOT) > admin-openrc.sh |
| 12 | touch controller_settings |
| 13 | |
Andy Bavier | dc5d7c9 | 2015-12-09 05:47:34 -0500 | [diff] [blame] | 14 | flat_name: |
Andy Bavier | db9771d | 2015-12-09 06:18:16 -0500 | [diff] [blame] | 15 | echo private|tr -d '\n' > flat_net_name |
| 16 | bash -c "source admin-openrc.sh; openstack network set --share private" |
Andy Bavier | dc5d7c9 | 2015-12-09 05:47:34 -0500 | [diff] [blame] | 17 | |
Andy Bavier | 42831ac | 2015-12-08 15:30:15 -0500 | [diff] [blame] | 18 | nodes_yaml: |
Andy Bavier | 0566e1d | 2015-12-23 16:10:12 -0500 | [diff] [blame] | 19 | bash ./make-nodes-yaml.sh |
Andy Bavier | 42831ac | 2015-12-08 15:30:15 -0500 | [diff] [blame] | 20 | |
| 21 | ceilometer_url: |
| 22 | echo http://`hostname -i`/xosmetering/ > ceilometer_url |
| 23 | |
| 24 | public_key: ~/.ssh/id_rsa.pub |
| 25 | cp ~/.ssh/id_rsa.pub . |
| 26 | |
| 27 | private_key: ~/.ssh/id_rsa |
| 28 | cp ~/.ssh/id_rsa . |
| 29 | |
| 30 | ~/.ssh/id_rsa.pub: |
| 31 | cat /dev/zero | ssh-keygen -q -N "" |
| 32 | |
| 33 | node_key: |
| 34 | sudo cat ~/.ssh/id_rsa > node_key |
| 35 | sudo cat ~/.ssh/id_rsa.pub > node_key.pub |
Andy Bavier | d8ef708 | 2015-12-23 17:24:06 -0500 | [diff] [blame] | 36 | |
| 37 | net_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" |