はじめに
CoreOSの環境設定について調べていると、user-dataというキーワードが出てきて「なんぞこれ」と思ったので、ちょっと調べました。
user-dataの意味するところ
Discover the full list of OS-level items CoreOS allows you to customize with cloud-config. Browse through our massive database of cloud-config information today!の「Providing Cloud-Config with Config-Drive」に以下の文があります。
CoreOS tries to conform to each platform's native method to provide user data.どうやら、「CoreOSを(環境に)適合させるために「user data」を与える仕組みがある」という事らしいです。
この仕組みの使用例は以下のページに載っています。
- 「Notes for Distributors」の「Handling End-User Cloud-Config Files」
- 「Vagrant」の「Starting a Cluster」の「Cloud-Config」
- VagrantからCoreOSを起動する
user-dataの意味するところ(別の意味)
CoreOSをサポートしているクラウドサービスはいくつかありまして、それらのクラウドサービスで「ユーザが設定したデータ(user data)を、CoreOSの設定に、外側から差し込めまっせ」という文脈で使われていることもあるようです。
- Easily Automate The Provisioning Of Your DigitalOcean Droplets!の「What is user-data?」
- GitHub - coreos/coreos-cloudinit: [DEPRECATED] - Simple configuration tool for Container Linuxの「user-data Field Substitution」
おわりに
なかなか単語の意味を知るのに苦労しました。
たどっていくと、https://coreos.com/docs/cluster-management/setup/cloudinit-config-drive/:=title:config driveとか、また別のキーワードが出てきますし。
(どうやら、「CoreOS tries to conform to each platform's native method to provide user data.」を実現するための手段の一つとして、config driveが存在するっぽい)