Skip to content

Commit

Permalink
fix(ansible): run telegraf on intel mev acc
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
  • Loading branch information
glimchb authored May 26, 2024
1 parent 2da7f39 commit 07dcd2f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lab/ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@
hosts: hostservers,tgens,DPUs,Management
become: yes
tasks:

# TODO: re-enable MEV

- name: Install usefull packages
when: inventory_hostname != 'mev'
ansible.builtin.package:
name: python3-pip,sshpass,git
state: present
Expand Down Expand Up @@ -144,6 +148,23 @@
target: /run/emu_param
read_only: true

# TODO: see if there is an opportunity to consolidate and code dup removal

- name: Intel | Run telegraf container on Intel MEV
community.docker.docker_container:
name: telegraf
image: docker.io/library/telegraf:1.29
state: started
restart: true
detach: true
network_mode: host
restart_policy: always
mounts:
- type: bind
source: /root/telegraf.d/telegraf.conf.mev
target: /etc/telegraf/telegraf.conf
read_only: true

# TODO: copy correct telegraf.conf file per host...
#- name: Copy file to host
# ansible.builtin.copy: src=../telegraf.d/telegraf.conf.{{ inventory_hostname }} dest=/root/telegraf.conf.new
Expand Down

0 comments on commit 07dcd2f

Please sign in to comment.