Skip to content

Instantly share code, notes, and snippets.

@onodai145
Last active November 8, 2015 03:15
Show Gist options
  • Save onodai145/04d16057c8176dfc4503 to your computer and use it in GitHub Desktop.
Save onodai145/04d16057c8176dfc4503 to your computer and use it in GitHub Desktop.
#cloud-config
# ホスト名
hostname: CoreOS
coreos:
units:
# ネットワーク設定
- name: 10-static.network
runtime: no
content: |
[Match]
Name=enp0s25 # 環境により変化
[Network]
Address=x.x.x.x/x
Gateway=x.x.x.x
DNS=x.x.x.x
users:
# 追加したいユーザ名を指定
- name: "user"
# openssl passed -1 {yourpassword} の結果を貼り付け
passwd: "$6$5s2u6/jR$un0AvWnqilcgaNB3Mkxd5yYv6mTlWfOoCYHZmfi3LDKVltj.E8XNKEcwWm..."
groups:
- "sudo"
- "docker"
# SSH公開鍵を指定
ssh-authorized-keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0g+ZTxC7weoIJLUafOgrm+h..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment