-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory_example.yaml
95 lines (86 loc) · 2.75 KB
/
inventory_example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright (C) 2019-2022 Savoir-faire Linux, Inc.
# SPDX-License-Identifier: Apache-2.0
---
all:
vars:
# Variables for test
log_name: tmp0
timeout_test: 30
bin_directory: ~/seapath/plot-sv-log-tools
# Ansible variables
ansible_connection: ssh
# Always connect as root
ansible_user: root
ansible_python_interpreter: /usr/bin/python3
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
# Change according to your setup
image_directory: ~/seapath/images/
# DNS server. Leave it empty to not set the DNS server
dns_server:
# Gateway IP Addr. The variable must be define but can be empty
gateway_addr:
# VLAN use for PTP
ptp_vlan: 20
children:
# Specific to SFL, to retrieve images on the build machine
build_machines:
hosts:
jean:
ansible_host: 192.168.216.4
# Change your username
ansible_user: tsourdin
vars:
# Change according to your path
src_image_path: ~/seapath/build/tmp/deploy/images
pxe_machines:
hosts:
pxe_hypervisor:
# Set IP address according to your setup
# (IP set by the DHCP server in the PXE container)
ansible_host: 192.168.204.95
hypervisors:
hosts:
seapath:
# Set IP address according to your setup
ansible_host: 192.168.202.4
# The network interface that will be used by the hypervisor to
# communicate across the network
network_interface: enp66s0f0
ip_addr: "{{ ansible_host }}"
extra_kernel_parameters: >
isolcpus=4-11 nohz_full=4-11 rcu_nocbs=4-11
default_hugepagesz=1G hugepagesz=1G hugepages=7
intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1
VMs:
# VM group vars
vars:
ansible_user: root
network_interface: enp0s2
ip_addr: "{{ ansible_host }}"
hosts:
guest0:
# On the VLAN used for SV, random mac address
# The last byte of the IP address must be equal to
# the last byte of the MAC address (a script initializes
# the IP on the first VM boot)
ansible_host: 192.168.204.15
port: 8080
cpuset: [8, 9, 10, 11]
ovs_port: br0P0
mac_address: 5e:ff:56:a2:af:15
vm_features:
- rt
- isolated
- dpdk
- task_isolation
other_machines:
hosts:
sender:
ansible_host: 192.168.202.3
ansible_user: sender
ptpmaster:
ansible_host: "192.168.216.127"
# Interface use for PTP
ptp_master_network_interface: eno1
# PTP interface ip address
ptp_master_address: "10.0.25.2"