HomePhabricator
Diffusion Scap f2c061b1ed7d

Add config deployment
f2c061b1ed7dUnpublished

Authored by thcipriani on Aug 28 2015, 9:21 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add config deployment

Adds a section inside the local scap/scap.cfg for configuration files to
be deployed, formatted like:

[config_files]
/path/to/dest_config.file:
   template: file_in_the_template_dir.yaml.j2
   vars_file: /path/to/vars_file.yaml

The deploy command renders a json file in a known location on tin that
is later fetched by each deploy target.

The deploy target loops through the config files and grabs the
template and renders it using the vars_file (which is put into place
by puppet on the target and contains puppet private repo information)

Current limitations:

  • Files created are created by the ssh_user specified in the config and therefore must be created in locations to which that user has read access
  • vars_files specified in the [config_files] parameters must exist before deployment is run

Change-Id: I64aa464039c0471f156795a3042ea44d48c8622a

Details

Committed
thciprianiSep 3 2015, 8:34 PM
Parents
rMSCA8a8d0e8aa683: Add service deploy via scap
Branches
Unknown
Tags
Unknown
References
refs/changes/85/235385/4
ChangeId
I64aa464039c0471f156795a3042ea44d48c8622a