Skip to content

Instantly share code, notes, and snippets.

@patcon
Created September 8, 2011 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patcon/1205099 to your computer and use it in GitHub Desktop.
Save patcon/1205099 to your computer and use it in GitHub Desktop.
Example of a chef role file for settings up large parts of a jenkins server (xml config files not included)
{
"name": "jenkins_master",
"default_attributes": {
"authorization": {
"sudo": {
"users": [
"jenkins"
]
}
},
"jenkins": {
"server": {
"plugins": [
"analysis-core",
"audit-trail",
"build-pipeline-plugin",
"checkstyle",
"dry",
"gerrit-trigger",
"git",
"greenballs",
"jdepend",
"jobConfigHistory",
"nodelabelparameter",
"parameterized-trigger",
"pmd",
"selenium",
"violations",
"virtualbox",
"warnings"
]
}
}
},
"json_class": "Chef::Role",
"env_run_lists": {
},
"run_list": [
"role[base]",
"recipe[git]",
"recipe[cvs]",
"recipe[subversion]",
"recipe[maven]",
"recipe[ant]",
"recipe[jenkins]",
"recipe[phpmd]",
"recipe[phpcpd]",
"recipe[pdepend]",
"recipe[phploc]",
"recipe[xhprof]",
"recipe[drush]",
"recipe[drush::make]"
],
"description": "The base role for setting up the jenkins master with appropriate initial settings.",
"chef_type": "role",
"override_attributes": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment