Browse Source
These role docs aren't exactly War and Peace, but I think longer term as we fiddle about making things generic or not and moving them around, we'll be better off having kept ourselves to writing *something*. Add terse README.rst files for all existing roles, and add simple linter check to ensure new roles get them too. Change-Id: Ibc836310fb8a45e12c2e31f112d92509ac350413changes/00/594800/4
11 changed files with 98 additions and 0 deletions
@ -0,0 +1,21 @@
|
||||
Setup periodic runs of ``run_all.sh``, which runs playbooks against |
||||
bridge.o.o and all hosts. |
||||
|
||||
**Role Variables** |
||||
|
||||
.. zuul:rolevar:: update_cron_interval |
||||
|
||||
.. zuul:rolevar:: minute |
||||
:default: 15 |
||||
|
||||
.. zuul:rolevar:: hour |
||||
:default: * |
||||
|
||||
.. zuul:rolevar:: day |
||||
:default: * |
||||
|
||||
.. zuul:rolevar:: month |
||||
:default: * |
||||
|
||||
.. zuul:rolevar:: weekday |
||||
:default: * |
@ -0,0 +1,5 @@
|
||||
Set basic repository sources |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,5 @@
|
||||
Basic common server configuration |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,5 @@
|
||||
Disable the puppet-agent service on a host |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,5 @@
|
||||
Install and configure Ansible on a host via pip |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,5 @@
|
||||
Install system packages for python3 pip and virtualenv |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,7 @@
|
||||
Write out root SSH private key |
||||
|
||||
**Role Variables** |
||||
|
||||
.. zuul:rolevar:: root_rsa_key |
||||
|
||||
The root key to place in ``/root/.ssh/id_rsa`` |
@ -0,0 +1,8 @@
|
||||
Set hostname |
||||
|
||||
Remove ``cloud-init`` and statically set the hostname, hosts and |
||||
mailname |
||||
|
||||
**Role Variables** |
||||
|
||||
* None |
@ -0,0 +1,26 @@
|
||||
Configure users on a server |
||||
|
||||
Configure users on a server. Users are given sudo access |
||||
|
||||
**Role Variables** |
||||
|
||||
.. zuul:rolevar:: all_users |
||||
:default: {} |
||||
|
||||
Dictionary of all users. Each user needs a ``uid``, ``gid`` and ``key`` |
||||
|
||||
.. zuul:rolevar:: base_users |
||||
:default: [] |
||||
|
||||
Users to install on all hosts |
||||
|
||||
.. zuul:rolevar:: extra_users |
||||
:default: [] |
||||
|
||||
Extra users to install on a specific host or group |
||||
|
||||
.. zuul:rolevar:: disabled_users |
||||
:default: [] |
||||
|
||||
Users who should be removed from all hosts |
||||
|
@ -0,0 +1,9 @@
|
||||
#!/bin/bash |
||||
|
||||
# Trivial script run from tox -e linters to ensure roles have a |
||||
# README.rst attached |
||||
|
||||
if ! [ -f $1/README.rst ]; then |
||||
echo "*** Missing role documentation: $1/README.rst" |
||||
exit 1 |
||||
fi |
Loading…
Reference in new issue