---
-# file: roles/vexx_hosts/handlers/cimc.yaml
+# file: roles/baremeatal/handlers/cimc.yaml
- name: Boot from network
imc_rest:
---
-# file: roles/vexx_hosts/handlers/ipmi.yaml
+# file: roles/baremetal/handlers/ipmi.yaml
- name: Boot from network
ipmi_boot:
---
-# file: roles/vexx_hosts/handlers/main.yaml
+# file: roles/baremetal/handlers/main.yaml
- name: IPMI specific
import_tasks: ipmi.yaml
owner: 'root'
group: 'root'
mode: '0644'
+ notify:
+ - 'Restart Docker'
when: >
proxy_env is defined and
proxy_env.http_proxy is defined
owner: 'root'
group: 'root'
mode: '0644'
- when: >
- proxy_env is defined and
- proxy_env.https_proxy is defined
- tags: install-docker
-
-- name: Docker - Reload systemd daemon and restart service
- command: 'systemctl daemon-reload'
notify:
- 'Restart Docker'
when: >
proxy_env is defined and
- proxy_env.http_proxy is defined
+ proxy_env.https_proxy is defined
tags: install-docker
- name: Docker - Set specific users to docker group
+++ /dev/null
----
-# file: roles/vexx_hosts/defaults/main.yaml
-
-# provision via cobbler
-provision_enabled: False
-# name_servers is used in /etc/netplan/01-netcfg.yaml
-name_servers: "1.1.1.1, 8.8.8.8"
-
-# Proxy settings: Uncomment and fill the proper values. These variables will be
-# set globally by writing into /etc/environment file on target machine.
-#proxy_env:
-# http_proxy: http://proxy.com:80
-# HTTP_PROXY: http://proxy.com:80
-# https_proxy: http://proxy.com:80
-# HTTPS_PROXY: http://proxy.com:80
-# ftp_proxy: http://proxy.com:80
-# FTP_PROXY: http://proxy.com:80
-# no_proxy: localhost,127.0.0.1,{{ ansible_default_ipv4.address }}
-# NO_PROXY: localhost,127.0.0.1,{{ ansible_default_ipv4.address }}
+++ /dev/null
----
-# file: roles/vexx_hosts/tasks/main.yaml
-
-- name: Ensure the system exists in Cobbler
- cobbler_system:
- host: "{{ cobbler_hostname }}"
- port: 60080
- interfaces:
- br1:
- ipaddress: "{{ ansible_default_ipv4.address }}"
- macaddress: "{{ ansible_default_ipv4.macaddress }}"
- name: "{{ hostname }}"
- password: "{{ cobbler_password }}"
- properties:
- hostname: "{{ hostname }}"
- gateway: "{{ ansible_default_ipv4.gateway }}"
- profile: "{{ cobbler_profile }}"
- name_servers: "{{ name_servers }}"
- kickstart: "/var/lib/cobbler/kickstarts/{{ cobbler_profile }}.seed"
- kernel_options: '"interface={{ ansible_default_ipv4.interface }}"'
- netboot_enabled: yes
- username: "{{ cobbler_username }}"
- use_ssl: no
- validate_certs: no
- when: provision_enabled
- delegate_to: localhost
- tags:
- - cobbler-include
-
-- name: Commit Cobbler changes
- cobbler_sync:
- host: "{{ cobbler_hostname }}"
- port: 60080
- password: "{{ cobbler_password }}"
- username: "{{ cobbler_username }}"
- use_ssl: no
- validate_certs: no
- run_once: yes
- when: provision_enabled
- delegate_to: localhost
- register: __included_in_cobbler
- notify:
- - "Boot from network"
- - "Reboot server"
- tags:
- - cobbler-include
-
-- meta: flush_handlers
---
-# file: roles/sut/defaults/main.yaml
+# file: roles/vpp/defaults/main.yaml
packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
become: yes
become_user: root
roles:
+ - role: baremetal
+ tags: baremetal
- role: common
tags: common
- - role: vexx_hosts
- tags: vexx_hosts
- role: vpp
tags: vpp
- role: dpdk
become: yes
become_user: root
roles:
+ - role: baremetal
+ tags: baremetal
- role: common
tags: common
- - role: vexx_hosts
- tags: vexx_hosts
- role: tg
tags: tg
- role: iperf
become: yes
become_user: root
roles:
+ - role: baremetal
+ tags: baremetal
- role: common
tags: common
- - role: vexx_hosts
- tags: vexx_hosts
- role: docker
tags: docker
- role: vpp_device