Add profile.d/default to the default requirements

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-10 22:57:53 -06:00
parent f89459294d
commit b9e40b5bb1
2 changed files with 6 additions and 1 deletions

View file

@ -31,3 +31,5 @@ Cram reads a config dir with three groups of packages
- `hosts.d/<hostname>` 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.

View file

@ -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: