-
-
Notifications
You must be signed in to change notification settings - Fork 237
Enable system manager #2063
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
base: develop
Are you sure you want to change the base?
Enable system manager #2063
Changes from all commits
9ce0952
a5cbdb7
6c768a2
d7bcbbd
06c59ee
c1926d2
bb4c447
f584db8
ba3e9f9
8ea093e
e2c5ef7
deaa9c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||
| - name: Check if nix is installed | ||||||||||||||||||||||||||||
| ansible.builtin.command: which nix | ||||||||||||||||||||||||||||
| register: nix_installed | ||||||||||||||||||||||||||||
| failed_when: nix_installed.rc != 0 | ||||||||||||||||||||||||||||
| ignore_errors: true | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| - name: Install nix | ||||||||||||||||||||||||||||
| ansible.builtin.shell: curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | sh -s -- install --no-confirm --extra-conf 'substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com' --extra-conf 'trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' | ||||||||||||||||||||||||||||
| when: nix_installed.rc != 0 | ||||||||||||||||||||||||||||
| become: true | ||||||||||||||||||||||||||||
|
Comment on lines
+2
to
+11
|
||||||||||||||||||||||||||||
| - name: Check if nix is installed | |
| ansible.builtin.command: which nix | |
| register: nix_installed | |
| failed_when: nix_installed.rc != 0 | |
| ignore_errors: true | |
| - name: Install nix | |
| ansible.builtin.shell: curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | sh -s -- install --no-confirm --extra-conf 'substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com' --extra-conf 'trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' | |
| when: nix_installed.rc != 0 | |
| become: true | |
| # This file previously contained Nix setup tasks but was never referenced | |
| # by any playbook/import, so the tasks were dead code and could drift out | |
| # of sync. It has been intentionally left empty to avoid unused tasks. |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,14 @@ | ||||||||||
| --- | ||||||||||
| - name: Install system-manager from binary cache | ||||||||||
| ansible.builtin.shell: | | ||||||||||
| . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh | ||||||||||
| nix profile add --accept-flake-config "github:supabase/postgres/{{ git_commit_sha }}#system-manager" | ||||||||||
samrose marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
| become: true | ||||||||||
|
|
||||||||||
| - name: Build and activate system-manager config | ||||||||||
| ansible.builtin.shell: | | ||||||||||
| . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh | ||||||||||
| STORE_PATH=$(nix build --accept-flake-config --no-link --print-out-paths "github:supabase/postgres/{{ git_commit_sha }}#systemConfigs.$(nix eval --raw nixpkgs#system).default") | ||||||||||
| system-manager register --store-path "$STORE_PATH" --sudo | ||||||||||
| system-manager activate --store-path "$STORE_PATH" --sudo | ||||||||||
|
Comment on lines
+12
to
+13
|
||||||||||
| system-manager register --store-path "$STORE_PATH" --sudo | |
| system-manager activate --store-path "$STORE_PATH" --sudo | |
| system-manager register --store-path "$STORE_PATH" | |
| system-manager activate --store-path "$STORE_PATH" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,9 +10,9 @@ postgres_major: | |||||||||||||||
|
|
||||||||||||||||
| # Full version strings for each major version | ||||||||||||||||
| postgres_release: | ||||||||||||||||
|
||||||||||||||||
| postgres_release: | |
| postgres_release: | |
| postgresorioledb-17: "17.6.0.053-orioledb" | |
| postgres17: "17.6.1.096" | |
| postgres15: "15.14.1.096" | |
| postgres_release_full: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The
trusted-public-keysvalue contains an extra%character (...YleiaLI=% ...), which does not match the key used elsewhere in the repo and will likely break Nix’s signature verification / nix.conf parsing. Please remove the%so the key remains exactly...YleiaLI=.