Install and manage Gollum Wikis on macOS.
NOTE: Version 1.0 is a complete rewrite with new role variables!
- recent version of Xcode
- Xcode's command line tools (
xcode-select --install
) - Mac Homebrew
This role has only one top-level role variable gollum_wikis
- a dictionary
of wiki (like virtual hosts on apache / nginx).
Each wiki itself is a dictionary with custom settings: socket, users, options,
etc.
gollum_wikis
comes with a default wiki:
gollum_wikis:
default:
bind: tcp://127.0.0.1:4567
But of course you can overwrite that. Here's a full example:
---
gollum_wikis:
default:
bind: tcp://0.0.0.0:8080
options:
emoji: yes
live_preview: no
users:
- username: rick
password: asdf754&1129-@lUZw
name: Rick Sanchez
email: rick@example.com
- username: morty
password_digest: 5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5
name: Morty Smith
email: morty@example.com
allow_guests: yes
notes:
bind: tcp://127.0.0.1:8081
Each Wiki can have these keys...
Defines which socket gollum will bind to. You can use anything that Puma would accept for Binding TCP / Sockets, even UNIX sockets.
Pass an options hash to gollum for customization.
An array of allowed users to access the wiki. If this is not empty than only these users can access the wiki. Each user must have a username, password_digest, name and email. Instead of a password_digest you could also use the actual password:
If you have defined users but still want unauthenticated folks the read the
wiki that set allow_guests: yes
.
By default this is disabled.
- hosts: localhost
roles:
- bjoernalbers.gollum
- Clone this repo and
cd
into it - Install required roles:
ansible-galaxy install -r requirements.yml -p ..
- Run the test playbook:
ansible-playbook tests/test.yml -K
- Start hacking...
MIT