-
Notifications
You must be signed in to change notification settings - Fork 0
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
262 nix fix #263
262 nix fix #263
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave a comment or a name where the /nix directory gets shared to everything as ro? I think I missed it in initial pass.
playbooks/install_nix.yml
Outdated
- name: Get nix version | ||
hosts: slurm_backup | ||
hosts: login | ||
become: true | ||
tasks: | ||
- shell: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave a comment for this line:
"nix_version_on_system: "{{ (nix_version_output.stdout_lines[0].split(' '))[2] }}""
It looks fugly.
What if nix changes the way it's formatted it's output? Can it pass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. There is no guarantee that we will be able to parse the version correctly if the output format changes.
I've rewritten it to just check if Nix is installed or not. Also removed the crazy parser line. Much cleaner too.
playbooks/install_nix.yml
Outdated
fstype: none | ||
opts: bind | ||
state: mounted | ||
- name: Install Nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recursion? Looks weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the name from the task.
playbooks/install_nix.yml
Outdated
|
||
- name: Link /var/run/nix and /data/nix/var/nix/daemon-socket dirs | ||
hosts: slurm_backup | ||
- hosts: login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't these have names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added names.
playbooks/install_nix.yml
Outdated
# install nix | ||
- name: Install Nix | ||
hosts: slurm_backup | ||
- hosts: bastion, slurm_backup, compute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added name.
playbooks/install_nix.yml
Outdated
@@ -1,143 +1,110 @@ | |||
--- | |||
|
|||
- name: Get nix version | |||
hosts: slurm_backup | |||
- name: Check whether is already installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whether nix is installed
|
||
- name: Remove files and dirs created by Nix | ||
hosts: slurm_backup | ||
hosts: all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused I thought the files were only created on the login node then get shared to the others. Do they get physically chopped to all machines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only shared but there is a /nix
dir on all nodes that I need to remove. I included all since it wouldn't hurt to run the other plays.
The latest changes (34baa44) have been tested in a dev cluster.
|
@steven-basart Steps I performed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
34baa44
to
be00567
Compare
Rebased to one commit. Merged. |
Rewrote playbooks to install Nix on boot volume of login node. Removed socat. Set Flakes flag to false.