From 7a583ab42a386e46da408603565c433001978310 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sun, 10 Oct 2021 22:57:53 -0600 Subject: [PATCH] Add profile.d/default to the default requirements --- projects/cram/README.md | 2 ++ projects/cram/src/python/cram/__main__.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/cram/README.md b/projects/cram/README.md index 47824b7..d94c70e 100644 --- a/projects/cram/README.md +++ b/projects/cram/README.md @@ -31,3 +31,5 @@ Cram reads a config dir with three groups of packages - `hosts.d/` contains one package for each host, and should pull in a list of profiles. The intent of this tool is to keep GNU Stow's intuitive model of deploying configs via symlinks, and augment it with a useful pattern for talking about "layers" / "packages" of related configs. + +Cram installs the package `hosts.d/$(hostname)`, and `profiles.d/default` by default. diff --git a/projects/cram/src/python/cram/__main__.py b/projects/cram/src/python/cram/__main__.py index 1f06f95..6ec29aa 100644 --- a/projects/cram/src/python/cram/__main__.py +++ b/projects/cram/src/python/cram/__main__.py @@ -96,7 +96,10 @@ def main(): hostname = os.uname()[1] # Compute the closure of packages to install - requirements = [f"hosts.d/{hostname}"] + requirements = [ + f"hosts.d/{hostname}", + "profiles.d/default", + ] for r in requirements: try: