Commit graph

52 commits

Author SHA1 Message Date
0419c90c9b
Add some helper functions to interact with pass 2025-01-26 18:36:38 +00:00
9faaeab2b0
Merge branch wip/interceptors into main 2025-01-26 14:49:07 +00:00
7401263664
Expand file names before loading 2025-01-23 18:29:47 +00:00
8a1e1b244f
Some simplifications 2025-01-23 18:19:54 +00:00
e22e618142
Remove interceptors from the main branch 2025-01-23 17:12:56 +00:00
f49be4af29
Bugfixes and interceptor chain example. 2025-01-22 22:00:13 +00:00
de18c1d771
Make actions take conn argument
...rather than using (current-connection).

Rework apt module with a helper macro.
2025-01-22 09:49:59 +00:00
c126639016
Import just what we need, rename fs functions 2025-01-21 21:06:23 +00:00
47b63da25e
Rework actions for new context implementation 2025-01-21 20:57:17 +00:00
1843544e49
Add a macro to make task definitions more succinct 2025-01-21 20:56:49 +00:00
7f5ec3ac29
Use context instead of global vars 2025-01-20 10:42:15 +00:00
1535baa68b
Factor out CLI into its own module 2025-01-19 19:56:02 +00:00
54b6fd0377
Refactor, implement inventory, add examples 2025-01-19 19:21:35 +00:00
d16df7616f
Factor out connection types into different files 2025-01-19 12:18:20 +00:00
c9db388914
Start to rework sudo handling 2025-01-17 10:06:03 +00:00
7f507c8e6d
Add support for facts. 2025-01-13 20:15:41 +00:00
5376ce9f19
Switch back to records, not goops 2025-01-12 15:28:29 +00:00
70543ef7c5
Checkpoint some refactoring 2025-01-12 12:38:47 +00:00
b0070af1fd
Fix typo in log message 2025-01-12 11:05:26 +00:00
3565109071
Add trigger support 2025-01-11 21:21:48 +00:00
04a75984cb
Refactor to use a core namespace with global vars 2025-01-11 21:00:24 +00:00
a65415f846
Experiment with interceptor chains 2025-01-11 15:22:45 +00:00
dba8ca3153
Test (and bugfix) conditions 2025-01-10 17:31:11 +00:00
875ce167e9
Setup logging 2025-01-10 17:22:44 +00:00
b19eaf1007
Add task conditions 2025-01-10 16:53:35 +00:00
09e4f6d806
Add apt actions 2025-01-10 16:53:26 +00:00
2e03da3e01
Get rid of scratch-dir from context
Leave it to the actions to deal with their own temporary file clean-up.
2025-01-10 16:03:45 +00:00
0550ab5b60
Update filesystem actions
* Prefix all the exported actions with "action:"

* Add new actions for remove, link

* Make install-file and install-dir preserve the owner/group/mode of the
original unless there's an explicit override

* Remove use of context scratch-dir
2025-01-10 16:02:21 +00:00
93820dc307
Some refactoring, and implement stat
Add convenience functions run and must to the context module, and remove
the similar functions from connection.

In the connection module, rename %run to connection-run now that that
function has moved to context.
2025-01-08 18:27:46 +00:00
3153469a2c
Validate play vars 2025-01-08 09:56:12 +00:00
7f73a9b7de
Clean up validation of play arguments 2025-01-08 09:35:22 +00:00
5360e73d60
Add macro to simplify task context references 2025-01-08 09:13:19 +00:00
b4cdfc341a
Support for context vars without macros 2025-01-07 18:09:10 +00:00
af16ee29b6
Test vars and overrides 2025-01-06 22:08:33 +00:00
12c45b628c
Update handlers to resolve context refs 2025-01-06 21:44:20 +00:00
b463a828be
Fix task action handling
Refactor actions to remove context
2025-01-06 21:38:32 +00:00
Ray Miller
f2f88ce0dc Try to make context vars nestable in task action args 2025-01-06 20:49:42 +00:00
Ray Miller
b7e4b9dc74 An attempt at a task macro.
This is not complete: need to resolve context references.
2025-01-06 17:47:43 +00:00
679d2552a9
Delete obsolete implementation files 2025-01-05 19:12:53 +00:00
52f011267b
Some refactoring
* Don't export record field setters (unless required)
* Remove get- prefix from record getters
* Introduce handlers (simplified tasks)
2025-01-05 19:10:42 +00:00
297d779ea4
Implement trigger handlers 2025-01-05 18:24:33 +00:00
c290a5caea
Implement tasks and plays 2025-01-05 17:43:09 +00:00
d5593f4e3d
Rework connection handling
* Capture stderr from run
* Simplify remote file handling
2025-01-05 12:13:10 +00:00
428c6ed4a5
Shell quote zero-length strings. 2025-01-04 12:13:40 +00:00
61524f3e79
Implement utility for shell quoting.
This is a port of Perl's String::ShellQuote, see
https://metacpan.org/release/ROSCH/String-ShellQuote-1.04/source
2025-01-04 12:03:43 +00:00
d7b49f2b3b
Implement connection methods 2025-01-03 17:46:21 +00:00
Ray Miller
cac302e739 Make a start on connection 2025-01-03 11:32:23 +00:00
Ray Miller
6f217e006e Make a start on prerequisite data. 2024-08-15 16:16:53 +01:00
Ray Miller
2a8fb2ce5b Simplify call-with-temporary-directory. 2024-07-17 17:25:29 +01:00
Ray Miller
522f75ffac Fix exports for util/process. 2024-07-17 17:19:54 +01:00