4 Commits

Author SHA1 Message Date
Sandy Walsh
618cdcdd63 Cell Support
Yagi-workers are now created per cell. One rabbit per cell.
Also renamed the common role to stv3-common to prevent conflicts
with other playbooks.

Take note of ansible/roles/stv3-workers/defaults/main.yaml to
see an example of the expected format of the calling facts file.
Each entry in this list-of-dictionaries represents a rabbit server
and Swift container for that cell.

Also, multiple pipeline_workers are created based on the value
of num_pipeline_workers (defaults to 2). This is so a machine
can better utilize multi-core architectures.

Change-Id: I09c4d364878493546d6e23e019f01f5f4f38c37c
2014-12-22 10:14:37 -08:00
Sandy Walsh
51bfd3f12a Fix services not starting on first run.
Services now run properly on first run (thanks Joel). Didn't
need to check the changed status of the command after all.

Also, spelling mistake in the playbook launch fixed.

Change-Id: I5b6cb276b066844c934da4ffbd2513a006033214
2014-12-16 07:53:17 -08:00
Sandy Walsh
f4484a9a9d Remove cgit from branching.
Seems to be a change in how infra defines the stackforge repo.

Also removed a stv3-api restart from common, which was undefined.

Change-Id: I3c33dd6db467225444a0a9da137bf8f002629e3a
2014-12-15 08:46:55 -08:00
Sandy Walsh
24f118f9ac tox verification and tarball venv packaging support.
Optionally run tox on each git repo (-t) and package resultant
venv into a tarball on success (-p)

tarball filename includes the short-sha1 of the repo.

If tarball is created, screen is not run.

if the -d option is given the cmdline incantation for kicking
off the ansible deploy playbook will be provided. Later, this
could be automated.

A mysql role playbook is also included for single node db.

stv3-api role is also included.

Change-Id: Ib9f97a0035c228d4a163d7794ab7ce60043d572b
2014-12-08 13:15:43 -08:00