Olivier Lemasle 6843856c3d Import packages from murano-apps in Devstack
This commit adds a Devstack MURANO_APPS variable which can be used to
install directly from the Git murano-apps repository (repository and
branch customizable) some Murano packages.

E.g MURANO_APPS="io.murano.apps.apache.Tomcat,io.murano.apps.Guacamole"

The murano-apps repository is cloned only if at least one application
is defined in MURANO_APPS.

Implements: blueprint import-apps-devstack
Change-Id: I57f959ddafd62cc726d4f5f80fec27bc86bf05d1
2015-10-22 19:58:43 +02:00

1.7 KiB

  1. Follow Devstack documentation to setup a host for Devstack. Then clone Devstack source code.

  2. Copy Murano integration scripts to Devstack either by setting environment variable or providing complete path to devstack directory. Below one is using environment variable:

    export DEVSTACK_DIR=<complete path to devstack directory(clonned)>
    cp files/apts/murano ${DEVSTACK_DIR}/files/debs
    cp files/rpms/murano ${DEVSTACK_DIR}/files/rpms
    cp lib/murano ${DEVSTACK_DIR}/lib
    cp lib/murano-dashboard ${DEVSTACK_DIR}/lib
    cp extras.d/70-murano.sh ${DEVSTACK_DIR}/extras.d
  3. Create a localrc file as input to devstack.

  4. The Murano, Neutron and Heat services are not enabled by default, so they must be enabled in localrc before running stack.sh. This example localrc file shows all of the settings required for Murano:

    # Enable Neutron
    ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
    
    # Enable Heat
    enable_service heat h-api h-api-cfn h-api-cw h-eng
    
    # Enable Murano
    enable_service murano murano-api murano-engine
  5. (Optional) To import Murano packages when DevStack is up, define an ordered list of packages FQDNs in localrc. Make sure to list all package dependencies. These packages will by default be imported from the murano-apps git repository.

    Example:

    MURANO_APPS=io.murano.apps.apache.Tomcat,io.murano.apps.Guacamole

    You can also use the variables MURANO_APPS_REPO and MURANO_APPS_BRANCH to configure the git repository which will be used as the source for the imported packages.

  6. Deploy your OpenStack Cloud with Murano:

    ./stack.sh