command:
  which-solr:
    exec: which solr
    exit-status: 0
    stdout:
      - "/opt/bitnami/solr/bin/solr"
    stderr: [ ]
    timeout: 40000
  solr-version-ok:
    exec: solr version | grep --quiet "$APP_VERSION"
    exit-status: 0
    stdout: [ ]
    stderr: [ ]
    timeout: 40000
  solr-assert-running:
    exec: SOLR_AUTH_TYPE=basic SOLR_AUTHENTICATION_OPTS="-Dbasicauth=${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" solr assert --cloud "http://localhost:${SOLR_PORT_NUMBER}/solr/"
    exit-status: 0
    stdout: [ ]
    stderr: [ ]
    timeout: 40000
  solr-create-collection:
    exec: SOLR_AUTH_TYPE=basic SOLR_AUTHENTICATION_OPTS="-Dbasicauth=${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" /opt/bitnami/solr/bin/solr create_collection -c "test.${RANDOM}"
    exit-status: 0
    stdout:
      - "Created collection"
    stderr: [ ]
    timeout: 40000
file:
  /opt/bitnami/solr/server:
    filetype: directory
    exists: true
  /opt/bitnami/solr/server/solr/solr.xml:
    mode: "0644"
    filetype: file
    exists: true
  /opt/bitnami/solr/server/solr/zoo.cfg:
    mode: "0644"
    filetype: file
    exists: true