| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | populate: draw inputs by rewriting lock files, add materialize and patches | tv | 41 hours | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sources drawing inputs from other sources get the lock file of their flake rewritten with nix flake lock --override-input, so the flake in the source itself uses the other sources, and needs no generated flake to be found. file and git sources get their lock file rewritten in place. flake and flake-input sources get delivered as a copy with the rewritten lock file, which gets added to the store with nix-store --add-fixed, and the target path links to that. With rewriteLock set to false, and for symlink sources, the source stays as it is and gets a generated flake in .populate/flakes/<name>, which writeDeploy's flake parameter uses. flake and flake-input sources get two more options: - patches: patches on the deploying machine, which get uploaded to .populate/patches/<name> and applied in order with patch -p1 on the target, in the directory the target path shows. - materialize: the target path becomes a writable copy instead of a link into the store. Sources that get patched, rewritten, or materialized get delivered to .populate/derived/<name>/original, which also roots the delivered store path, and the flakes step derives the target path from there. Copies get made again only if what they derive from changes, which a key in .populate/derived/<name> records. The matrices of the file, flake, flake-input, and git tests cover both ways of drawing inputs, those of flake and flake-input materialize, the deploy test a source with a rewritten lock file, and features and edge cases run the scenarios drawing inputs both ways. New features cover patches, a patch that doesn't apply, patches in a subdirectory, reusing copies, and materializing. | ||||
| * | lib: add flakeFollows | tv | 3 days | 1 | -0/+14 |
| | | | | | | flakeFollows lists the inputs a source draws from other sources, with the paths of nested inputs flattened. | ||||
| * | lib shell: add requireFlakes | tv | 3 days | 1 | -0/+14 |
| | | | | | | | Shell code that enables flakes for the Nix commands following it, and fails with an error message naming the host and the Nix version found, unless Nix supports flakes. | ||||
| * | target: use default port from SSH config | Erik Arvstedt | 2021-11-20 | 1 | -2/+6 |
| | | | | | | This is the expected behavior. The SSH config is also implicitly used for other SSH-related settings. | ||||
| * | isLocalTarget: use "localhost" as defaultv1.24.1 | tv | 2021-01-16 | 1 | -5/+12 |
| | | | | | | This fixes an issue when trying to deploy using sudo from systems that don't provide means to determine the real host name. | ||||
| * | lib: add firstWord | tv | 2020-06-08 | 1 | -0/+3 |
| | | |||||
| * | support default target attrs for attrSets | Erik Arvstedt | 2020-04-18 | 1 | -7/+12 |
| | | |||||
| * | add target.extraOptions | Erik Arvstedt | 2020-04-18 | 1 | -0/+1 |
| | | |||||
| * | ssh: support using ssh-configured user | tv | 2019-11-29 | 1 | -1/+1 |
| | | | | | | | | Let ssh use the user configured in its configuration files when the target user is set to the empty string. Closes https://github.com/krebs/krops/issues/2 | ||||
| * | ssh, rsync: support using sudo on remote | Milan Pässler | 2019-11-29 | 1 | -2/+3 |
| | | | | | | | | | This allows deployment of remote hosts without having ssh access to the root user. Passwordless sudo is recommended since krops will use multiple ssh sessions and the password will not be remembered. Closes https://github.com/krebs/krops/issues/3 | ||||
| * | populate file: add useChecksumv1.8.0 | tv | 2018-11-28 | 1 | -0/+1 |
| | | |||||
| * | populate git: add clean.excludev1.7.0 | tv | 2018-10-31 | 1 | -0/+1 |
| | | |||||
| * | lib: add shell.quote | tv | 2018-07-12 | 1 | -0/+10 |
| | | |||||
| * | lib: add isLocalTarget | tv | 2018-07-12 | 1 | -0/+6 |
| | | |||||
| * | import stockholm's deployment tools | tv | 2018-02-28 | 1 | -0/+56 |
| https://cgit.krebsco.de/stockholm 877b4104370c1ea9698a449e376e2842d7c372fd | |||||
