Script is a single or multiple file that contains a sequence of commands a program that are used for automation. CoreStack™ supports commonly used automation tools such as Chef, Ansible, Puppet and Shell (Bash and PowerShell).
Chef – Chef is a configuration management technology used to automate the infrastructure provisioning. It is developed on the basis of Ruby DSL language. It is used to streamline the task of configuration and managing the company's server. It has the capability to get integrated with any of the cloud technology.
Ansible – Ansible is an open source automation platform. Ansible can help you with configuration management, application deployment, task automation. It can also do IT orchestration, where you have to run tasks in sequence and create a chain of events which must happen on several different servers or devices.
Puppet – Puppet is an open-core software configuration management tool. It runs on many Unix-like systems as well as on Microsoft Windows and includes its own declarative language to describe system configuration.
Shell – Bash or PowerShell scripts. Bash Scripts is widely available on various operating systems and is a default command interpreter on most GNU/Linux systems. PowerShell is an automated task framework from Microsoft, with a command line shell and a scripting language integrated into the .NET framework, which can be embedded within other applications. It automates batch processing and creates system management tools.
Navigate to Automation submenu under Operations in the Left navigation menu and select Scripts option to land in Scripts (Marketplace).
The tabs at the top represent the scope of the scripts. You can see 2 tabs: Marketplace and My Scripts.
CoreStack™ provides a wide range of pre-defined scripts which can help in realizing multiple use cases. These are pre-loaded for all subscriptions and are FREE to be executed on-demand or scheduled.
These scripts are available across all tenants and are usually created by the Product Administrator.
Tip: These scripts have the scope value set to Global.
These scripts have been created by users within the tenant. These are available only for users within the tenant. You can add more scripts or edit/delete existing scripts in this tab based on your role and access policies.
Tip: These scripts have the scope value set to Tenants.
CoreStack™ offers search and filter functions to help quickly look for the scripts you need to execute. The Search bar is available just above the script list. To Filter Scripts, you can click on the “Filter” icon placed to the right end above the script list.
The Text Search helps you search using any string available in the following fields:
The text search is thus quite useful in refining your search results based on any little information you have on the preferred result set.
CoreStack™ also offers Filters to help you narrow down the list of scripts by using one or a combination of filters. On clicking the Filter icon, you will see the list of Filter options available as shown below. Select the preferred options and click on “Apply Filter” button at the bottom of this box.
Tip: Use the Reset button to quickly remove all selected filters and view all results.
Once you decide on a script that you would like to try out, you can execute it on-demand or schedule it for a one-time or recurring execution(s) in future.
To get more information about a specific script, click on the script to open the ‘Script Detail’ page. Script Detail page has three tabs as follows:
Script actions will be shown to every script listed when you are hovering mouse on a script. The list of actions depends on the scope of the script (Marketplace, Shared (My Scripts)) and the RBAC access for scripts that user has.
Scripts are to be executed against selected target instance(s). The additional flexibility provided is that, you can execute multiple scripts across multiple instances.
In ‘Job History' you can find the status and outputs for this execution. Execute requires following inputs:
Schedules the scripts execution to be run later once or multiple times. Schedule requires the following details:
CoreStack™ also provides the option for users to create their own scripts and use them to execute against their instaces. Follow the steps given below: Use the ‘+’ button next to the ‘Search’ bar at top right.
Script create window will have 3 sections as follows: Script Details, Dependencies (specific to Chef) and Attributes.
Lists all script executions of the current tenant. A sample screenshot is shown below. The tabs at the top right represents the archive status of jobs. You can see 2 tabs: Active Jobs and Archived Jobs.
Script Job History page offers search and filter functions to help quickly look for the executions. The Search bar is available just above the jobs list. To Filter Jobs, you can click on the “Filter” icon placed to the right end above the Job detail tab.
Script Job History page also has Archive, Un-Archive and Delete Actions. These actions can be used to have limited number of executions in Job history page.
Job history page has option to refresh the Jobs list. This will help when you are landing here from template execute page. By the time you are landing the Job might be IN_PROGRESS state. This will help to refresh the status.
Script Jobs list show the following columns in the list.
Script Job Detail will be shown on clicking Job from the list. This will show three tabs. Inputs, Output and Task.
Lists all script execution schedules of the current tenant. The tabs at the top right represents the schedule status. You can see 2 tabs: Upcoming and Past. Upcoming will list the schedules which are active, to be execute on future based on its scheduled time. Past will list the schedules which are no longer going to be executed. Eg. Scheduled Once will be moved to Past tab after its execution.
Script Schedules page offers search and filter functions to help quickly look for the schedules. The Search bar is available just above the schedules list. To Filter Jobs, you can click on the “Filter” icon placed to the right end above the Schedule detail tab.
Script Schedules list show the following columns in the list.
Script Schedule Detail will be shown on clicking Schedule from the list. This will show the execution history the schedule which will redirect to Job history page and filter by this schedule. It’s also supports the following actions on schedule.
CoreStack™ also provides the control over the next execution of the schedule. You can remove the next execution or can edit the next execution time alone without modifying the schedule. For example, in a daily 12pm schedule, you can change the time of the next execution.