Skip to content

Ansible role for setting up the K-Box on a server

License

Notifications You must be signed in to change notification settings

k-box/ansible-role-k-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-Box

The K-Box is able to set up containerized K-Boxes on the host system. It supports K-Box version 0.20.0 to 0.32.x.

This role also provides a way to upgrade to newer versions. Downgrading back to older versions is not supported.

master uses Traefik version 2.x, if you are still on Traefik 1.x use traefik-1.x branch

Requirements

A working docker and Traefik reverseproxy installation.

Configuration Variables

k_boxes: # array that contains all the k-boxes, per host.
  # the domain is automatically used for the reverse proxy, can be changed
  # after setup
  domain.example.org:
    # location of the docker-compose service, must not be changed
    # after deploying
    path: "/home/user/deploy/..."
    # location of data dirs (created automatically), changing after setup
    # results in empty instance. copy data to this location prior to
    # running the playbook, in order to keep your data
    data: "/data/k-box/domain-example-org"
    # optional password for mysql service
    mysql_pw: "foobar"

Example configuration

k_boxes:
  # for each k-box an entry is defined, the domain name is the key
  new.kbox.net:
    path: "/home/user/deploy/k-box/new-kbox-net"
    data: "/data/k-box/new-kbox-net"
    # to migrate old deployments, the old mysql pw can be supplied
    mysql_pw: "hunter1"
    images:
      k_box: "klinktech/k-box:0.32.1"
      k_search: "klinktech/k-search:3.6.0-2"
      solr: "klinktech/k-search-engine:1.0.1-1"

  # multiple k-boxes can be defined per host
  old.kbox.net:
    path: "/home/user/deploy/k-box/old-kbox-net"
    data: "/data/k-box/old-kbox-net"
    images:
      k_box: "klinktech/k-box:0.27.2"
      k_search: "klinktech/k-search:3.6.0-2"
      solr: "klinktech/k-search-engine:1.0.1-1"

Upgrading installations

To Upgrade installations it is sufficient to simply increment the version Numbers and run the playbook again.

Make sure the K-Box, K-Search and K-Search-Engine versions are compatible.

Please note that you also need to re-index all documents on your K-Box when either upgrading from 0.19 to 0.20, or 0.20 to 0.21.

About

Ansible role for setting up the K-Box on a server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages