Debian Codegraph @

ansible_collections/theforeman/foreman/roles/manifest/README.md

raw symbols SCIP
1 theforeman.foreman.manifest
2 ===========================
3
4 Upload Subscription Manifest
5
6 Role Variables
7 --------------
8
9 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
10
11 - `foreman_manifest_path`: Path to subscription Manifest file on Ansible target host. When using `manifest_download`, it is first downloaded to this location from the Red Hat Customer Portal before being uploaded to the Foreman server.
12 - `foreman_manifest_download`: Whether to first download the Manifest from the Red Hat Customer Portal. Defaults to `False`.
13 - `foreman_manifest_uuid`: UUID of the Manifest to download, corresponding to a [Subscription Allocation](https://access.redhat.com/management/subscription_allocations) defined on your Red Hat account. Required when `manifest_download` is `True`.
14 - `foreman_rhsm_username`: Your username for the Red Hat Customer Portal. Required when `foreman_manifest_download` is `true`.
15 - `foreman_rhsm_password`: Your password for the Red Hat Customer Portal. Required when `foreman_manifest_download` is `true`.
16
17 Example Playbooks
18 -----------------
19
20 Use a Subscription Manifest which has already been downloaded on localhost at `~/manifest.zip`:
21
22 ```yaml
23 - hosts: localhost
24 roles:
25 - role: theforeman.foreman.manifest
26 vars:
27 foreman_server_url: https://foreman.example.com
28 foreman_username: "admin"
29 foreman_password: "changeme"
30 foreman_organization: "Default Organization"
31 foreman_manifest_path: "~/manifest.zip"
32 ```
33
34 Download the Subscription Manifest from the Red Hat Customer Portal to localhost before uploading to Foreman server:
35
36 ```yaml
37 - hosts: localhost
38 roles:
39 - role: theforeman.foreman.manifest
40 vars:
41 foreman_server_url: https://foreman.example.com
42 foreman_username: "admin"
43 foreman_password: "changeme"
44 foreman_organization: "Default Organization"
45 foreman_manifest_path: "~/manifest.zip"
46 foreman_manifest_download: true
47 foreman_rhsm_username: "happycustomer"
48 foreman_rhsm_password: "$ecur3p4$$w0rd"
49 foreman_manifest_uuid: "01234567-89ab-cdef-0123-456789abcdef"
50 ```
51
52 Download the Subscription Manifest from the Red Hat Customer Portal, via a proxy, to localhost before uploading to Foreman server:
53
54 ```yaml
55 - hosts: localhost
56 roles:
57 - role: theforeman.foreman.manifest
58 environment:
59 https_proxy: "http://proxy.example.com:3128"
60 no_proxy: "foreman.example.com"
61 vars:
62 foreman_server_url: https://foreman.example.com
63 foreman_username: "admin"
64 foreman_password: "changeme"
65 foreman_organization: "Default Organization"
66 foreman_manifest_path: "~/manifest.zip"
67 foreman_manifest_download: true
68 foreman_rhsm_username: "happycustomer"
69 foreman_rhsm_password: "$ecur3p4$$w0rd"
70 foreman_manifest_uuid: "01234567-89ab-cdef-0123-456789abcdef"
71 ```