Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Ansible configurations for trustroots server

Notifications You must be signed in to change notification settings

Trustroots/trustroots-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trustroots ansible setup

Ansible setup for trustroots server. This currently does not configure the whole server, just selected things we've added in. It's an incremental project.

prerequisites

You will need:

  • a modern ansible installation (probably >=2.8)
  • an account on the trustroots server with sudo
  • the vault password (ask nick over a secure channel)

You can put the put the password into a file named vault-password in the root directory, but preferable use a password manager with a CLI interface and write an executable script such as:

#!/bin/sh

pass trustroots/vault

(I would actually like to use the passwordstore module, but not everyone is using pass yet...)

sudo password

When running commands, it'll need your user password for sudo access. There are two approaches:

  • use -K option when running ansible-playbook and it'll ask you each time you run for the password
  • create a local configuration file with a method to retrieve the password, see example below

For my setup I create local.yml with the following contents:

ansible_become_pass: "{{ lookup('passwordstore', 'trustroots/server/nick') }}"

This let's me then run:

ansible-playbook server.yml -e @local.yml

It also supports other password stores, e.g. lastpass, OSX keyring, 1password, ... see eengstrom.github.io/musings/ansible-sudo-var for more details.

standards

It tries to follow the ansible best practises guide for directory layout and other conventions.

tips

Use the --step option to run through one step at a time, with interactive confirmation at each step.

playbooks

server

This sets up any basic stuff on the server. It's not much for now.

You can run it with:

ansible-playbook server.yml

(...and your choice of sudo password method, see above)

mailtrain

This sets up an instance of mailtrain.

It uses the development branch, which is the v2 beta. We should change it to a stable branch or tag if one becomes availaible.

See mailtrain.yml for the configuration options and values.

You can run it with:

ansible-playbook mailtrain.yml

(...and your choice of sudo password method, see above)

About

Ansible configurations for trustroots server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published