Class ImageTemplateShellValidator


  • public final class ImageTemplateShellValidator
    extends ImageTemplateInVMValidator
    Runs the specified shell script during the validation phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
    • Constructor Detail

      • ImageTemplateShellValidator

        public ImageTemplateShellValidator()
    • Method Detail

      • scriptUri

        public String scriptUri()
        Get the scriptUri property: URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc.
        Returns:
        the scriptUri value.
      • withScriptUri

        public ImageTemplateShellValidator withScriptUri​(String scriptUri)
        Set the scriptUri property: URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc.
        Parameters:
        scriptUri - the scriptUri value to set.
        Returns:
        the ImageTemplateShellValidator object itself.
      • sha256Checksum

        public String sha256Checksum()
        Get the sha256Checksum property: SHA256 checksum of the shell script provided in the scriptUri field.
        Returns:
        the sha256Checksum value.
      • withSha256Checksum

        public ImageTemplateShellValidator withSha256Checksum​(String sha256Checksum)
        Set the sha256Checksum property: SHA256 checksum of the shell script provided in the scriptUri field.
        Parameters:
        sha256Checksum - the sha256Checksum value to set.
        Returns:
        the ImageTemplateShellValidator object itself.
      • inline

        public List<String> inline()
        Get the inline property: Array of shell commands to execute.
        Returns:
        the inline value.
      • withInline

        public ImageTemplateShellValidator withInline​(List<String> inline)
        Set the inline property: Array of shell commands to execute.
        Parameters:
        inline - the inline value to set.
        Returns:
        the ImageTemplateShellValidator object itself.