Debian Codegraph @

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

raw symbols SCIP
1 theforeman.foreman.compute_resources
2 ====================================
3
4 This role creates and manages Compute Resources.
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 The main data structure for this role is the list of `foreman_compute_resources`. Each `compute_resource` requires the following fields:
12
13 - `name`: The name of the compute resource.
14
15 The following fields are optional and will be omitted by default:
16
17 - `description`: Description of the compute resource
18 - `provider`: Compute resource provider. Required if *state=present_with_defaults*.
19 - `provider_params`: Parameter specific to compute resource provider. Required if *state=present_with_defaults*.
20
21 Each `compute_resource` can also list a number of `images` associated with the compute resource.
22
23 Example Playbooks
24 -----------------
25
26 Create a compute resource for vSphere, with a single image for RHEL 8.4.
27
28 ```yaml
29 - hosts: localhost
30 roles:
31 - role: theforeman.foreman.compute_resources
32 vars:
33 foreman_server_url: https://foreman.example.com
34 foreman_username: "admin"
35 foreman_password: "changeme"
36 foreman_organization: "Default Organization"
37 foreman_compute_resources:
38 - name: "VMware"
39 organizations:
40 - "Default Organization"
41 - "Second Organization"
42 locations:
43 - "Default Location"
44 provider: "vmware"
45 provider_params:
46 url: "vcenter.example.com"
47 user: "[email protected]"
48 password: "changeme"
49 datacenter: "ha-datacenter"
50 images:
51 - name: "RHEL-8.4"
52 operatingsystem: "RedHat-8.4"
53 architecture: "x86_64"
54 user_data: true
55 image_username: "root"
56 image_password: "changeme"
57 uuid: "Templates/rhel-8.4-template"
58 ```