Below are general steps to deploy/un-deploy through Cloudify cli.
- Login to DCAE bootstrap container (alternatively you can install virtualenv on you local vm and proceed with steps below)
- Create a virtual python environment for yourself for running cfy
virtualenv <name>
source ./<name>/bin/activate
cd <name>
pip install cloudify==3.4.0
cfy init
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