In this lab, we will install a sample application on Cloudify Manager.
We will install the Cloudify "Hello World" application, available on your CLI VM under ~/hello-world
.
Make sure that your CLI's active profile points at a Cloudify Manager:
cfy profiles list
Otherwise, use the cfy profiles use
command to switch to a Cloudify Manager profile.
cfy blueprints upload ~/hello-world/no-monitoring-singlehost-blueprint.yaml -b helloworld
The hello-world
blueprint requires a few inputs. For convenience, prepare a YAML file with values for those inputs:
vi ~/hw-inputs.yaml
Provide the following contents:
server_ip: <your-app-vm-ip-address>
agent_user: centos
agent_private_key_path: /etc/cloudify/cfy-training.pem
cfy deployments create hw1 -b helloworld -i ~/hw-inputs.yaml
cfy executions start install -d hw1
The application can now be accessed by going to http://<app-vm-ip>:8080
.
cfy uninstall hw1
This will run the uninstall
workflow, and then delete the hw1
deployment and its associated blueprint.