Add AMD cpu role for mrmanager.

This commit is contained in:
Tom Alexander 2023-05-28 16:51:17 -04:00
parent 271428a6f6
commit 433739d768
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
6 changed files with 37 additions and 5 deletions

View File

@ -10,3 +10,4 @@ pf_config: "mrmanager_pf.conf"
pflog_conf:
- name: 0
dev: pflog0
cputype: "amd"

View File

@ -77,3 +77,4 @@
- sshd
- base
- firewall
- cpu

View File

@ -0,0 +1,2 @@
# Read CPU temperature on AMD CPUs.
amdtemp_load="YES"

View File

@ -0,0 +1,29 @@
- name: Install loader.conf
copy:
src: "files/{{ item }}_loader.conf"
dest: "/boot/loader.conf.d/{{ item }}.conf"
mode: 0644
owner: root
group: wheel
loop:
- amdtemp
- name: Install service configuration
copy:
src: "files/{{ item }}_rc.conf"
dest: "/etc/rc.conf.d/{{ item }}"
mode: 0644
owner: root
group: wheel
loop:
- power_profile
- name: Install loader.conf
copy:
src: "files/{{ item }}_loader.conf"
dest: "/boot/loader.conf.d/{{ item }}.conf"
mode: 0644
owner: root
group: wheel
loop:
- aesni

View File

@ -17,16 +17,15 @@
- cpuctl
- aesni
- name: Install Configuration
- name: Install service configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
src: "files/{{ item }}_rc.conf"
dest: "/etc/rc.conf.d/{{ item }}"
mode: 0644
owner: root
group: wheel
loop:
- src: power_profile.conf
dest: /etc/rc.conf.d/power_profile
- power_profile
- name: Install packages
when: hwpstate is defined and not hwpstate