Skip to content

Add Nixible#313

Open
TECHNOFAB11 wants to merge 1 commit into
nix-community:mainfrom
TECHNOFAB11:nixible
Open

Add Nixible#313
TECHNOFAB11 wants to merge 1 commit into
nix-community:mainfrom
TECHNOFAB11:nixible

Conversation

@TECHNOFAB11

Copy link
Copy Markdown
Contributor

Nix-wrapper for Ansible which handles dependencies etc. and lets you define playbooks in Nix.

@cyntheticfox

Copy link
Copy Markdown
Member

I have one major concern with this project, besides this kinda just being a YAML converter and Ansible wrapper:

If I recall correctly, Nix, as a language, does not have ordered lists, such that there are guarantees about list storage or evaluation ordering without using seq or deepSeq. Ansible is very contingent on tasks executing in a specific order (unless you write modules and roles such that the ordering is guaranteed there).

I think this project needs to have guarantees about how the input will line up to the generated YAML to be awesome. Otherwise, the documentation, modularization, and design of the repository itself is quite cool 👀

@TECHNOFAB11

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! But aren't lists in Nix ordered/keep their ordering? Attrsets are impossible to order (they just get ordered alphabetically), but lists always kept their ordering everywhere I used them. The only issue is that it's hard to merge them with the module system, since it cannot know the ordering you intend without any helpers (like mkOrder/mkBefore etc iirc). But I think that's obvious since using lists across multiple files can't have any guaranteed ordering without the user specifying it.

And yeah, the project is nothing special, I'm also fine with closing this since it's like you say mostly just a yaml generator and Ansible wrapper :D

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