forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add APT mirrors, Time Machine adjustments, hdparm, snapraid
- Loading branch information
Showing
9 changed files
with
113 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
spindown: "120" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Install hdparm | ||
apt: | ||
name: hdparm | ||
state: latest | ||
|
||
- name: Install the hdparm config file | ||
template: | ||
src: hdparm.conf.j2 | ||
dest: /etc/hdparm.conf | ||
mode: 0644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% for device in disks %} | ||
{{ device.src }} { | ||
spindown_time = {{ spindown }} | ||
} | ||
{% endfor %} | ||
{% for device in parity_disks %} | ||
{{ device.src }} { | ||
spindown_time = {{ spindown }} | ||
} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
deb {{ apt_mirror }} {{ version }} main restricted | ||
|
||
deb {{ apt_mirror }} {{ version }}-updates main restricted | ||
|
||
deb {{ apt_mirror }} {{ version }} universe | ||
deb {{ apt_mirror }} {{ version }}-updates universe | ||
|
||
deb {{ apt_mirror }} {{ version }} multiverse | ||
deb {{ apt_mirror }} {{ version }}-updates multiverse | ||
|
||
deb {{ apt_mirror }} {{ version }}-backports main restricted universe multiverse | ||
|
||
deb {{ apt_mirror }} {{ version }}-security main restricted | ||
deb {{ apt_mirror }} {{ version }}-security universe | ||
deb {{ apt_mirror }} {{ version }}-security multiverse |