/dev/mirror/gm0p1
/dev/ada0p1
/dev/ada1p1
/dev/mirror/gm0p2
/dev/ada0p2
/dev/ada1p2
/dev/mirror/gm0p3
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
# /boot/loader.conf | |
### lagg | |
if_lagg_load="YES" |
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
# /etc/rc.conf | |
vlans_em0="10" | |
ifconfig_em0_10="inet 192.168.10.1/24" | |
vlans_em1="20" | |
ifconfig_em1_20="inet 192.168.20.1/24" | |
vlans_em2="10 20" | |
ifconfig_em2_10="inet 192.168.10.2/24" |
- bootonly.iso イメージから作成した CD などで起動する
- Shell を選択する
- 以下のコマンドを順番に実行する
- dhclient em0
- fetch --no-verify-peer -o /tmp/setup https://goo.gl/32tS1C
- sh /tmp/setup
- OSインストール完了後に自動的に再起動される
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
#!/bin/sh | |
# /usr/local/etc/ipfw.rules | |
### default network | |
IF="lagg0" | |
GW="192.168.0.254" | |
IP="192.168.0.10" | |
### alias network #1 |
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
## Rake | |
## タスク一覧から実行するタスクを選択できるようにした | |
alias pake='LINE=$(rake -T |awk '\''{print $2}'\'' | peco); rake ${LINE}' | |
## test-kitchen | |
## 各サブコマンドからインスタンスを選択できるようにした | |
if command -v kitchen &>/dev/null; then | |
function kitchen_wrapper() { |
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
--- | |
- hosts: 127.0.0.1 | |
connection: local | |
tasks: | |
- name: Make sure using latest Homebrew | |
shell: "brew update" | |
- name: Update already-installed formula | |
shell: "brew upgrade" |
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
nwdiag { | |
network 主電源 { | |
address = "NEMA L5-30R 40A/100V"; | |
UPS01 [address = "Rack Connector01"]; | |
UPS02 [address = "Rack Connector04"]; | |
} | |
network PDU01 { | |
address = "NEMA L5-15R 30A/100V"; |
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
function ansible-playbook_wrapper() { | |
if [ $(git log -n 1 >/dev/null 2>&1 ; echo $?) -eq 0 ]; then | |
\ansible-playbook $@ -e "playbook_version=$(git log -n 1 | head -n 1 | awk -F " " '{print $2}')" | |
else | |
\ansible-playbook $@ | |
fi | |
} | |
alias ansible-playbook=ansible-playbook_wrapper |
NewerOlder