aboutsummaryrefslogtreecommitdiff
path: root/src/package.lisp
Commit message (Collapse)AuthorAge
* replace DISK:HOST-VOLUMES-CREATED, update & improve tutorialSean Whitton2022-07-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* convert some internal shell snippets to single linesSean Whitton2022-06-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add INSTALLER:WITH-CLEANLY-INSTALLED-ONCESean Whitton2022-06-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* fix FSTAB:HAS-ENTRIES-FOR-OPENED-VOLUMES for FAT32 filesystemsSean Whitton2022-06-24
| | | | | | | | The property should never have been calling SUBVOLUMES-OF-TYPE because opening volumes does not ever update the VOLUME-CONTENTS slot to contain OPENED-VOLUME values. The structure of the OPENED-VOLUMES connattr is that of a flat list. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add USER:GROUP-EXISTSDavid Bremner2022-06-24
| | | | | | | This is essentially a copy of HAS-ACCOUNT, with the equivalent of USER-EXISTS inlined. Signed-off-by: David Bremner <david@tethera.net>
* wrap OSICAT:USER-INFO with getent(1) fallbackSean Whitton2022-06-17
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out PROG-CHANGESSean Whitton2022-06-14
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* import PARSE-UNIX-NAMESTRING and DIRECTORY-PATHNAME-PSean Whitton2022-05-05
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add tests for pass(1) data sourceDavid Bremner2022-05-05
| | | | | | | | Test the several cases of transforming (IDEN1 IDEN2) to a filesystem location. Tricky cases include an illegal hostname in IDEN1 and shadowing of an entry by one prefixed with '_'. Signed-off-by: David Bremner <david@tethera.net>
* introduce the pass(1) data sourceDavid Bremner2022-05-05
| | | | | | | IDEN1 is mapped to a containing directory beneath a user defined pass(1) store, and IDEN2 completes the path to a gpg encrypted file. Signed-off-by: David Bremner <david@tethera.net>
* provide macro WITH-RESET-DATA-SOURCESDavid Bremner2022-05-05
| | | | | | As the docstring hints, this will be used in the test suite. Signed-off-by: David Bremner <david@tethera.net>
* run tests with temporary gpg homeDavid Bremner2022-05-05
| | | | | | | | | | | The big picture change here is the introduction of a custom test runner which allows setting up and tearing down various data sources (or other resources) for the test suite. In order to parse the output of gpg, provide a new exported function CONSFIGURATOR:STRIP-PREFIX. Signed-off-by: David Bremner <david@tethera.net>
* refactor use of gnupg in CONSFIGURATOR.DATA.PGPDavid Bremner2022-05-05
| | | | | | | | | | Add a new low level function GPG, and a function GPG-FILE-AS-STRING intended for use in the pgp data source and the future pass(1) data source. Both of these functions support a new parameter *DATA-SOURCE-GNUPGHOME*, which allows the user (or test suite) to control where key material is stored for accessing data sources. Signed-off-by: David Bremner <david@tethera.net>
* add package CONSFIGURATOR.DATA.UTILDavid Bremner2022-05-05
| | | | | | | | | | | | | | This package is intended to provide a home for utility functions used by multiple data sources. Initially move a local function from CONSFIGURATOR.DATA.FILES-TREE, and slightly generalize it to support an extension or TYPE argument. Note that the goal of LITERAL-DATA-PATHNAME is to map (IDEN1 IDEN2) to existing paths in a user-maintained file hierarchy. This is quite different from DATA-PATHNAME, which escapes various characters to map to a safe internal filename, effectively flattening a directory hierarchy into a single level. Signed-off-by: David Bremner <david@tethera.net>
* add OS:{HOST-,}DEBIAN-SUITE-{E,}CASE combinatorsSean Whitton2022-05-03
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename to SSH:{PARENT-IS-,}SYSTEM-KNOWN-HOSTSean Whitton2022-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* export SSHD:HOST-PUBLIC-KEYS hostattr, unexport GET-HOST-PUBLIC-KEYSSean Whitton2022-04-29
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* move OS::ARCHITECTURE slot from OS:LINUX to OS:DEBIANLIKESean Whitton2022-04-29
| | | | | | | | | | | | | | | | We already use this information in the sense of a distribution architecture rather than a kernel architecture, and the latter are differently grained. We might later want to have slots for both. Make OS:SUPPORTS-ARCH-P take OS objects as this simplifies existing usage. Restore the ORIGINAL-OS parameter to INSTALLER:CLEANLY-INSTALLED-ONCE. It was previously replaced in 446b8f4a8ef78cb4605cfb551255bb455be411f0. CHROOT::%OS-BOOTSTRAPPER-INSTALLED does not need the original host's architecture in most cases, and accepting an arbitrary propapp means we don't force the use of PACKAGE:INSTALLED. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename connattr :OPENED-VOLUMES -> DISK:OPENED-VOLUMESSean Whitton2022-04-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename DISK:WITH-THESE-OPEN-VOLUMES -> DISK:WITH-OPENED-VOLUMESSean Whitton2022-04-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename LIBVIRT:DEFINED -> LIBVIRT:DEFINED-FORSean Whitton2022-04-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* replace RUNNING-ON-TARGET parameters with contained factorsSean Whitton2022-04-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* DISK:VOLUME-BOOTLOADER -> DISK:VOLUME-BOOTLOADERSSean Whitton2022-04-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* factor out CONTAINER:CONTAINED-PSean Whitton2022-04-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename REBOOT:REBOOTED-AT-END -> REBOOT:AT-ENDSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename APT:MIRROR to APT:MIRRORS, use &rest and rename the hostattrSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename to INSTALLER:CHROOT-INSTALLED-TO-VOLUMES-FORSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename a number of FIREWALLD propertiesSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename ASSERT-EUID-ROOT -> ASSERT-REMOTE-EUID-ROOTSean Whitton2022-04-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* convert PACKAGE:*CONSFIGURATOR-SYSTEM-DEPENDENCIES* to a constantSean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* convert *LINUX-{BASIC,EFIVARS}-VFS* -> +LINUX-{BASIC,EFIVARS}-VFS+Sean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop plus signs & use underscores in C preprocessor constantsSean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename CCACHE:GROUP-CACHE -> CCACHE:CACHE-FOR-GROUPSean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CONSFIGURATOR.PROPERTY.U-BOOT: drop U-BOOT- prefix from symbolsSean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename CRON:USER-CRONTAB -> CRON:USER-CRONTAB-INSTALLEDSean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename to POSTGRES:{DATABASE-HAS-OWNER,USER-CAN-LOGIN}Sean Whitton2022-04-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename LXC:USERNET-USABLE-BY -> LXC:USERNET-VETH-USABLE-BYSean Whitton2022-04-13
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* REHOME-CONNECTION: rename slot DATADIR -> REHOME-DATADIRSean Whitton2022-04-13
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename PASSPHRASE class and its associated functionsSean Whitton2022-04-10
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* tidy up slots of DATA classSean Whitton2022-04-10
| | | | | | | | | | - Rename IDEN1->DATA-IDEN1, IDEN2->DATA-IDEN2. - Require values for DATA-IDEN1, DATA-IDEN2 AND DATA-VERSION slots. - Leave DATA-MIME unbound rather than initialising to NIL. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* drop SKIP-DATA-SOURCE function & unexport the symbolSean Whitton2022-04-04
| | | | | | We don't invoke the restart programmatically anywhere at present. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add PUSH-HOSTATTR, don't use &rest in PUSH-HOSTATTRS & fix docstringSean Whitton2022-04-04
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename basic propapp accessorsSean Whitton2022-04-04
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* unexport NO-CONSFIGSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* replace uses of COLLAPSE-TYPES & drop the functionSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* unexport DUMP-CONSFIGURATOR-IN-GRANDCHILD for nowSean Whitton2022-04-02
| | | | | | IMAGE-DUMPED covers most (all?) use cases. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename RUN-FAILED accessorsSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename READFILE, WRITEFILE, corresponding generics and some wrappersSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename CONNECTION-TEARDOWN -> CONNECTION-TEAR-DOWNSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename RETURN-EXIT -> EXIT-CODE-TO-RETVALSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>