chiark / gitweb /
distorted-ansible
8 years agoroles/common/tasks/main.yml: Use `default' filter instead of circumlocution.
Mark Wooding [Mon, 13 Jul 2015 08:19:25 +0000 (09:19 +0100)]
roles/common/tasks/main.yml: Use `default' filter instead of circumlocution.

8 years agoroles/common/: Do the rest of the common configuration.
Mark Wooding [Thu, 9 Jul 2015 09:32:00 +0000 (10:32 +0100)]
roles/common/: Do the rest of the common configuration.

8 years agoroles/common/: Organize the `templates/' directory like `files/'.
Mark Wooding [Thu, 9 Jul 2015 09:07:46 +0000 (10:07 +0100)]
roles/common/: Organize the `templates/' directory like `files/'.

There's one subdirectory for each task group, and files inside are named
more-or-less after what they'll be called at the remote end.

8 years agoroles/common/: Run `make' in `/root/.ssh' when things change.
Mark Wooding [Thu, 9 Jul 2015 09:05:23 +0000 (10:05 +0100)]
roles/common/: Run `make' in `/root/.ssh' when things change.

8 years agoLisp: Change Lisp-to-JSON conventions.
Mark Wooding [Wed, 8 Jul 2015 10:07:27 +0000 (11:07 +0100)]
Lisp: Change Lisp-to-JSON conventions.

Now a Lisp list is assumed to be an alist, and printed as a JSON
mapping; a JSON list is produced from a Lisp vector.  Also, `nil' is now
mapped to JSON `null'.

  * Implement these changes in `print-json-simple'.

  * Change the lists in `hosts.lisp' to be vectors.

  * Modify `host-defs.lisp' to handle vectors instead of lists.

8 years agohosts/host-defs.lisp: Make group names be properly SHOUTY symbols.
Mark Wooding [Wed, 8 Jul 2015 10:05:02 +0000 (11:05 +0100)]
hosts/host-defs.lisp: Make group names be properly SHOUTY symbols.

They look better in debugging output this way.

8 years agohosts/host-defs.lisp: Set the correct containing package.
Mark Wooding [Wed, 8 Jul 2015 10:04:19 +0000 (11:04 +0100)]
hosts/host-defs.lisp: Set the correct containing package.

Mostly useful as an editor hint.

8 years agobin/ansible-inventory: Make the script loadable into a Lisp system.
Mark Wooding [Wed, 8 Jul 2015 10:03:40 +0000 (11:03 +0100)]
bin/ansible-inventory: Make the script loadable into a Lisp system.

8 years agobin/ansible-inventory: Wrap `flet' of `getarg' around its body.
Mark Wooding [Wed, 8 Jul 2015 10:02:48 +0000 (11:02 +0100)]
bin/ansible-inventory: Wrap `flet' of `getarg' around its body.

Eventually it'll even be used for something.

8 years agobin/ansible-inventory: Remove old debugging cruft.
Mark Wooding [Wed, 8 Jul 2015 10:01:49 +0000 (11:01 +0100)]
bin/ansible-inventory: Remove old debugging cruft.

8 years agobin/ansible-inventory: Turn debugging on.
Mark Wooding [Wed, 8 Jul 2015 10:00:15 +0000 (11:00 +0100)]
bin/ansible-inventory: Turn debugging on.

The program is pretty quick, especially compared to an Ansible run.

8 years agoexim-config/, firewall/, secrets/: Add references to submodules.
Mark Wooding [Tue, 7 Jul 2015 23:16:31 +0000 (00:16 +0100)]
exim-config/, firewall/, secrets/: Add references to submodules.

The `exim-config' and `firewall' submodules contain complicated m4-based
per-host configuration which already exist as separate projects.  (They
might get pulled in-tree at some point, but probably not.)

The `secrets' submodule contains Ansible variable definitions for
secrets which can't be published in the main repository.

8 years ago*.yml: Add some header comments.
Mark Wooding [Tue, 7 Jul 2015 22:47:30 +0000 (23:47 +0100)]
*.yml: Add some header comments.

8 years agoVery early initial commit.
Mark Wooding [Mon, 6 Jul 2015 00:41:38 +0000 (01:41 +0100)]
Very early initial commit.

Very bare, just about works.  Nowhere near ready to take over from the
rdist-based system in production use.