Created
May 4, 2017 09:42
-
-
Save kshirato/4e7d97d323d3079c64ca0658f5248aa5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 SEQUENCE CONFIGURATIONS START | |
# ENDの設定のところまではDVDメディア、USBメディアに同梱している場合にのみ有効になる設定。 | |
# PXEブートの場合はこのセクションは無視される。 | |
# この場合はpxelinuxのconfigのappendに直接記述する必要がある。 | |
#=========================================================================================== | |
d-i debian-installer/language string en | |
d-i debian-installer/country string US | |
d-i debian-installer/locale string en_US.UTF-8 | |
d-i localechooser/supported-locales en_US.UTF-8 | |
d-i console-setup/ask_detect boolean false | |
d-i console-setup/layoutcode string us | |
d-i console-setup/charmap select UTF-8 | |
# キーボードレイアウトの特性の設定(日本語キーボード) | |
#d-i keyboard-configuration/layoutcode string jp | |
#d-i keyboard-configuration/modelcode jp106 | |
#=========================================================================================== | |
# ネットワークまわりの設定 | |
#------------------------------------------------------------------------------------------- | |
#------------------------------------------------------------------------------------------- | |
# DHCPのとき | |
#------------------------------------------------------------------------------------------- | |
d-i netcfg/choose_interface select eth0 | |
d-i netcfg/disable_autoconfig boolean false | |
d-i netcfg/get_hostname string openstack | |
d-i netcfg/get_domain string sv.pg1x.com | |
d-i netcfg/wireless_wep string | |
# いったんリセット | |
d-i preseed/run string http://gist.github.com/wnoguchi/6577937/raw/prescript.sh | |
#=========================================================================================== | |
# BOOT SEQUENCE CONFIGURATIONS END | |
#=========================================================================================== | |
# インストーラパッケージをダウンロードするミラーを選択する | |
#d-i mirror/protocol http | |
d-i mirror/country string manual | |
d-i mirror/http/hostname string jp.archive.ubuntu.com | |
d-i mirror/http/directory string /ubuntu/ | |
d-i mirror/http/proxy string | |
# インストールするスイートを選択 | |
d-i mirror/suite precise | |
d-i clock-setup/utc boolean false | |
d-i time/zone string Japan | |
d-i clock-setup/ntp boolean false | |
#=========================================================================================== | |
# PARTMAN PARTITIONING SECTION START | |
#=========================================================================================== | |
# すべてのRAIDデバイス構成を破棄する | |
d-i partman-md/device_remove_md boolean true | |
# すべてのLVMデバイス構成を破棄する | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
# RAIDアレイを構成するディスクを並べる | |
d-i partman-auto/disk string /dev/sda /dev/sdb | |
# RAIDを構成する | |
d-i partman-auto/method string raid | |
d-i partman-md/confirm boolean true | |
# LVMの設定 | |
d-i partman-lvm/confirm boolean true | |
# 確保したLVMの領域をどれだけ使用するかを指定する | |
# ボリュームグループ内に空きを残す場合: | |
# - 搭載メモリが増えてswapを増やす必要が出た | |
# - rootパーティションを拡張したい | |
# のちのち論理ボリュームを拡張するのに便利である。 | |
# ここでは | |
# rootパーティション(100GB + 5GB) + swapパーティション32GB = 137GB | |
# としている。 | |
#d-i partman-auto-lvm/guided_size string 140288 | |
# めいっぱい使う場合: | |
d-i partman-auto-lvm/guided_size string max | |
# レシピの選択 | |
d-i partman-auto/choose_recipe select boot-root | |
# ボリュームグループの名前を設定 | |
d-i partman-auto-lvm/new_vg_name string volume_group00 | |
# レシピの記述 | |
# ルートパーティションは正確な計算の上では誤差が出るから | |
# 80GB~100GBの間で可変になるようにしている | |
d-i partman-auto/expert_recipe string \ | |
boot-root :: \ | |
1024 20 1024 raid \ | |
$lvmignore{ } \ | |
$primary{ } \ | |
$bootable{ } \ | |
method{ raid } \ | |
format{ } \ | |
. \ | |
131568 100 100000000 raid \ | |
$lvmignore{ } \ | |
$primary{ } method{ raid } \ | |
. \ | |
102400 10000 102400 ext4 \ | |
$defaultignore{ } \ | |
$lvmok{ } \ | |
lv_name{ root } \ | |
method{ format } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ ext4 } \ | |
mountpoint{ / } \ | |
. \ | |
32768 40 32768 swap \ | |
$defaultignore{ } \ | |
$lvmok{ } \ | |
lv_name{ swap } \ | |
method{ swap } \ | |
format{ } \ | |
. | |
d-i partman-auto-raid/recipe string \ | |
0 2 0 ext4 /boot \ | |
/dev/sda1#/dev/sdb1 \ | |
. \ | |
0 2 0 lvm - \ | |
/dev/sda2#/dev/sdb2 \ | |
. | |
d-i mdadm/boot_degraded boolean false | |
d-i partman-md/confirm boolean true | |
d-i partman-partitioning/confirm_write_new_label boolean true | |
d-i partman/choose_partition select Finish partitioning and write changes to disk | |
d-i partman/confirm boolean true | |
d-i partman-md/confirm_nooverwrite boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
#=========================================================================================== | |
# PARTMAN PARTITIONING SECTION END | |
#=========================================================================================== | |
d-i base-installer/install-recommends boolean true | |
d-i base-installer/kernel/image string linux-generic | |
d-i passwd/root-login boolean true | |
d-i passwd/make-user boolean false | |
d-i passwd/root-password password password | |
d-i passwd/root-password-again password password | |
d-i passwd/user-fullname string testuser | |
d-i passwd/username string testuser | |
d-i passwd/user-password password insecure | |
d-i passwd/user-password-again password insecure | |
d-i user-setup/allow-password-weak boolean true | |
d-i user-setup/encrypt-home boolean false | |
d-i apt-setup/use_mirror boolean true | |
d-i debian-installer/allow_unauthenticated boolean true | |
tasksel tasksel/first multiselect none | |
d-i pkgsel/include string openssh-server build-essential | |
d-i pkgsel/upgrade select none | |
d-i pkgsel/update-policy select none | |
d-i pkgsel/install-language-support boolean true | |
popularity-contest popularity-contest/participate boolean false | |
d-i pkgsel/updatedb boolean true | |
# GRUBインストーラー | |
d-i grub-installer/grub2_instead_of_grub_legacy boolean true | |
d-i grub-installer/only_debian boolean false | |
d-i grub-installer/bootdev string /dev/sda /dev/sdb | |
# インストールが終了したらサーバー再起動 | |
d-i finish-install/reboot_in_progress note |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment