#2344 runroot: basic docs
Merged 3 years ago by tkopecek. Opened 3 years ago by tkopecek.
tkopecek/koji issue2111  into  master

file modified
+8
@@ -126,3 +126,11 @@ 

  ;to hub. It could be useful for debugging purposes, but creates twice as many

  ;log files

  ;log_timestamps = False

+ 

+ ;enabled plugins, base koji installation has access to runroot and save_failed_tree

+ ;none of these is enabled by default

+ ;plugin = 

+ 

+ ;path where builder plugins are located, there could be multiple paths delimited

+ by :

+ ;pluginpath = /usr/lib/koji-builder-plugins

file modified
+25 -1
@@ -7,7 +7,31 @@ 

  Runroot

  =======

  

- Plugin for running any command in buildroot.

+ Plugin for running any command in buildroot. It has three parts as most of the

+ others (hub, builder and CLI).

+ 

+ Builder

+ -------

+ You enable plugin by editing ``/etc/kojid.conf`` by adding ``plugin = runroot``

+ there. Plugin itself has separate configuration file on each builder located at

+ ``/etc/kojid/plugins/runroot.conf`` There is a sample configuration file

+ with option descriptions installed.

+ 

+ Hub

+ ---

+ On the hub side ``Plugins = runroot_hub`` needs to be added to

+ ``/etc/koji-hub/hub.conf``. Note, that by default policy runroot tasks are

+ assigned to ``runroot`` channel. As this is a plugin, we don't create it

+ automatically. There are three options - create channel when adding first builder

+ there via ``koji add-host-to-channel --new hostname runroot`` or by changing the

+ default channel policy according to :doc:`defining_hub_policies`. Last option is

+ to use ``--channel-override`` option in CLI to drive task to channel of choice.

+ 

+ CLI

+ ---

+ CLI is looking for available plugins every run, so it if it is installed, you'll

+ see new command ``runroot`` with options described in its help. No config

+ options are needed to enable it.

  

  Save Failed Tree

  ================

Metadata Update from @tkopecek:
- Pull-request tagged with: no_qe

3 years ago

This is great thanks.

What does "CLI should discover runroot plugin automatically" mean? Is there there any Python that runs on the client?

rebased onto ae7f686

3 years ago

Metadata Update from @tkopecek:
- Pull-request tagged with: doc

3 years ago

Commit 580577a fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago