ansible role sys_tuned
1.0.0
บทบาทของ Ansible ในการติดตั้งและกำหนดค่าการปรับแต่ง
Tuned เป็นเครื่องมือที่ทรงพลังมากในการกำหนดค่าพารามิเตอร์เคอร์เนลและระบบ Linux
บทบาทนี้ติดตั้งปรับและตั้งค่าโปรไฟล์ที่เหมาะสมสำหรับระบบ
โมดูลที่ใช้:
ติดตั้งจาก Ansible Galaxy
ansible-galaxy install while_true_do.sys_tuned
ติดตั้งจาก GitHub
git clone https://github.com/while-true-do/ansible-role-sys_tuned.git while_true_do.sys_tuned
---
# defaults file for while_true_do.sys_tuned
## Package Management
wtd_sys_tuned_packages:
- tuned
- tuned-profiles-cpu-partitioning
# State can be present|latest|absent
wtd_sys_tuned_packages_state: "present"
## Service Management
wtd_sys_tuned_service: "tuned"
# State can be started|stopped|restarted
wtd_sys_tuned_service_state: "started"
wtd_sys_tuned_service_enabled: true
## Configuration Management
# Which profile to use
# auto|balanced|virt-guest|powersave|hpc-compute|desktop|etc...
wtd_sys_tuned_profile: "auto"
การเรียกใช้บทบาท Ansible สามารถทำได้ใน playbook
---
- hosts: all
roles:
- role: while_true_do.sys_tuned
การทดสอบ "ทั่วไป" ส่วนใหญ่อยู่ในห้องสมุดทดสอบ
การทดสอบเฉพาะ ANSIBLE จะทำกับโมเลกุล
การทดสอบโครงสร้างพื้นฐานทำด้วย testinfra
การทดสอบอัตโนมัติจะทำกับ Travis CI
ขอบคุณมากที่พิจารณามีส่วนร่วม เรามีความสุขมากเมื่อมีคนเข้าร่วมการทำงานหนัก โปรดลดข้อบกพร่องในการเปิดตัวคุณลักษณะคำขอหรือดึงคำขอหลังจากอ่านแนวทางการบริจาค
ดูว่าใครมีส่วนร่วมใน kudos.txt แล้ว
งานนี้ได้รับใบอนุญาตภายใต้ใบอนุญาต BSD-3-Clause