Commit Graph

37 Commits

Author SHA1 Message Date
Sandro
3f91911972
Remove note about unstable nix version
The current stable nix version supports flakes.
2024-01-09 22:51:41 +01:00
Roman Melnikov
56ba8c3929
[Chore] Add missing documentation for timeout options
Problem: README misses documentation for 'confirmTimeout' and
'activationTimeout'.

Solution: Mention them in README.
2023-12-20 13:55:53 +01:00
Roman Melnikov
31c32fb295
Merge pull request #231 from serokell/rvem/#201-dont-hardcode-profile-directory
[#201] Deduce profile directory during activation
2023-09-12 12:15:07 +02:00
Roman Melnikov
f26e888c41
[#201] Deduce profile directory during activation
Problem: Since https://github.com/NixOS/nix/pull/5226 nix profiles for
users are stored in 'XDG_STATE_HOME' or 'HOME' directory. However,
'deploy-rs' still expects profiles to be present in
'/nix/var/nix/profiles/per-user'. As a result, an attempt to deploy a
profile with newer nix may fail with an error about non-existing files.

Solution: Instead of deducing the profile path prior to ssh'ing and
actual activation, deduce the path to the profile during as a part of
'activate-rs' invocation.

Now if the profile path is not specified explicitly as an attribute in
profile within the deploy flake, the path to the profile is determined
based on the user to which the profile belongs and on the values of
'XDG_STATE_HOME' and 'HOME' variables.
Additionally, if the old profile directory (in
'/nix/var/nix/profiles/per-user') for a given user already exists, it is
used instead for the sake of backward compatibility.
2023-09-12 12:00:17 +02:00
Derek Mahar
d0cfc042eb
Update README.md (#227)
Replace "eachother" with "each other".
2023-09-08 09:34:30 +02:00
Flakebi
03b02d2097
Make it possible to not rebuild deploy-rs
Use the deploy-rs from the final packages set. This can avoid rebuilding
deploy-rs when using it in a nixos config. It can use the version cached
in nixpkgs.

Also add instructions to the readme on how to craft an overlay that uses
nixpkgs deploy-rs.
2023-04-16 16:38:12 +02:00
Philipp Herzog
d0c8665042
Add option to build on the remote host 2022-11-18 13:41:54 +01:00
Yang, Bo
0868184b03
Fix a typo 2022-05-08 23:01:25 -07:00
Andrew Fontaine
874af9b05b
Add custom sudo command support
This is useful for nodes that utilize `doas` instead of `sudo`.
2022-01-28 16:18:12 -05:00
Markus Läll
c9e68bb39e
Fix typo 2022-01-11 17:49:27 +02:00
Yannik Sander
1a2d35be27 Add multi node support
Run multiple deployments in sequence

Resolve targets later

Extend context by deployed flake

Apply clippy suggestions

Add revoke command builder

Track succeeded deploys

Add revoke function

Register revoke error as deploy error

Prepare revoke command in activate

Extend logger to handle revoke

Implement revoke command client side

Run revoke on previously suceeded

Control whether to override by flag

Adhere profile configuration auto_rollback setting

Cargo fmt

Correctly provide profile path to activation script when revoking

Document multi flake mode in README

Resolve a typo in README.md

Co-authored-by: notgne2 <gen2@gen2.space>

Use existing teminology

rename revoke_suceeded -> rollback_suceeded

Use more open CLI argument name `targets` instead of `flakes`

Document name changes in README

Add sudo command support for revokes

Call run_deploy with `dry_active` flag

Test revoke commands contains sudo

Set default temp_path in activate binary

Require temp_path for wait and activate subcommands

Add copyright comment

Address review change requests

Fix typo in README

Co-authored-by: Alexander Bantyev <balsoft@balsoft.ru>
2021-06-22 13:41:15 +02:00
Alexander Bantyev
2a7cef6c29
Mention the matrix channel in the README 2021-06-06 16:04:12 +03:00
notgne2
fc77473568
Add note about shell escaping quoted hostname or profile names 2021-01-24 18:24:31 -07:00
notgne2
3b08cef157
Document quotating profile or hostnames with a . in CLI (closes #10) 2021-01-01 19:35:22 -07:00
notgne2
e633fc9d65
Add logo, remove early-development notice 2020-12-15 12:23:39 -07:00
Steven Roose
dc466f2688 README: Fix example 2020-12-07 17:17:14 -07:00
notgne2
ed97d54648
Remove references to setActivate from README 2020-11-22 22:02:12 -07:00
notgne2
cb50d98884
Use /tmp as temp directory, not /tmp/deploy-rs (resolves #8 by deprecation) 2020-11-22 18:32:04 -07:00
notgne2
c15470560e
Update README to document Magic Rollback better, and demonstrate extra Nix arguments 2020-11-14 16:45:07 -07:00
notgne2
78c020b50b
Remove "TODO" from README 2020-11-14 16:26:24 -07:00
notgne2
47978fcfc9
Re-order link to examples in overall usage section in README 2020-11-10 23:16:17 -07:00
notgne2
0919b1bf6b
Re-order overall usage description in README 2020-11-10 23:15:09 -07:00
notgne2
5160cbd0da
Improve language in README regarding overriding the hostname
Co-authored-by: Christian Höppner <mkaito@users.noreply.github.com>
2020-11-10 16:29:32 -07:00
notgne2
05b8e9ecf3
Fix setActivate documentation in README.md 2020-11-10 16:27:45 -07:00
notgne2
d9d6310435
Remove bootstrap 2020-11-07 13:02:05 -07:00
notgne2
faa02fe6b5
Add note about profilesOrder functionality 2020-11-07 12:01:40 -07:00
notgne2
6ff3994dbb
Greatly expand documentation 2020-11-07 11:56:22 -07:00
notgne2
4c18565a8c
Mark UI off the TODO 2020-10-29 10:53:57 -07:00
notgne2
73d14d456f
Add TODO for remote building 2020-10-23 22:45:05 -07:00
notgne2
32cd88fdc0
Add note about activate in README 2020-10-23 15:05:56 -07:00
notgne2
75449025be
Mark magic rollback off the checklist 2020-10-13 19:10:58 -07:00
notgne2
867438bfc0
Document profilePath option 2020-10-10 10:42:14 -07:00
notgne2
219d55e99e Minor flake and documentation fixes 2020-10-08 20:01:01 -07:00
notgne2
518f7f5b4f Update documentation 2020-10-08 18:14:47 -07:00
notgne2
1de1ad5ff8
Update GitHub URL in README 2020-10-05 19:55:01 -07:00
notgne2
8d21dd335e Add license information, reformat Nix files, clean up 2020-09-29 15:10:06 -07:00
notgne2
0f66998823
add README.md 2020-09-28 16:35:27 -07:00