{
  "config": {
    "type": "object",
    "properties": {
      "content": {
        "type": [
          "string",
          "object"
        ],
        "description": "Content to write inside the repository definition file."
      },
      "clean": {
        "type": "string",
        "description": "Globing expression used to match replaced files. When relative, the path is relative to the target parent directory, eg `/etc/yum.repos.d` when the target is a filename."
      },
      "gpg_dir": {
        "type": "string",
        "default": "/etc/pki/rpm-gpg",
        "description": "Directory storing GPG keys."
      },
      "gpg_key": {
        "type": "string",
        "description": "Import specified key into the gpg_dir specified, downloads the file if it's an url."
      },
      "local": {
        "$ref": "module://@nikitajs/file#/definitions/config/properties/local",
        "default": false,
        "description": "Import file from local host to remote host, only active if source is a file and with an SSH connection."
      },
      "location": {
        "$ref": "module://@nikitajs/file/download#/definitions/config/properties/location",
        "default": true
      },
      "source": {
        "type": "string",
        "description": "The source file containing the repository definition file."
      },
      "target": {
        "type": "string",
        "description": "Path of the repository definition file, relative to '/etc/yum.repos.d'."
      },
      "update": {
        "type": "boolean",
        "default": false,
        "description": "Run yum update enabling only the ids present in repo file."
      },
      "verify": {
        "type": "boolean",
        "default": true,
        "description": "Download the PGP keys if it's enabled in the repo file, keys are by default placed inside \"/etc/pki/rpm-gpg\" defined by the gpg_dir option and the filename is derivated from the url."
      }
    },
    "oneOf": [
      {
        "required": [
          "content"
        ]
      },
      {
        "required": [
          "source"
        ]
      }
    ]
  }
}
