Skip to content

config/types/update.go Added support for more fields in update section#17

Merged
jepio merged 1 commit into
flatcar:flatcar-masterfrom
blackkaven:update_conf
Feb 15, 2022
Merged

config/types/update.go Added support for more fields in update section#17
jepio merged 1 commit into
flatcar:flatcar-masterfrom
blackkaven:update_conf

Conversation

@blackkaven

Copy link
Copy Markdown
Contributor

The following fields are now supported by the update section:

  • PCR_POLICY_SERVER
  • DOWNLOAD_USER
  • DOWNLOAD_PASSWORD
  • MACHINE_ALIAS

also updated doc/configuration.md to reflect those changes.

Signed-off-by: Michael Heinzner michael.heinzner@googlemail.com

How to use

Execute make and execute the steps described in Testing done

Testing done

Transpile the following config.yaml

update:
  download_user: michael
  download_password: password
  machine_alias: mymachine
  pcr_policy_server: some_nonsene
locksmith:
  reboot_strategy: reboot
  window_start: 09:00
  window_length: 1h

this was done with ./bin/ct <config.yaml | jq .

and checked the output for all the necessary fields

@blackkaven

Copy link
Copy Markdown
Contributor Author

Related to flatcar/Flatcar#453

@jepio jepio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for taking a look. The PCRPolicyServer setting is not wired to anything but we can keep it.

If you would adjust the typos in the docs, this can be merged directly.

Comment thread doc/configuration.md Outdated
Comment thread doc/configuration.md Outdated
Comment thread doc/configuration.md Outdated
@blackkaven

Copy link
Copy Markdown
Contributor Author

Looks good, thanks for taking a look. The PCRPolicyServer setting is not wired to anything but we can keep it.

If you would adjust the typos in the docs, this can be merged directly.

If PCRPolicyServer is not wired I could also remove it.
The typos in the docs should now be fixed.

The following fields are now supported by the update section:
* PCR_POLICY_SERVER
* DOWNLOAD_USER
* DOWNLOAD_PASSWORD
* MACHINE_ALIAS

also updated doc/configuration.md to reflect those changes.

Signed-off-by: Michael Heinzner <michael.heinzner@googlemail.com>
@jepio

jepio commented Feb 15, 2022

Copy link
Copy Markdown
Member

Thanks! We should be able to tag a release in the near future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants