:source: content_upload.py :orphan: .. _content_upload_module: content_upload -- Upload content ++++++++++++++++++++++++++++++++ .. contents:: :local: :depth: 1 Synopsis -------- - Allows the upload of content to a repository Requirements ------------ The below requirements are needed on the host that executes this module. - apypie - python-debian (For deb Package upload) - rpm (For rpm upload) Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
organization
string / required
Organization that the entity is in
password
string / required
Password of the user accessing the Foreman server
product
string / required
Product to which the repository lives in
repository
string / required
Repository to upload file in to
server_url
string / required
URL of the Foreman server
src
path / required
File to upload

aliases: file
username
string / required
Username accessing the Foreman server
validate_certs
boolean
    Choices:
  • no
  • yes ←
Whether or not to verify the TLS certificates of the Foreman server

Notes ----- .. note:: - Currently only uploading to deb, RPM & file repositories is supported - For anything but file repositories, a supporting library must be installed. See Requirements. Examples -------- .. code-block:: yaml+jinja - name: "Upload my.rpm" content_upload: username: "admin" password: "changeme" server_url: "https://foreman.example.com" src: "my.rpm" repository: "Build RPMs" product: "My Product" organization: "Default Organization" Status ------ Authors ~~~~~~~ - Eric D Helms (@ehelms) .. hint:: If you notice any issues in this documentation, you can `edit this document `_ to improve it.