This article describes the steps required to create artifacts.
The following are the supported methods for creating artifacts:
Prerequisites
- Access to the Broker UI with Composer role
Creating Artifacts Manually
This section describes the steps required to manually create artifacts. Use this method when there are only a small number of artifacts to be created.
- Login in the the Broker UI
- Navigate to Composer > My Artifacts
- Select the relevant tab for the artifact type to add - Scripts or Files
Note: This example covers creating a Script artifact - Click Add Script
- In the Add Script Artifact - Details screen, provide the following information:
- Name: A friendly name for the script artifact
- Filename: The file name of the stored script
- OS Family: The Operating System family which can run the script
- Icon: An icon image used to represent the artifact
- Description: A description for the script artifact
- Script: The editor area for composing the script - a script file can also be dragged into this are to import its contents
- Publish: Check this option to immediately publish the script artifact for use in blueprints
- In the Add Script Artifact - Arguments screen, provide the list of expected script arguments, specifying one of the following modes:
- No arguments
- Free-form arguments
- Position arguments
- Named arguments
- The artifact has been created
Uploading Artifacts
This section describes the steps required to batch upload artifacts. Use this method when there are a more than a few artifacts to be created.
Note: When uploading artifacts, consider the number and size of the artifacts. Using Repositories is highly recommended when there are large artifacts or when artifacts are large in size.
- Login in the the Broker UI
- Navigate to Composer > My Artifacts
- Select the relevant tab for the artifact type to add - Scripts or Files
- Click Batch Upload
- In the Batch Upload - File/Script Artifacts screen, use one of the following supported methods to add scripts/files to be uploaded:
- Drag files into the box
- Click on the box to browse and select the scripts and files
- Click Next
- In the Batch Upload - File/Script Artifacts screen, select the following options for each item to upload:
- Type: The artifact type
- OS Family: The Operating System family which supports the item
- Publish: Check this option to immediately publish the items for use in blueprints
- Click Upload
- A progress bar displays for the upload of each item
- The artifacts have been created
Importing Artifacts from a Repository
This section describes the steps required to import artifacts from external repositories.
- Login in the the Broker UI as an administrative user
- Navigate to Admin > Repositories
- Click the Repository name or the View button
- Select the Files tab
- If required, browse to the directory tree to the sub-directory containing the item
- For the item to add, click Add as Artifact
- In the Add as Artifact screen, provide the following information:
- Artifact Type: The type of artifact
- OS Family: The Operating System family which supports the item
- Click Add
- The artifact has been added
- If required, for the added artifact, click Edit Artifact to modify its arguments, metadata, and permissions