project:
  name: quickstart-jfrog-artifactory
  owner: quickstart-eng@amazon.com
  s3_object_acl: private
  s3_regional_buckets: True
  #s3_bucket: tcat-422383ecc658557f9a377abae675aac0  # commercial accounts (also for GovCloud)
  #s3_bucket: tcat-a3e80b6745b2547da1c745b16adf2a66    # aws-seller accounts (MarketPlace)

  parameters:
    KeyPairName         : "keyname"
    ArtifactoryVersion  : "rt_ver"
    XrayVersion         : "xray_ver"
    AccessCidr          : "0.0.0.0/0"
    QsS3BucketName      : "$[taskcat_autobucket]"
    QsS3KeyPrefix       : "quickstart-jfrog-artifactory/"
    QsS3BucketRegion    : "$[taskcat_current_region]"
    MasterKey           : "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
    SmLicenseName       : "jfrog-artifactory"
    SmCertName          : "jfrog.tech-certificates"
    ArtifactoryServerName: "artifactory"
    MultiAzDatabase     : "true"
    ProvisionBastionHost: "Enabled"
    DatabasePassword    : "$[taskcat_genpass_8A]"
    XrayDatabasePassword: "$[taskcat_genpass_8A]"

    # Set this to your home intenet gateway public IP in override file
    # e.g. "24.4.228.4/32"
    RemoteAccessCidr    : "63.238.166.122/29" # JFrog network


  regions:
    - REGION

tests:
  rt-ami:
    auth:
      REGION: seller
      us-gov-east-1 : gov
    parameters:
      AvailabilityZone: "$[taskcat_genaz_1]"
    template: templates/jfrog-ami-main.template.yaml

  xray-ami:
    auth:
      REGION: seller
      us-gov-east-1 : gov
    parameters:
      AvailabilityZone: "$[taskcat_genaz_1]"
    template: templates/ami-rt-xray-main.template.yaml

  create-bastion-with-existing-vpc:
    parameters:
      # us-west-1
      VpcId               : "vpc-0d5806917ae9d5aae"
      PublicSubnet1Id     : "subnet-05e6d5d00b0743b24"
      PublicSubnet2Id     : "subnet-012e67d537e962d6e"
      RemoteAccessCIDR    : "24.4.228.4/32"
      EnableTCPForwarding : 'true'
    template: submodules/quickstart-linux-bastion/templates/linux-bastion.template

  artifactory-enterprise-new-vpc:
    auth:
      REGION: default
      us-gov-west-1: gov
      us-gov-east-1: gov
    parameters:
      InstallXray: "true"
      XrayNumberOfSecondary: 1
      AvailabilityZones: "$[taskcat_genaz_2]"
    template: templates/jfrog-artifactory-ec2-main.template.yaml


  artifactory-enterprise-existing-vpc:
    auth:
      REGION: default
      us-gov-west-1: gov
      us-gov-east-1: gov
    parameters:
      InstallXray: "true"
      XrayNumberOfSecondary: 1

      # us-west-1
      AvailabilityZones   : "us-east-1a, us-east-1b"
      VpcId               : "vpc-0df1d896364490643"
      PublicSubnet1Id     : "subnet-05e222926ec99d3c3"
      PublicSubnet2Id     : "subnet-02a7e4641b2e5bc13"
      PrivateSubnet1Id    : "subnet-0f0f73fdb8b31271d"
      PrivateSubnet2Id    : "subnet-02f5e6f3024809a98"

    template: templates/jfrog-artifactory-ec2-existing-vpc.template.yaml


  rt-xray-ec2-marketplace:
    parameters:
      DatabasePassword: "$[taskcat_genpass_8A]"
      DatabaseInstance: "db.m5.large"
      NumberOfSecondary: "2"
      ArtifactoryServerName: "artifactory"
      SmLicenseCertName: "jfrog-artifactory"
      MultiAzDatabase: "true"
      # InstallXray: "false"
      # XrayNumberOfSecondary: 1
      AvailabilityZones: "us-east-1a, us-east-1b"
    template: templates/jfrog-artifactory-ec2-marketplace-main.template.yaml

  artifactory-pro-new-vpc:
    parameters:
      InstallXray         : "true"
      AvailabilityZones   : "$[taskcat_genaz_2]"
    template              : templates/jfrog-artifactory-pro-ec2-new-vpc-main.template.yaml

  artifactory-pro-existing-vpc:
    parameters:
      InstallXray         : "true"

      # us-east-1
      AvailabilityZones   : "us-east-1a, us-east-1b"
      VpcId               : "vpc-0df1d896364490643"
      PublicSubnet1Id     : "subnet-05e222926ec99d3c3"
      PublicSubnet2Id     : "subnet-02a7e4641b2e5bc13"
      PrivateSubnet1Id    : "subnet-0f0f73fdb8b31271d"
      PrivateSubnet2Id    : "subnet-02f5e6f3024809a98"

      PrivateSubnet1Cidr  : "10.0.0.0/19"
      PrivateSubnet2Cidr  : "10.0.32.0/19"
    template              : templates/jfrog-artifactory-pro-ec2-existing-vpc-main.template.yaml