Automation

Chef

To get more information about a specific script:

  • Click on the script name to open the Script Detail page.
  • View the attributes related to the script and update the values if required by clicking on Update.Given below is a sample script detail page:

The below 3 tabs are also available in the Script Detail page:

Dependencies Tab

List the set of dependent scripts that are required for this cookbook. While adding a script, CoreStack™ can automatically scan for dependencies and add them here.

Attributes Tab

The list of Optional and Mandatory attributes required for executing the script are listed here. A sample is given below:

Script Actions

Given below are the actions that can be performed on a script:

  • Execute – Lets you execute the script (On-Demand)
  • Update – Modifies the attribute values or script source
  • Schedule – Similar to Execute, but schedules it to be run later once/multiple times.
  • Delete – Deletes the script

Execute Scripts

As specified earlier, Scripts are to be executed against selected target instance(s). The additional flexibility provided is that, you can execute multiple scripts across multiple instances.

  • Single Script in a single instance
  • Multiple Scripts in a single instance
  • Single Scripts into multiple instances
  • Multiple Scripts into multiple instances

A sample Chef script execution where 3 scripts are executed into 2 instances is shown below:

Once the set of instances along with their IP and credentials are provided, you can select the scripts to be executed within each instance. After completing these 2 steps, you can click on “Next” to provide the values for the input attributes required for executing these scripts. A sample is shown below:

The Script detail tab has the set of attributes for each script listed. Optional attributes are listed under Advanced.

Once all the script attributes are provided, you can click Run Now to execute the script in on-demand mode. Script Jobs can be viewed from the Scripts tab in the Job now. On clicking Run Now you  are redirected to this page.

The input parameters required are different based on the script type.

  • Chef Cookbook – Cookbook Attributes (as shown in above example)
  • Puppet Module – Manifest File
  • Shell Script – Command Line Arguments

Ansible

Ansible scripts are added as Marketplace script where user can filter Anisble and select any script

Select a script and execute it.

Provide all the mandatory input and submit. It will start executing the script in you Instance that you have provided. And output will be get listed in Job history page of Script component.

User can also upload his own Ansible Scripts and execute it. To Upload a script refer Chef user guide.

PowerShell

Powershell scripts are added as Marketplace script where user can filter Shell and select any script

Select a script and execute it.

Provide all the mandatory input and submit. It will start executing the script in you Instance that you have provided. And output will be get listed in Job history page of Script component.

User can also upload his own Powershell Scripts and execute it. To Upload a script refer Chef user guide.