Debian Codegraph @

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

raw symbols SCIP
1 theforeman.foreman.compute_profiles
2 ===================================
3
4 This role creates and manages Compute Profiles.
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_profiles`. Each `compute_profile` requires the following fields:
12
13 - `name`: The name of the compute profile.
14
15 The following fields are optional and will be omitted by default:
16
17 - `description`: Description of the compute profile
18 - `compute_attributes`: List of attributes for the profile on specific compute resources.
19
20 Example Playbooks
21 -----------------
22
23 Create a compute profile named `1-Small` with a VMware spec of 1 single core CPU, 2 GiB of memory, 15 GiB of disk, and a VMXNET3 network card connected to `VM Network`:
24
25 ```yaml
26 - hosts: localhost
27 roles:
28 - role: theforeman.foreman.compute_profiles
29 vars:
30 foreman_server_url: https://foreman.example.com
31 foreman_username: "admin"
32 foreman_password: "changeme"
33 foreman_organization: "Default Organization"
34 foreman_compute_profiles:
35 - name: "1-Small"
36 compute_attributes:
37 - compute_resource: "VMware"
38 vm_attrs:
39 cluster: "cluster01"
40 path: /Datacenters/ha-datacenter/vm/
41 memoryHotAddEnabled: true
42 cpuHotAddEnabled: true
43 cpus: 1
44 corespersocket: 1
45 memory_mb: 2048
46 volumes_attributes:
47 0:
48 datastore: "datastore1"
49 size_gb: 15
50 interfaces_attributes:
51 0:
52 type: "VirtualVmxnet3"
53 network: "VM Network"
54 ```