Compare commits
4 Commits
fb9d5e2043
...
e84fd15cf2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e84fd15cf2 | ||
![]() |
40437bec04 | ||
![]() |
8bad10eace | ||
![]() |
8a3855fddd |
@ -35,3 +35,18 @@ bhyve_dataset: zdata/vm
|
|||||||
bhyve_canmount: "on"
|
bhyve_canmount: "on"
|
||||||
# efi_dev: /dev/gpt/EFI
|
# efi_dev: /dev/gpt/EFI
|
||||||
devfs_rules: "mrmanager_devfs.rules"
|
devfs_rules: "mrmanager_devfs.rules"
|
||||||
|
users:
|
||||||
|
talexander:
|
||||||
|
initialize: true
|
||||||
|
uid: 11235
|
||||||
|
gid: 11235
|
||||||
|
groups:
|
||||||
|
- name: wheel
|
||||||
|
authorized_keys:
|
||||||
|
- yubikey
|
||||||
|
- main_fido
|
||||||
|
- backup_fido
|
||||||
|
mole:
|
||||||
|
initialize: true
|
||||||
|
authorized_keys:
|
||||||
|
- mole
|
||||||
|
22
ansible/roles/base/files/git_fix_author.bash
Normal file
22
ansible/roles/base/files/git_fix_author.bash
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
git filter-branch --env-filter '
|
||||||
|
WRONG_EMAIL="old@email.foo"
|
||||||
|
NEW_NAME="New Name"
|
||||||
|
NEW_EMAIL="new@email.buzz"
|
||||||
|
|
||||||
|
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
|
||||||
|
then
|
||||||
|
export GIT_COMMITTER_NAME="$NEW_NAME"
|
||||||
|
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
|
||||||
|
fi
|
||||||
|
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
|
||||||
|
then
|
||||||
|
export GIT_AUTHOR_NAME="$NEW_NAME"
|
||||||
|
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
|
||||||
|
fi
|
||||||
|
' --tag-name-filter cat --commit-filter 'git commit-tree -S "$@";' -- --branches --tags
|
@ -47,6 +47,8 @@
|
|||||||
dest: /usr/local/bin/git_find_merged_branches
|
dest: /usr/local/bin/git_find_merged_branches
|
||||||
- src: cleanup_temporary_files
|
- src: cleanup_temporary_files
|
||||||
dest: /usr/local/bin/cleanup_temporary_files
|
dest: /usr/local/bin/cleanup_temporary_files
|
||||||
|
- src: git_fix_author.bash
|
||||||
|
dest: /usr/local/bin/git_fix_author
|
||||||
|
|
||||||
- import_tasks: tasks/freebsd.yaml
|
- import_tasks: tasks/freebsd.yaml
|
||||||
when: 'os_flavor == "freebsd"'
|
when: 'os_flavor == "freebsd"'
|
||||||
|
@ -39,9 +39,9 @@ fi
|
|||||||
|
|
||||||
function cleanup {
|
function cleanup {
|
||||||
for vm in "${vms[@]}"; do
|
for vm in "${vms[@]}"; do
|
||||||
log "Destroying bhyve vm $f"
|
log "Destroying bhyve vm $vm"
|
||||||
bhyvectl "--vm=$vm" --destroy
|
bhyvectl "--vm=$vm" --destroy
|
||||||
log "Destroyed bhyve vm $f"
|
log "Destroyed bhyve vm $vm"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
vms=()
|
vms=()
|
||||||
@ -144,7 +144,7 @@ function start_vm {
|
|||||||
|
|
||||||
# TODO: Look into using nmdm instead of stdio for serial console
|
# TODO: Look into using nmdm instead of stdio for serial console
|
||||||
if [ -n "$mount_cd" ]; then
|
if [ -n "$mount_cd" ]; then
|
||||||
additional_args+=("-s" "4,ahci-cd,$mount_cd")
|
additional_args+=("-s" "5,ahci-cd,$mount_cd")
|
||||||
fi
|
fi
|
||||||
if [ "$VNC_ENABLE" = "YES" ]; then
|
if [ "$VNC_ENABLE" = "YES" ]; then
|
||||||
additional_args+=("-s" "29,fbuf,tcp=$VNC_LISTEN,w=1920,h=1080")
|
additional_args+=("-s" "29,fbuf,tcp=$VNC_LISTEN,w=1920,h=1080")
|
||||||
|
@ -1,13 +1,20 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Tell speedshift whether to maximize CPU performance (100) or energy
|
# Tell speedshift whether to maximize CPU performance (100) or energy
|
||||||
# efficiency (0).
|
# efficiency (0). If set to 101 this will enable turboboost.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
perc=$1
|
perc=$1
|
||||||
|
|
||||||
|
if [ $perc -gt 100 ]; then
|
||||||
|
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
|
perc=100
|
||||||
|
else
|
||||||
|
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $perc -lt 50 ]; then
|
if [ $perc -lt 50 ]; then
|
||||||
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
else
|
else
|
||||||
|
@ -46,8 +46,8 @@ fm1._domainkey IN CNAME fm1.fizz.buzz.dkim.fmhosted.com.
|
|||||||
fm2._domainkey IN CNAME fm2.fizz.buzz.dkim.fmhosted.com.
|
fm2._domainkey IN CNAME fm2.fizz.buzz.dkim.fmhosted.com.
|
||||||
fm3._domainkey IN CNAME fm3.fizz.buzz.dkim.fmhosted.com.
|
fm3._domainkey IN CNAME fm3.fizz.buzz.dkim.fmhosted.com.
|
||||||
|
|
||||||
www IN A 127.0.0.1
|
;www IN A 127.0.0.1
|
||||||
IN AAAA ::1
|
; IN AAAA ::1
|
||||||
|
|
||||||
; Allows email clients to automatically find the correct settings for your account.
|
; Allows email clients to automatically find the correct settings for your account.
|
||||||
|
|
||||||
|
1
ansible/roles/sshd/files/keys/mole.pub
Normal file
1
ansible/roles/sshd/files/keys/mole.pub
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINtEizWWTfTdWJ+f6F2ot27V0ktYAxSCVI6d/tpS6ARw mole@maxwell
|
Loading…
x
Reference in New Issue
Block a user