Snaplogic setup

Creating MetaSnap

As Snaplogic does not provide extensive APIs to list projects and project spaces, Creating the below MetaSnap will allow for a cleaner automation.

  • Login to Snaplogic ( https://elastic.snaplogic.com/ )

  • Go to Designer , create new pipeline

  • Click edit “Pipeline Properties” and PATH variable to pass URL path as input

  • Then in snaps tab → check for snaplogic List and select

  • Click edit for snaplogic-list and select Asset Type as “ Project “ and in asset path provide the variable configured in above step

  • Validate the created pipeline and check whether projects are coming in provided path ( PATH_INFO = “<Organization-name>” ).

  • Once this is done create a “Triggered task “ from menu option

  • Once task is created for pipeline snappack-list--> go to “Manger” tab and click task and open Details

  • Make a note of the URL and HTTP Header Authorization. This information is required to create a tool registry entry in Opsera as detailed in the below section

Registering Snaplogic

  • Login Opsera → Tool Registry → Create new tool

  • Select “Snaplogic” → Enter a Name and create

  • Connection Tab → Enter cred and “Test Connection”

Pipeline Setup

  • Pipelines → New pipeline

 

  • Select Template → save a name

  • Workflow Tab → Edit the unconfigured step

  • Enter a Name → select “Snaplogic” as tool → Save

  • Click “Configure step settings”

  • Configure the Snaplogic step form

    • Select the snaplogic tool saved in Tool registry

    • Select the SCM (Github) saved in tool registry

    • Account, repo & branch to checkout on Project selection

  • Save → Start pipeline → successful log with series of steps