Ms Deployment through Cloudify CLI



Below are general steps to deploy/un-deploy blueprints through Cloudify cli.

Note: This assume DCAE is already installed (with cloudify).

 

  1. Login to DCAE bootstrap container (alternatively you can install virtualenv on you local vm and proceed with steps below)


  2. Create a virtual python      environment for yourself for running cfy

  3.  

    1. virtualenv <name>

    2. source ./<name>/bin/activate

    3. cd <name>

    4. pip install cloudify==3.4.0

    5. cfy init

    6. cfy use -t <CloudifyServer FQDN/IP>

 

      3. Copy the blueprint and inputs to your working directory

      4. Validate the blueprint 

cfy blueprints validate -p <blueprintfilename>

       5. Install through cloudify

        cfy install -p <blueprintfilename> -b <blueprint_id> -d <deployment_id> -i <input_file>

        Example :

cfy install -p ves.yaml -b vescollector -d vescollector   -i  ves-ip.yaml

6. For undeploy, specify the deployment name to undeploy

 cfy uninstall -d <deployment_id>

Example :

cfy uninstall -d vescollector -v

7. You can check the docker host to see more on the Application container/logs

8. After you are done, exit from the virtual environment

deactivate