Commit Graph

13 Commits

Author SHA1 Message Date
Brian C. Lane
bb3d6b1003 Change config and paths
With the API running as weldr the permissions on the yum directories
needs to be accessable to it, as well as the results and queue/new
directories.
2018-01-26 16:53:12 -08:00
Brian C. Lane
8b725a1cf5 Add basic composer queue handling
The queue is in /var/lib/weldr/queue/new by default. It watches the
directory for new symlinks (to /var/lib/weldr/results/<dirname>) and
handles running anaconda on the kickstart found in final-kickstart.ks
inside the symlinked directory.
2018-01-24 12:11:03 -08:00
Brian C. Lane
33c5d0ce4a Switch the API to use a Unix Domain Socket
This drops support for the TCP port and switches to using a socket at
/var/run/weldr/api.socket

Also add the start of some docs for lorax-composer.

--host and --port argument have been removed.

--group sets the group name to use for access to the socket and its
parent directory. Defaults to 'weldr'

--socket sets the full path to the socket to create. Defaults to
'/var/run/weldr/api.socket'
2018-01-02 14:01:56 -08:00
Brian C. Lane
5cec7e02c4 Redirect yum's logging to yum.log 2017-11-28 16:35:49 -08:00
Brian C. Lane
93f4170ac5 Add --releasever option to lorax-composer
If it isn't set the releasever value will use yum and the system / to
find the releasever.
2017-11-27 11:15:46 -08:00
Brian C. Lane
fd337adafb Modify pylorax.api.config.configure so it can also be used for tests. 2017-11-22 09:45:27 -08:00
Brian C. Lane
d5e9a30406 Move ComposerConfig into pylorax.api.config module 2017-11-21 16:06:44 -08:00
Brian C. Lane
82da7d2510 Add support for yum to lorax-composer
This includes a new configuration file at /etc/lorax/composer.conf with
built-in defaults. It also adds a YUMLOCK server config object so that
request handlers can access the yum base object without interfering
with each other.
2017-11-20 10:15:44 -08:00
Brian C. Lane
8027b6382b Fix server request logging.
And switch the other logs to append instead of overwrite on each run.
2017-11-15 16:46:13 -08:00
Brian C. Lane
b27fc6deb8 lorax-composer: Drop unneeded parameters and create missing directories
The log directory (and parents) will be created if they are missing.
An empty recipe directory will be created if it doesn't exist.
2017-11-15 09:56:52 -08:00
Brian C. Lane
641ea8c715 Add /recipes/list route and tests
Includes adding a lock for access to the git repo from the API.
2017-11-08 09:46:12 -08:00
Alexander Todorov
7c26fd2a10 pylint fix: remove unused imports 2017-10-13 18:58:40 +03:00
Brian C. Lane
5fa8d51b85 lorax-composer initial commit
The lorax-composer program will launch a BDCS compatible API server
using Flask and Gevent. Currently this is a skeleton application with
only one active route (/api/v0/status).

The API code lives in ./src/pylorax/api/v0.py with related code in other
pylorax/api/* modules.
2017-10-04 17:03:08 -07:00