Add AMD cpu role for mrmanager.
This commit is contained in:
parent
271428a6f6
commit
433739d768
@ -10,3 +10,4 @@ pf_config: "mrmanager_pf.conf"
|
|||||||
pflog_conf:
|
pflog_conf:
|
||||||
- name: 0
|
- name: 0
|
||||||
dev: pflog0
|
dev: pflog0
|
||||||
|
cputype: "amd"
|
||||||
|
@ -77,3 +77,4 @@
|
|||||||
- sshd
|
- sshd
|
||||||
- base
|
- base
|
||||||
- firewall
|
- firewall
|
||||||
|
- cpu
|
||||||
|
2
ansible/roles/cpu/files/amdtemp_loader.conf
Normal file
2
ansible/roles/cpu/files/amdtemp_loader.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Read CPU temperature on AMD CPUs.
|
||||||
|
amdtemp_load="YES"
|
29
ansible/roles/cpu/tasks/freebsd_amd.yaml
Normal file
29
ansible/roles/cpu/tasks/freebsd_amd.yaml
Normal 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
|
@ -17,16 +17,15 @@
|
|||||||
- cpuctl
|
- cpuctl
|
||||||
- aesni
|
- aesni
|
||||||
|
|
||||||
- name: Install Configuration
|
- name: Install service configuration
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item }}_rc.conf"
|
||||||
dest: "{{ item.dest }}"
|
dest: "/etc/rc.conf.d/{{ item }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: wheel
|
group: wheel
|
||||||
loop:
|
loop:
|
||||||
- src: power_profile.conf
|
- power_profile
|
||||||
dest: /etc/rc.conf.d/power_profile
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
when: hwpstate is defined and not hwpstate
|
when: hwpstate is defined and not hwpstate
|
||||||
|
Loading…
Reference in New Issue
Block a user