repository – Create and manage repositories¶
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
content_type
string
/ required
|
|
The content type of the repository (e.g. yum)
|
deb_architectures
string
|
comma separated list of architectures to be synced from deb-archive
only available for content_type=deb
|
|
deb_components
string
|
comma separated list of repo components to be synced from deb-archive
only available for content_type=deb
|
|
deb_errata_url
string
|
URL to sync Debian or Ubuntu errata information from
only available on Orcharhino
only available for content_type=deb
|
|
deb_releases
string
|
comma separated list of releases to be synced from deb-archive
only available for content_type=deb
|
|
docker_tags_whitelist
list
/ elements=string
|
list of tags to sync for Container Image repository
only available for content_type=docker
|
|
docker_upstream_name
string
|
name of the upstream docker repository
only available for content_type=docker
|
|
download_policy
string
|
|
download policy for sync from upstream
|
gpg_key
string
|
Repository GPG key
|
|
http_proxy
string
|
Name of the http proxy to use for content synching
Should be combined with http_proxy_policy='use_selected_http_proxy'
|
|
http_proxy_policy
string
|
|
Which proxy to use for content synching
|
ignore_global_proxy
boolean
|
|
Whether content sync should use or ignore the global http proxy setting
This is deprecated with Katello 3.13
It has been superseeded by http_proxy_policy
|
label
string
|
label of the repository
|
|
mirror_on_sync
boolean
|
|
toggle "mirror on sync" where the state of the repository mirrors that of the upstream repository at sync time
|
name
string
/ required
|
Name of the repository
|
|
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
|
|
server_url
string
/ required
|
URL of the Foreman server
|
|
ssl_ca_cert
string
|
Repository SSL CA certificate
|
|
ssl_client_cert
string
|
Repository SSL client certificate
|
|
ssl_client_key
string
|
Repository SSL client private key
|
|
state
string
|
|
State of the entity
present_with_defaults will ensure the entity exists, but won't update existing ones |
upstream_password
string
|
password to access upstream repository
|
|
upstream_username
string
|
username to access upstream repository
|
|
url
string
|
Repository URL to sync from
|
|
username
string
/ required
|
Username accessing the Foreman server
|
|
validate_certs
boolean
|
|
Whether or not to verify the TLS certificates of the Foreman server
|
Examples¶
- name: "Create repository"
repository:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "My repository"
state: present
content_type: "yum"
product: "My Product"
organization: "Default Organization"
url: "http://yum.theforeman.org/plugins/latest/el7/x86_64/"
mirror_on_sync: true
download_policy: background
- name: "Create repository with content credentials"
repository:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "My repository 2"
state: present
content_type: "yum"
product: "My Product"
organization: "Default Organization"
url: "http://yum.theforeman.org/releases/latest/el7/x86_64/"
download_policy: background
mirror_on_sync: true
gpg_key: RPM-GPG-KEY-my-product2
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Eric D Helms (@ehelms)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.