Project

comrad

0.0
No commit activity in last 3 years
No release in over 3 years
Your rad comrade - Sync changes from git to Chef Server via Jenkins
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0
~> 0.33.0

Runtime

>= 11.0
~> 1.7.0
>= 0.3.2, ~> 0.3
 Project Readme

Comrad

Build Status Gem Version

Comrad prevents human error, by automatically syncing changes on the master branch of your chef repo to your chef server. You eliminate the chance that someone uploads an outdated file or misses an upload, by automating the process. Comrad runs as a Jenkins job allowing you to trigger the job after acceptance tests. All changes are logged in the Jenkins job history and optionally log to Slack using Slack webhooks.

Usage

Comrad has several command line options and also a YAML config file.

Command line options:

    -p, --print                      Print the config options that would be used, and then exit
    -c, --config comrad.yml          Path to config file (defaults to /etc/comrad.yml)
    -q, --quiet                      Don't post actions to Slack
    -d, --dry-run                    Print what you would do, but don't actually do it
    -s, --scary-mode                 Enable the deletion of objects if they've been removed from git
    -h, --help                       Displays Help

Example YAML config:

  ---
slack:
  webhook_url: 'https://hooks.slack.com/services/123/123/123
  channel: '#ops-channel'
jenkins:
  workspace_dir: '/var/jenkins/workspaces/myjob/'
  url: 'http://jenkins.int.myco.co/'
  username: 'jenkins-api-user'
  password: 'jenkins-api-password'
  job_name: 'my-jenkins-job'
chef:
  pem_path: '/home/jenkins/.chef/jenkins.pem'
  client_name: 'jenkins'
  server_url: https://chef.int.myco.co