/cloudify-training-labs

Primary LanguagePythonApache License 2.0Apache-2.0

Cloudify Training: Labs

This project contains the labs material for the official Cloudify training course.

Labs Order

  1. CLI Installation
  2. Running Basic Blueprint
  3. Creating a Simple Blueprint
  4. Using Scripts in Lifecycle Events
  5. Developing a Simple Plugin
  6. Workflows
  7. Bootstrapping
  8. Installing Application using Cloudify Manager
  9. Monitoring
  10. Orchestrating OpenStack Resources
  11. Cloudify Manager and OpenStack
  12. Scaling
  13. Bootstrapping Offline
  14. Troubleshooting

Virtual Machines

Creating Your Own CLI VM

If you don't have a CLI VM provided to you, or you would like to use your own image:

  • Use a CentOS 7.x image.

  • Allow at least 1GB of RAM and 5GB of storage.

  • Make sure that iptables is disabled.

    • If you are using firewalld, stop it and mask it:

      sudo systemctl stop firewalld
      sudo systemctl mask firewalld
    • If you are using iptables-services, stop it and mask it:

      sudo systemctl stop iptables
      sudo systemctl mask iptables
  • Make sure that the VM is connected to a security group that is very permissive

  • Install unzip and git (needed for the labs; not Cloudify prerequisites)

    sudo yum -y install unzip git
  • Install pip (required for the plugin development lab):

    curl https://bootstrap.pypa.io/get-pip.py | sudo python
  • Install virtualenv:

    sudo pip install virtualenv
  • Clone the training labs (replace <labs-branch> with the branch corresponding to the Cloudify version you are training for. For example: 4.5)

    git clone -b <labs-branch> https://github.com/Cloudify-PS/cloudify-training-labs.git

Creating Your Own Cloudify Manager VM

If you don't have a Manager VM provided to you, or you would like to use your own image:

  • Use a CentOS 7.x image
  • Ensure that the VM answers to the prerequisites documented in Cloudify's documentation website (https://docs.cloudify.co/4.5.0/install_maintain/installation/prerequisites/), with the following exceptions:
    • The minimum amount of RAM should be 4GB.
    • The security group to which this VM is connected should have more permissive rules than the ones stated, because certain labs install topologies on the very same VM as the Manager's. It is recommended to allow incoming traffic on all ports.
  • Make sure that iptables is disabled. Similarly to the CLI VM's case, this is not a Cloudify requirement but a training material requirement.