Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key "hostname" and "network" unavailable #60

Closed
cmonty14 opened this issue Jan 21, 2020 · 1 comment
Closed

Key "hostname" and "network" unavailable #60

cmonty14 opened this issue Jan 21, 2020 · 1 comment
Labels
question Further information is requested

Comments

@cmonty14
Copy link

Hi,
I want to generate an ignition file from this FCC file:

root@ld3955:/home# more config.yml
variant: fcos
version: 1.0.0

hostname: vm191-fcos

passwd:
  users:
    - name: "core"
      groups: [ sudo, docker ]
      ssh_authorized_keys:
        - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA [...]

network:
  version: 1
  config:
    - type: physical
      name: eth0
      subnets:
        - type: static
          address: 192.168.100.191/24
          gateway: 192.168.100.11
    - type: nameserver
      address:
        - 8.8.8.8

However fcct reports that key "hostname" and "network" are not available.

root@ld3955:/home# fcct --input config.yml
warning at $.hostname, line 4 col 1: Unused key hostname
warning at $.network, line 13 col 1: Unused key network

Question:
How can I configure a static network in ignition file?

This is required as no DHCP service is available.

THX

@bgilbert bgilbert added the question Further information is requested label Jan 21, 2020
@bgilbert
Copy link
Contributor

Those keys don't exist in the FCC specification. You can configure networking by using Ignition to write a NetworkManager key file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants