| MYFLATLANIF:=$(shell netstat -i |grep "flat"|awk '{print $$1}' ) |
| $(error MYFLATLANIF is empty) |
| MYFLATLANIP:=$(shell ifconfig $(MYFLATLANIF) | grep "inet addr" | awk -F: '{print $$2}' | awk '{print $$1}' ) |
| all: prereqs admin-openrc flat_name nodes_yaml public_key private_key ceilometer_url other_keys |
| sudo ./check_docker_version.sh |
| sudo cat /root/setup/admin-openrc.sh > $(SETUPDIR)/admin-openrc.sh |
| sudo cat /root/setup/settings > $(SETUPDIR)/controller_settings |
| echo 'CONTROLLER_FLAT_LAN_IP=$(MYFLATLANIP)' >> $(SETUPDIR)/controller_settings |
| bash -c "source $(SETUPDIR)/admin-openrc.sh ; neutron net-list" |grep flat|awk '{printf "%s",$$4}' > $(SETUPDIR)/flat_net_name |
| [ -s $(SETUPDIR)/flat_net_name ] # throw error if flat_net_name is empty |
| export SETUPDIR=$(SETUPDIR); bash ./make-nodes-yaml.sh |
| echo http://`hostname -i`/xosmetering/ > $(SETUPDIR)/ceilometer_url |
| public_key: ~/.ssh/id_rsa.pub |
| cp ~/.ssh/id_rsa.pub $(SETUPDIR) |
| private_key: ~/.ssh/id_rsa |
| cp ~/.ssh/id_rsa $(SETUPDIR) |
| cat /dev/zero | ssh-keygen -q -N "" |
| other_keys: public_key private_key |
| sudo cat /root/setup/id_rsa > $(SETUPDIR)/node_key |
| sudo cat /root/setup/id_rsa.pub > $(SETUPDIR)/node_key.pub |
| sudo cp $(SETUPDIR)/id_rsa.pub $(SETUPDIR)/padmin_public_key |