ユーザ用ツール

サイト用ツール


サイドバー

プログレス合同会社

広告

server:fedora-coreos:install:config.yaml

01 構成ファイル

Fedora CoreOSのインストールで使用している構成ファイルconfig.yamlのサンプルになります。

variant: fcos
version: 1.0.0

passwd:
  users:
  - name:          core
    password_hash: "{PASSWORD}"
    ssh_authorized_keys:
    - "ssh-ed25519 {SSHKEY} Windows PC"

storage:
  files:
  - path:       /etc/NetworkManager/system-connections/eth1.nmconnection
    mode:       0600
    contents:
      inline:   |
        [connection]
        type=ethernet
        interface-name=eth1

        [ipv4]
        method=manual
        addresses=192.168.100.2/24

  - path:       /etc/hostname
    overwrite:  true
    mode:       0644
    contents:
      inline:   "coreos"

  - path:       /etc/hosts
    append:
    - inline:   |
        192.168.100.2   coreos.localnet
        192.168.100.1   glusterfs.localnet
        192.168.100.1   mariadb.localnet
        192.168.100.1   postgresql.localnet

  - path:       /etc/ssh/sshd_config
    append:
    - inline:   |
        #
        LoginGraceTime         20
        PermitRootLogin        no
        AllowUsers             core
        GSSAPIAuthentication   no
        MaxAuthTries           1
        ClientAliveInterval    60

7行目 {PASSWORD}
coreユーザーのパスワードハッシュを設定します。
ConoHaのターミナルからログインする際に使用します。
9行目 {SSHKEY}
SSH接続用の証明書公開鍵を設定します。
13行目~23行目
内部LANのネットワークインターフェース定義です。

server/fedora-coreos/install/config.yaml.txt · 最終更新: 2020/07/10 by プログレス合同会社