blob: 464f9d15a242921568788b3bda3144a1b0506da7 [file] [log] [blame]
Zack Williamsce63eb02017-02-28 10:46:22 -07001# CORD Master Makefile
2
3# Timestamp for log files
4TS := $(shell date +'%Y%m%dT%H%M%SZ')
5
6# Podconfig must be specified, so an invalid default
7PODCONFIG ?= invalid
8
9# Source path
10BUILD ?= .
11CORD ?= ..
12PI ?= $(BUILD)/platform-install
13MAAS ?= $(BUILD)/maas
Zack Williams2f56eee2017-07-17 09:59:16 -070014ONOS_APPS ?= $(CORD)/onos-apps
Zack Williamsce63eb02017-02-28 10:46:22 -070015
16# Configuration paths
17PODCONFIG_D ?= $(BUILD)/podconfig
18PODCONFIG_PATH ?= $(PODCONFIG_D)/$(PODCONFIG)
19
20SCENARIOS_D ?= $(BUILD)/scenarios
21GENCONFIG_D ?= $(BUILD)/genconfig
22
23# Milestones/logs paths
24M ?= $(BUILD)/milestones
25LOGS ?= $(BUILD)/logs
26
Andy Bavierb36b84e2017-08-10 14:46:32 -070027PREP_MS ?= $(M)/prereqs-check $(M)/build-local-bootstrap $(M)/ciab-ovs $(M)/vagrant-up $(M)/copy-cord $(M)/cord-config $(M)/copy-config $(M)/prep-buildnode $(M)/prep-headnode $(M)/deploy-elasticstack $(M)/prep-computenode
Andy Bavier35d238e2017-07-24 16:47:22 -070028MAAS_MS ?= $(M)/build-maas-images $(M)/maas-prime $(M)/publish-maas-images $(M)/deploy-maas
29OPENSTACK_MS ?= $(M)/glance-images $(M)/deploy-openstack $(M)/deploy-computenode $(M)/onboard-openstack
30XOS_MS ?= $(M)/docker-images $(M)/core-image $(M)/publish-docker-images $(M)/start-xos $(M)/onboard-profile
31ONOS_MS ?= $(M)/build-onos-apps $(M)/publish-onos-apps $(M)/deploy-onos $(M)/deploy-mavenrepo
Andy Bavierb36b84e2017-08-10 14:46:32 -070032POST_INSTALL_MS ?= $(M)/setup-automation $(M)/setup-ciab-pcu $(M)/compute1-up $(M)/compute2-up $(M)/compute3-up
Andy Bavier35d238e2017-07-24 16:47:22 -070033ALL_MILESTONES ?= $(PREP_MS) $(MAAS_MS) $(OPENSTACK_MS) $(XOS_MS) $(ONOS_MS) $(POST_INSTALL_MS)
Zack Williamsce63eb02017-02-28 10:46:22 -070034
35LOCAL_MILESTONES ?= $(M)/local-cord-config $(M)/local-docker-images $(M)/local-core-image $(M)/local-start-xos $(M)/local-onboard-profile
36
37# Configuration files
38MASTER_CONFIG ?= $(GENCONFIG_D)/config.yml
39MAKEFILE_CONFIG ?= $(GENCONFIG_D)/config.mk
40INVENTORY ?= $(GENCONFIG_D)/inventory.ini
41PROFILE_NAME_F ?= $(GENCONFIG_D)/cord_profile
42SCENARIO_NAME_F ?= $(GENCONFIG_D)/cord_scenario
43
44CONFIG_FILES = $(MASTER_CONFIG) $(MAKEFILE_CONFIG) $(INVENTORY) $(PROFILE_NAME_F) $(SCENARIO_NAME_F)
45
46include $(MAKEFILE_CONFIG)
47
48# Set using files from genconfig
49SCENARIO = $(shell cat $(SCENARIO_NAME_F))
50PROFILE = $(shell cat $(PROFILE_NAME_F))
51
52# Host names for SSH commands
53BUILDNODE ?= head1
54HEADNODE ?= ${BUILDNODE}
55
56# Vagrant config
57VAGRANT_PROVIDER ?= libvirt
58VAGRANT_VMS ?= $(HEADNODE)
Andy Bavier35d238e2017-07-24 16:47:22 -070059VAGRANT_SWITCHES ?= leaf1
Zack Williamsce63eb02017-02-28 10:46:22 -070060VAGRANT_CWD ?= $(SCENARIOS_D)/$(SCENARIO)/
61SSH_CONFIG ?= ~/.ssh/config # Vagrant modifies this, should it always?
62
Luca Prete7849a982017-09-14 14:35:13 -070063# Virsh config
64VIRSH_CORDDEV_DOMAIN ?= cord_corddev
65
Zack Williamsce63eb02017-02-28 10:46:22 -070066# Ansible args, for verbosity and other runtime parameters
67ANSIBLE_ARGS ?=
68
69# Commands
70SHELL = bash -o pipefail
71VAGRANT ?= VAGRANT_CWD=$(VAGRANT_CWD) vagrant
72ANSIBLE ?= ansible -i $(INVENTORY)
73ANSIBLE_PB ?= ansible-playbook $(ANSIBLE_ARGS) -i $(INVENTORY) --extra-vars @$(MASTER_CONFIG)
74ANSIBLE_PB_LOCAL ?= ansible-playbook $(ANSIBLE_ARGS) -i $(PI)/inventory/head-localhost --extra-vars "@/opt/cord_profile/genconfig/config.yml"
75ANSIBLE_PB_MAAS ?= ansible-playbook $(ANSIBLE_ARGS) -i /etc/maas/ansible/pod-inventory --extra-vars "@/opt/cord_profile/genconfig/config.yml"
76IMAGEBUILDER ?= python $(BUILD)/scripts/imagebuilder.py
77LOGCMD ?= 2>&1 | tee -a $(LOGS)/$(TS)_$(@F)
78SSH_HEAD ?= ssh $(HEADNODE)
79SSH_BUILD ?= ssh $(BUILDNODE)
80
81# default target, prints help
82.DEFAULT: help
83
84help:
85 @echo "Please specify a target (config, build, teardown, ...)"
86
87# Config file generation
Zack Williams9c4ef852017-09-05 16:14:04 -070088config: $(CONFIG_FILES) $(PODCONFIG_PATH)
Zack Williamsce63eb02017-02-28 10:46:22 -070089
Zack Williamsce63eb02017-02-28 10:46:22 -070090$(CONFIG_FILES):
91 ansible-playbook -i 'localhost,' --extra-vars="cord_podconfig='$(PODCONFIG_PATH)' genconfig_dir='$(GENCONFIG_D)' scenarios_dir='$(SCENARIOS_D)'" $(BUILD)/ansible/genconfig.yml $(LOGCMD)
92
93printconfig: config
94 @echo "Scenario: $(SCENARIO)"
95 @echo "Profile: $(PROFILE)"
96
97# Primary Targets
98# Many of these targets use target-specific variables
99# https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
100
101build: $(BUILD_TARGETS)
102
103# Utility targets
104
Zack Williamsa5fcefd2017-07-27 22:06:33 -0700105ansible-ping:
106 $(ANSIBLE) -m ping all $(LOGCMD)
107
108ansible-setup:
109 $(ANSIBLE) -m setup all $(LOGCMD)
110
Zack Williamsa10094b2017-07-23 13:54:12 -0700111collect-diag:
112 $(ANSIBLE_PB) $(PI)/collect-diag-playbook.yml $(LOGCMD)
113
Zack Williamsce63eb02017-02-28 10:46:22 -0700114compute-node-refresh:
Andy Bavier6d1d6b12017-09-13 17:28:03 -0700115 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_MAAS) --private-key ~/.ssh/cord_rsa $(PI)/compute-node-refresh-playbook.yml" $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700116
Zack Williamsce63eb02017-02-28 10:46:22 -0700117clean-images:
Andy Bavier218bed32017-09-01 13:23:20 -0700118 rm -f $(M)/docker-images $(M)/local-docker-images $(M)/core-image $(M)/local-core-image $(M)/build-maas-images $(M)/build-onos-apps $(M)/publish-maas-images $(M)/publish-docker-images $(M)/publish-onos-apps
Zack Williamsce63eb02017-02-28 10:46:22 -0700119
120clean-genconfig:
121 rm -f $(CONFIG_FILES)
122
123clean-profile:
124 rm -rf $(CONFIG_CORD_PROFILE_DIR)
125 rm -f $(M)/cord-config $(M)/copy-config
126
Luca Prete7849a982017-09-14 14:35:13 -0700127clean-all: virsh-domain-destroy vagrant-destroy clean-profile clean-genconfig
Zack Williamsce63eb02017-02-28 10:46:22 -0700128 rm -f $(ALL_MILESTONES)
129
130clean-local: clean-profile clean-genconfig
131 rm -f $(LOCAL_MILESTONES)
132
Zack Williams9c4ef852017-09-05 16:14:04 -0700133.PHONY: docs
134docs:
135 cd docs; make
136
Andy Bavier4dc66472017-07-18 17:13:24 -0700137local-ubuntu-dev-env:
138 $(ANSIBLE_PB) $(PI)/bootstrap-dev-env.yml $(LOGCMD)
139
Zack Williams9c4ef852017-09-05 16:14:04 -0700140vagrant-destroy:
gopinathc12a7e62017-09-06 11:53:01 -0700141 $(VAGRANT) destroy -f $(LOGCMD)
Zack Williams9c4ef852017-09-05 16:14:04 -0700142 rm -f $(M)/vagrant-up
143
Luca Prete7849a982017-09-14 14:35:13 -0700144virsh-domain-destroy:
145 virsh destroy ${VIRSH_CORDDEV_DOMAIN} || true
146 virsh undefine ${VIRSH_CORDDEV_DOMAIN} || true
147
Zack Williams9c4ef852017-09-05 16:14:04 -0700148xos-teardown: xos-update-images
149 $(ANSIBLE_PB) $(PI)/teardown-playbook.yml $(LOGCMD)
150 rm -f $(M)/onboard-profile $(M)/local-onboard-profile
151
152xos-update-images: clean-images
153 rm -f $(M)/start-xos $(M)/local-start-xos
154
Andy Bavier35d238e2017-07-24 16:47:22 -0700155
Zack Williamsce63eb02017-02-28 10:46:22 -0700156# == PREREQS == #
157VAGRANT_UP_PREREQS ?=
Zack Williams9c4ef852017-09-05 16:14:04 -0700158COPY_CORD_PREREQS ?=
Zack Williamsce63eb02017-02-28 10:46:22 -0700159CORD_CONFIG_PREREQS ?=
160COPY_CONFIG_PREREQS ?=
161PREP_BUILDNODE_PREREQS ?=
162PREP_HEADNODE_PREREQS ?=
Zack Williamsa5fcefd2017-07-27 22:06:33 -0700163DOCKER_IMAGES_PREREQS ?=
Zack Williams0a7ef162017-07-18 18:15:26 -0700164START_XOS_PREREQS ?=
165DEPLOY_ONOS_PREREQS ?=
Andy Bavier35d238e2017-07-24 16:47:22 -0700166DEPLOY_OPENSTACK_PREREQS ?=
Andy Bavierafaa5302017-08-15 08:56:15 -0700167DEPLOY_MAVENREPO_PREREQS ?=
Andy Bavier35d238e2017-07-24 16:47:22 -0700168SETUP_AUTOMATION_PREREQS ?=
Zack Williamsce63eb02017-02-28 10:46:22 -0700169
170# == MILESTONES == #
171# empty target files are touched in the milestones dir to indicate completion
172
Andy Bavier35d238e2017-07-24 16:47:22 -0700173# Prep targets
Zack Williamsce63eb02017-02-28 10:46:22 -0700174$(M)/prereqs-check:
175 $(ANSIBLE_PB) $(PI)/prereqs-check-playbook.yml $(LOGCMD)
176 touch $@
177
Andy Bavierafaa5302017-08-15 08:56:15 -0700178$(M)/build-local-bootstrap:
179 $(ANSIBLE_PB) $(BUILD)/ansible/build-local-bootstrap.yml $(LOGCMD)
180 touch $@
181
Andy Bavierb36b84e2017-08-10 14:46:32 -0700182$(M)/ciab-ovs:
183 $(ANSIBLE_PB) $(BUILD)/ansible/ciab-ovs.yml $(LOGCMD)
184 touch $@
185
Zack Williamsce63eb02017-02-28 10:46:22 -0700186$(M)/vagrant-up: | $(VAGRANT_UP_PREREQS)
187 $(VAGRANT) up $(VAGRANT_VMS) --provider $(VAGRANT_PROVIDER) $(LOGCMD)
188 @echo "Configuring SSH for VM's..."
189 $(VAGRANT) ssh-config $(VAGRANT_VMS) > $(SSH_CONFIG)
190 touch $@
191
Zack Williams9c4ef852017-09-05 16:14:04 -0700192$(M)/config-ssh-key: | $(M)/vagrant-up
193 $(ANSIBLE_PB) $(BUILD)/ansible/config-ssh-key.yml $(LOGCMD)
194 touch $@
195
196$(M)/copy-cord: | $(M)/vagrant-up $(COPY_CORD_PREREQS)
Zack Williamsce63eb02017-02-28 10:46:22 -0700197 $(ANSIBLE_PB) $(PI)/copy-cord-playbook.yml $(LOGCMD)
198 touch $@
199
200$(M)/cord-config: | $(M)/vagrant-up $(CORD_CONFIG_PREREQS)
201 $(ANSIBLE_PB) $(PI)/cord-config-playbook.yml $(LOGCMD)
202 cp -r $(GENCONFIG_D) $(CONFIG_CORD_PROFILE_DIR)/genconfig
203 touch $@
204
205$(M)/copy-config: | $(COPY_CONFIG_PREREQS)
206 $(ANSIBLE_PB) $(PI)/copy-profile-playbook.yml $(LOGCMD)
207 touch $@
208
209$(M)/prep-buildnode: | $(M)/vagrant-up $(M)/cord-config $(PREP_BUILDNODE_PREREQS)
210 $(ANSIBLE_PB) $(PI)/prep-buildnode-playbook.yml $(LOGCMD)
Zack Williamsa5fcefd2017-07-27 22:06:33 -0700211 @echo Waiting 20 seconds to timeout SSH ControlPersist, and so future ansible commands gain docker group membership
212 sleep 20
Zack Williamsce63eb02017-02-28 10:46:22 -0700213 touch $@
214
215$(M)/prep-headnode: | $(M)/vagrant-up $(M)/cord-config $(PREP_HEADNODE_PREREQS)
216 $(ANSIBLE_PB) $(PI)/prep-headnode-playbook.yml $(LOGCMD)
217 touch $@
218
Zack Williams0a7ef162017-07-18 18:15:26 -0700219$(M)/deploy-elasticstack: | $(M)/prep-headnode
Zack Williamsce63eb02017-02-28 10:46:22 -0700220 $(ANSIBLE_PB) $(PI)/deploy-elasticstack-playbook.yml $(LOGCMD)
221 touch $@
222
223$(M)/prep-computenode: | $(M)/prep-headnode
224 $(ANSIBLE_PB) $(PI)/prep-computenode-playbook.yml $(LOGCMD)
225 touch $@
226
Andy Bavier35d238e2017-07-24 16:47:22 -0700227
228# MaaS targets
229$(M)/build-maas-images: | $(M)/prep-buildnode $(BUILD_MAAS_IMAGES_PREREQS)
Andy Bavierafaa5302017-08-15 08:56:15 -0700230 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/build/maas; rm -f consul.image; make MAKE_CONFIG=../$(MAKEFILE_CONFIG) build" $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700231 touch $@
232
Andy Bavier35d238e2017-07-24 16:47:22 -0700233$(M)/maas-prime: | $(M)/deploy-elasticstack
234 $(ANSIBLE_PB) $(MAAS)/prime-node.yml $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700235 touch $@
236
Andy Bavier35d238e2017-07-24 16:47:22 -0700237$(M)/publish-maas-images: | $(M)/maas-prime $(M)/build-maas-images
Andy Bavier09410472017-08-15 14:29:35 -0700238 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/build/maas; rm -f consul.publish; make MAKE_CONFIG=../$(MAKEFILE_CONFIG) publish" $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700239 touch $@
240
Andy Bavier35d238e2017-07-24 16:47:22 -0700241$(M)/deploy-maas: | $(M)/publish-maas-images $(M)/cord-config $(M)/copy-config
242 $(ANSIBLE_PB) $(MAAS)/head-node.yml $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700243 touch $@
244
Andy Bavier35d238e2017-07-24 16:47:22 -0700245
246# ONOS targets
247$(M)/build-onos-apps: | $(M)/prep-buildnode $(BUILD_ONOS_APPS_PREREQS)
Andy Bavierafaa5302017-08-15 08:56:15 -0700248 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/onos-apps; make MAKE_CONFIG=../build/$(MAKEFILE_CONFIG) build" $(LOGCMD)
Andy Bavier35d238e2017-07-24 16:47:22 -0700249 touch $@
250
Andy Bavier61dc81a2017-08-23 15:29:45 -0700251$(M)/publish-onos-apps: | $(M)/deploy-maas $(M)/build-onos-apps
Andy Bavierafaa5302017-08-15 08:56:15 -0700252 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/onos-apps; make MAKE_CONFIG=../build/$(MAKEFILE_CONFIG) publish" $(LOGCMD)
Andy Bavier35d238e2017-07-24 16:47:22 -0700253 touch $@
254
Andy Bavierafaa5302017-08-15 08:56:15 -0700255$(M)/deploy-mavenrepo: | $(M)/publish-onos-apps $(DEPLOY_MAVENREPO_PREREQS)
Andy Bavier35d238e2017-07-24 16:47:22 -0700256 $(ANSIBLE_PB) $(PI)/deploy-mavenrepo-playbook.yml $(LOGCMD)
257 touch $@
258
259$(M)/deploy-onos: | $(M)/docker-images $(DEPLOY_ONOS_PREREQS)
260 $(ANSIBLE_PB) $(PI)/deploy-onos-playbook.yml $(LOGCMD)
261 touch $@
262
263
264# XOS targets
Zack Williamsa5fcefd2017-07-27 22:06:33 -0700265$(M)/docker-images: | $(M)/prep-buildnode $(DOCKER_IMAGES_PREREQS)
Andy Bavier35d238e2017-07-24 16:47:22 -0700266 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/build; $(IMAGEBUILDER) -f $(MASTER_CONFIG) -l $(BUILD)/image_logs -g $(BUILD)/ib_graph.dot -a $(BUILD)/ib_actions.yml " $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700267 touch $@
268
Andy Bavier35d238e2017-07-24 16:47:22 -0700269$(M)/core-image: | $(M)/docker-images
Zack Williamsce63eb02017-02-28 10:46:22 -0700270 $(ANSIBLE_PB) $(PI)/build-core-image-playbook.yml $(LOGCMD)
271 touch $@
272
Andy Bavier35d238e2017-07-24 16:47:22 -0700273# Requires ib_actions.yml file which is on the build host
Andy Bavier61dc81a2017-08-23 15:29:45 -0700274$(M)/publish-docker-images: | $(M)/deploy-maas $(M)/docker-images $(M)/core-image
Andy Bavier35d238e2017-07-24 16:47:22 -0700275 $(SSH_BUILD) "cd $(BUILD_CORD_DIR)/build; $(ANSIBLE_PB_LOCAL) $(PI)/publish-images-playbook.yml" $(LOGCMD)
276 touch $@
277
Zack Williams0a7ef162017-07-18 18:15:26 -0700278$(M)/start-xos: | $(M)/prep-headnode $(M)/core-image $(START_XOS_PREREQS)
Zack Williamsce63eb02017-02-28 10:46:22 -0700279 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) $(PI)/start-xos-playbook.yml" $(LOGCMD)
280 touch $@
281
Andy Bavier35d238e2017-07-24 16:47:22 -0700282$(M)/onboard-profile: | $(M)/start-xos
283 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) $(PI)/onboard-profile-playbook.yml" $(LOGCMD)
Zack Williams2f56eee2017-07-17 09:59:16 -0700284 touch $@
285
Andy Bavier35d238e2017-07-24 16:47:22 -0700286
287# OpenStack targets
288$(M)/glance-images: | $(M)/prep-headnode
289 $(ANSIBLE_PB) $(PI)/glance-images-playbook.yml $(LOGCMD)
290 touch $@
291
292$(M)/deploy-openstack: | $(M)/deploy-elasticstack $(M)/prep-headnode $(M)/prep-computenode $(DEPLOY_OPENSTACK_PREREQS)
293 $(ANSIBLE_PB) $(PI)/deploy-openstack-playbook.yml $(LOGCMD)
294 touch $@
295
296$(M)/deploy-computenode: | $(M)/deploy-openstack
297 $(ANSIBLE_PB) $(PI)/deploy-computenode-playbook.yml $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700298 touch $@
299
Zack Williamsa5fcefd2017-07-27 22:06:33 -0700300$(M)/onos-debug: | $(M)/onboard-profile
301 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) $(PI)/onos-debug-playbook.yml" $(LOGCMD)
302 touch $@
303
Zack Williamsce63eb02017-02-28 10:46:22 -0700304$(M)/onboard-openstack: | $(M)/deploy-computenode $(M)/glance-images $(M)/deploy-onos $(M)/onboard-profile
305 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) $(PI)/onboard-openstack-playbook.yml" $(LOGCMD)
306 touch $@
307
Andy Bavier35d238e2017-07-24 16:47:22 -0700308
309# Post-onboarding targets
310$(M)/setup-automation: | $(M)/onboard-profile $(M)/deploy-onos $(SETUP_AUTOMATION_PREREQS)
311 $(ANSIBLE_PB) $(PI)/cord-automation-playbook.yml $(LOGCMD)
312 touch $@
313
314
315# Additional CiaB targets
Andy Bavier35d238e2017-07-24 16:47:22 -0700316$(M)/setup-ciab-pcu: | $(M)/setup-automation
317 $(ANSIBLE_PB) $(MAAS)/setup-ciab-pcu.yml
318 touch $@
319
Andy Bavierb36b84e2017-08-10 14:46:32 -0700320$(M)/compute%-up: | $(M)/setup-ciab-pcu
Andy Bavier35d238e2017-07-24 16:47:22 -0700321 $(VAGRANT) up compute$* --provider $(VAGRANT_PROVIDER) $(LOGCMD)
322 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) ansible/maas-provision.yml --extra-vars='maas_user=maas vagrant_name=cord_compute$*'" $(LOGCMD)
323 touch $@
324
Andy Bavierb36b84e2017-08-10 14:46:32 -0700325$(M)/refresh-fabric: | $(M)/compute1-up
326 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_MAAS) $(PI)/cord-refresh-fabric.yml" $(LOGCMD)
327 touch $@
328
Andy Bavier35d238e2017-07-24 16:47:22 -0700329
Zack Williamsce63eb02017-02-28 10:46:22 -0700330# Testing targets
Andy Bavier35d238e2017-07-24 16:47:22 -0700331pod-test: $(M)/setup-automation collect-diag
332 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_LOCAL) $(PI)/pod-test-playbook.yml" $(LOGCMD)
333
Andy Bavierb36b84e2017-08-10 14:46:32 -0700334fabric-pingtest: $(M)/refresh-fabric
335 $(SSH_HEAD) "cd /opt/cord/build; $(ANSIBLE_PB_MAAS) $(PI)/cord-fabric-pingtest.yml" $(LOGCMD)
Zack Williamsce63eb02017-02-28 10:46:22 -0700336
337# Local Targets, bring up XOS containers without a VM
Zack Williamsce63eb02017-02-28 10:46:22 -0700338$(M)/local-cord-config:
339 $(ANSIBLE_PB) $(PI)/cord-config-playbook.yml $(LOGCMD)
340 touch $@
341
342$(M)/local-docker-images: | $(M)/local-cord-config
343 $(IMAGEBUILDER) -f $(MASTER_CONFIG) -l $(BUILD)/image_logs -g $(BUILD)/ib_graph.dot -a $(BUILD)/ib_actions.yml $(LOGCMD)
344 touch $@
345
346$(M)/local-core-image: | $(M)/local-docker-images
347 $(ANSIBLE_PB) $(PI)/build-core-image-playbook.yml $(LOGCMD)
348 touch $@
349
350$(M)/local-start-xos: | $(M)/local-core-image
351 $(ANSIBLE_PB) $(PI)/start-xos-playbook.yml $(LOGCMD)
352 touch $@
353
354$(M)/local-onboard-profile: | $(M)/local-start-xos
355 $(ANSIBLE_PB) $(PI)/onboard-profile-playbook.yml $(LOGCMD)
356 touch $@
357