Optimization: Derive list of silver-flame host IPs more quickly #18
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Jafner/Jafner.net#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Our Actions workflow to deploy Silver Flame NixOS system configurations uses a naive approach to get the IPs of hosts to add to our known_hosts file.
We evaluate the silver-flame flake, and then print the value of the
deploy.nodes.[hosts].hostname
outputs to a text file.Is it possible to extract a value from the nix attribute tree without evaluating it?
Alternatively, can we make that step unnecessary by automatically accepting host keys in our deploy-rs step?
We can switch to a quick and dirty text search script:
Which should return each of the IPs we have listed in our deploy-rs configuration. This solution is much more fragile, and could break for any number of reasons.
We may find a better solution with
nix-instantiate
. Its--parse
flag seems to behave exactly as lazily as we want.