5 This section contains a series of macros for projects that need to spin up full
6 test labs using HEAT scripts.
11 The 2 macros :ref:`lf-stack-create` & :ref:`lf-stack-delete` are companion
12 macros and used together when constructing a job template that needs to spin up
13 a full integration lab using Heat Orchestration Templates (HOT).
27 openstack-heat-template: csit-2-instance-type.yaml
28 openstack-heat-template-dir: 'openstack-hot'
31 odl_system_flavor: odl-highcpu-4
32 odl_system_image: ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
34 tools_system_flavor: odl-highcpu-2
35 tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20181029-223449.514
44 openstack-cloud: '{openstack-cloud}'
45 openstack-heat-template: '{openstack-heat-template}'
46 openstack-heat-template-dir: '{openstack-heat-template-dir}'
47 openstack-heat-parameters: |
48 vm_0_count: '{odl_system_count}'
49 vm_0_flavor: '{odl_system_flavor}'
50 vm_0_image: '{odl_system_image}'
51 vm_1_count: '{tools_system_count}'
52 vm_1_flavor: '{tools_system_flavor}'
53 vm_1_image: '{tools_system_image}'
57 openstack-cloud: '{openstack-cloud}'
68 Creates an OpenStack stack as configured by the job. Name pattern of stack is
69 ``$SILO-$JOB_NAME-$BUILD_NUMBER``.
71 Requires ``lf-infra-pre-build`` macro to run first to install the
72 ``openstack`` and ``lftools`` packages.
74 Requires a Config File Provider configuration for clouds.yaml named
79 :openstack-cloud: The ``OS_CLOUD`` variable to pass to OpenStack client.
80 (Docs: https://docs.openstack.org/python-openstackclient)
81 :openstack-heat-template: Name of template file to use when running stack
83 :openstack-heat-template-dir: Directory in the ci-management repo
84 containing the OpenStack heat templates.
88 .. literalinclude:: ../../.jjb-test/lf-openstack/lf-stack-create-minimal.yaml
95 Deletes the stack associated with this job. Name pattern of stack is
96 ``$SILO-$JOB_NAME-$BUILD_NUMBER``.
98 Requires ``lf-infra-pre-build`` macro to run first to install the
99 ``openstack`` and ``lftools`` packages.
101 Requires a Config File Provider configuration for clouds.yaml named
104 :Required Parameters:
106 :openstack-cloud: The ``OS_CLOUD`` variable to pass to OpenStack client.
107 (Docs: https://docs.openstack.org/python-openstackclient)
111 .. literalinclude:: ../../.jjb-test/lf-openstack/lf-stack-delete-minimal.yaml