- Install the TOSCA Parser – run
sudo pip install tosca-parserto install the latest release or you can get the latest code from the TOSCA-Parser github repository and install it manually.
- Install the Heat Translator – run
sudo pip install heat-translatorto install the latest release or you can get the latest code from the Heat-Translator github repository and install it manually.
- Download the csar_elk.zip or csar_hello_world.zip
tosca-parser --template-file=csar_elk.zipor if you are using the Heat-Translator, you could translate it to HOT by simply using the following command. As you can expect, before the translation, the Heat-Translator first validates the CSAR using TOSCA-Parser programmatically.
heat-translator --template-file=csar_elk.zipThe Heat-Translator can be used to automatically deploy translated content by providing –deploy option on the CLI. For example, a quick test deployment can be done with Hello World CSAR as:
heat-translator --template-file=csar_hello_world.zip –deploy –stack-name=helloworldThat’s it. I sincerely hope that by now you have a better understanding of how to package application workloads in a TOSCA CSAR and deploy them into an OpenStack cloud. A special thanks to some very talented folks that I have been fortunate to work with – Ton Ngo and Vahid Hashemian of the TOSCA development team, and Matt Rutkowski, Thomas Spatzier, Derek Palma, Chris Lauwers and Luc Boutier of TOSCA TC – without whom the work I mentioned in this post couldn’t have been made possible. In the next post, I will be talking about an important feature of TOSCA called substitution mappings. Stay tuned!