distorted-ansible
8 years agoexim-config: Advance to new upstream version. master
Mark Wooding [Fri, 17 Jul 2015 10:20:21 +0000 (11:20 +0100)]
exim-config: Advance to new upstream version.

8 years agoInstall Debian packages and mail configuration.
Mark Wooding [Fri, 17 Jul 2015 10:20:06 +0000 (11:20 +0100)]
Install Debian packages and mail configuration.

A certain amount of upheaval here.  I've not bothered to split out the
individual changes.

8 years agobin/ansible-inventory: Smash `-' to `_' in dictionary key keywords.
Mark Wooding [Fri, 17 Jul 2015 10:19:02 +0000 (11:19 +0100)]
bin/ansible-inventory: Smash `-' to `_' in dictionary key keywords.

8 years agoall.yml, vars/defs.yml: Some global settings.
Mark Wooding [Fri, 17 Jul 2015 10:18:28 +0000 (11:18 +0100)]
all.yml, vars/defs.yml: Some global settings.

Initially just a root directory for the Ansible tree.

8 years agoNew role for Debian-specific configuration.
Mark Wooding [Tue, 14 Jul 2015 10:17:56 +0000 (11:17 +0100)]
New role for Debian-specific configuration.

Move the PKI-management scripts over, because they're not truly common.

8 years agoroles/common/tasks/main.yml: Missing brackets around tags list.
Mark Wooding [Tue, 14 Jul 2015 10:16:50 +0000 (11:16 +0100)]
roles/common/tasks/main.yml: Missing brackets around tags list.

It turns out they're not necessary.

8 years agohosts/hosts.lisp: Add new host `haze'.
Mark Wooding [Tue, 14 Jul 2015 10:15:37 +0000 (11:15 +0100)]
hosts/hosts.lisp: Add new host `haze'.

Mostly because it's non-Debian.

8 years agoroles/common/*/main.yml: Rebuild /etc/ssh/sshd_config on change.
Mark Wooding [Mon, 13 Jul 2015 09:47:00 +0000 (10:47 +0100)]
roles/common/*/main.yml: Rebuild /etc/ssh/sshd_config on change.

Just an oversight, I think.

8 years agoroles/common/handlers/main.yml: Move `make' handlers to the top.
Mark Wooding [Mon, 13 Jul 2015 09:45:58 +0000 (10:45 +0100)]
roles/common/handlers/main.yml: Move `make' handlers to the top.

Handlers are always run in the order in which they're defined, so it
makes sense to put the rules which rebuild configuration files above the
rules which restart services.

8 years agoroles/common/tasks/main.yml: Explicitly create /root/.ssh/.
Mark Wooding [Mon, 13 Jul 2015 09:44:19 +0000 (10:44 +0100)]
roles/common/tasks/main.yml: Explicitly create /root/.ssh/.

8 years agoroles/common/*.yml: More trailing `/'s on directory names.
Mark Wooding [Mon, 13 Jul 2015 09:43:19 +0000 (10:43 +0100)]
roles/common/*.yml: More trailing `/'s on directory names.

8 years agoroles/common/tasks/main.yml: Trailing `/' on copy destination directories.
Mark Wooding [Mon, 13 Jul 2015 09:18:28 +0000 (10:18 +0100)]
roles/common/tasks/main.yml: Trailing `/' on copy destination directories.

Ansible correctly notices this and creates the necessary directory if it
doesn't exist already.  Without the trailing `/', Ansible might copy the
file to where we wanted the directory and then everything is weird.

8 years agoroles/common/tasks/main.yml: Change ntp-client task title.
Mark Wooding [Mon, 13 Jul 2015 09:14:11 +0000 (10:14 +0100)]
roles/common/tasks/main.yml: Change ntp-client task title.

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.