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