npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@itentialopensource/cloudify-create-delete-deployment

v0.0.11-2023.1.0

Published

Cloudify Create Delete Deployment

Downloads

5

Readme

Cloudify Create Delete Deployment

Table of Contents

Overview

The Cloudify Create Delete Deployment pre-built consists of workflows to create and delete deployments on Cloudify Manager. This pre-built was designed and tested using a Cloudify Manager instance downloaded as a Docker image with the created container running on an Itential DSUP server. Consequently, this pre-built should create and delete deployments on any Cloudify instance with little to no modification. The service configuration of the corresponding adapter instance must be verified on IAP if Cloudify Manager is served on a different host.

Estimated Run Time: 3 minutes

Main Workflows

Pictured below are the main workflows for the creation and deletion of deployments on Cloudify Manager.

Create Deployment

Below is an explanation for each of the numbered tasks in the create deployment workflow, respectively:

  1. Query form data from inputs.
  2. Query form data for deployment id.
  3. Set-up the input object from the form data to be provided to the tasks to perform a create deployment operation.
  4. Set-up data by converting inputs from form data to JSON.
  5. Set an object key to construct a deployment body for Cloudify.
  6. Create deployment task for Cloudify which creates the deployment in Cloudify Manager.
  7. Make data payload for the Cloudify start execution task.
  8. A delay of 30 seconds for Cloudify to get ready.
  9. Query response from the error object from the createDeployment task.
  10. Execute a workflow on a given deployment.
  11. Retry execution for a specific number of times if start execution errors out.
  12. Query execution id to be used in further tasks.
  13. Show response from start execution failure and an option to retry start execution task.
  14. Retrieve information for a specific execution.
  15. View error response from the create deployment task.
  16. Run an evaluation to check status for failure.
  17. Run an evaluation to check status for terminated.
  18. Retry the status check or get execution task.
  19. The status check or get execution task has not passed for the deployment.
  20. Get deployments outputs from Cloudify.

Delete Deployment

Below is an explanation for each of the numbered tasks in the delete deployment workflow, respectively:

  1. Query deployment id from form data to be used in the workflow.
  2. Make data payload for the Cloudify delete execution task.
  3. Execute a workflow on a given deployment.
  4. A delay of 60 seconds for Cloudify to get ready.
  5. Query response from the error object from the delete execution task.
  6. Delete Cloudify deployment task which deletes the deployment in Cloudify Manager.
  7. Retry delete deployment task if it errors out.
  8. Query response from error object from the delete deployment.
  9. View response from Cloudify delete deployment failure.
  10. View response from error object from the delete execution task.

Requirements

Pre-requisites to use the Cloudify Create Delete Deployment include:

  • Itential Automation Platform

    • ^2021.2
  • Cloudify Manager

    • A Cloudify Manager instance running on a local machine or dedicated server.
    • Service configuration to setup an adapter in IAP to connect to Cloudify Manager.
    • A blueprint must be available on Cloudify Manager to be used in the form to create and delete deployments.

How to Install

To install the Pre-Built:

  • Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section in order to install the Pre-Built.
  • The Pre-Built can be installed from within Pre-builts catalog. Simply search for the name of your desired Pre-Built and click the install button (as shown below).
  • After the notification displays to inform you the Pre-built has been installed, you should be able to navigate to Operations Mangager and verify the Cloudify Create Delete Deployment item has been successfully installed.
  • Alternatively, you may clone this repository and run npm pack to create a tarball which can then be installed via the offline installer in App-Artifacts. Please consult the App-Artifacts documentation for further information.

How to Run

Use of this Pre-Built assumes there is a Cloudify Manager instance running and available to perform create and delete deployment operations.

  • Once Cloudify Manager is up and running, an adapter instance of the same can be added from the Settings→Services→Adapters section in IAP.
  • Once the adapter instance is added and the adapter status and connection shows as green (active) under the Settings→System→Adapters menu in IAP, the create/delete deployment job can be started from Operations Manager.
  • A unique deployment id which starts with a letter must be given, and the name of the blueprint previously uploaded to Cloudify Manager must also be provided.
  • If no further input options are needed, an empty object {} must be provided in the inputs field. To explore further input options for Cloudify deployment, please refer to the official Cloudify documentation.
  • For the delete deployment operation, the deployment id that is already created and visible in your Cloudify Manager instance must be provided.

Run Automation Dialog

Cloudify Manager Console

Test Environment

This pre-built was tested on a Cloudify Manager instance running on Itential's internal server and respective adapter instance setup on the Itential's Automation platform. All testing was conducted using version 2020.2 of the Itential Automation Platform.

Additional Information

Please use your Itential Customer Success account if you need support when using this Pre-Built.