{"id":16301690,"url":"https://github.com/melezhik/chef-plugin","last_synced_at":"2025-03-20T21:31:04.636Z","repository":{"id":6924712,"uuid":"8175693","full_name":"melezhik/chef-plugin","owner":"melezhik","description":"This is jenkins plugin to run chef-client on remote host","archived":false,"fork":false,"pushed_at":"2018-10-30T18:15:41.000Z","size":1301,"stargazers_count":37,"open_issues_count":5,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-11T20:55:24.991Z","etag":null,"topics":["automation","chef","chef-client","configuration-management","devops-tools","jenkins","linux","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melezhik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-13T08:25:36.000Z","updated_at":"2023-05-01T18:59:11.000Z","dependencies_parsed_at":"2022-09-13T11:40:34.841Z","dependency_job_id":null,"html_url":"https://github.com/melezhik/chef-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melezhik%2Fchef-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melezhik%2Fchef-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melezhik%2Fchef-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melezhik%2Fchef-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melezhik","download_url":"https://codeload.github.com/melezhik/chef-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244084255,"owners_count":20395516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","chef","chef-client","configuration-management","devops-tools","jenkins","linux","ruby"],"created_at":"2024-10-10T20:55:21.866Z","updated_at":"2025-03-20T21:31:04.261Z","avatar_url":"https://github.com/melezhik.png","language":"Ruby","readme":"# SYNOPSIS\n\nThis is jenkins plugin to run chef-client on remote host.\nPlugin starts ssh session on remote host using public key authentication and run chef-client there.\n\n\n# Plugin general settings\n\n- host - Specifies remote host to run chef client on.\n- login -  Specifies the user to log in as on the remote machine.\n\n# Plugin advanced settings\n\n- ssh\\_indetity\\_file - Specifies a path to file from which the identity (private key) for public key authentication is read.\n- chef\\_client\\_config - Specifies a path to file ( on  remote host ) from which chef client configuration is read, default values is /etc/chef/client.rb\n- chef\\_json\\_template - Specifies chef attributes and run-list ( see chef documentation ).\n- dry\\_run - Use to run chef client in why-run mode, which is a type of chef-client run that does everything except modify the system, default value is false.\n\n# User interface\n\n![layout](https://raw.github.com/melezhik/chef-plugin/master/images/layout.png \"layout\")\n\n# Chef attributes and run list settings\n\n- Use chef\\_json\\_template to define chef attributes and run list. \nIf you define one, plugin will parse chef_json_template data and stored result in file which in turn will passed as -j parameter into chef-client run.\n\n- Please check out [chef wiki](http://wiki.opscode.com/display/chef/Setting+the+run_list+in+JSON+during+run+time) to learn more about chef json files.\n\n- Chef\\_json\\_template confirms [ERB](http://www.stuartellis.eu/articles/erb/) template syntax. Here is example of chef\\_json\\_template:\n        \n        \u003c%\n            runlist = %w{apache::server mysql}\n            chef_json = {\n                :run_list   =\u003e runlist.map { |r|  \"recipe[#{r}]\" } ,\n                :apache     =\u003e {\n                    :version =\u003e 80\n                }\n            }\n        %\u003e\n        \u003c%= chef_json.to_json.to_s %\u003e\n    \n# Prerequisites\n- ruby-runtime jenkins plugin\n- ssh client\n\n\n# Environment variables\n\nYou can set some environment variables qith \"Jenkins/Configuration/Global properties/Environment variables\" . Here the list of varibales to be processed in the plugin:\n\n- LC\\_ALL # sets encoding to avoid chef log issues \n \n# Latest stable version\n\n[0.1.7](http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/ruby-plugins/chef/0.1.7)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelezhik%2Fchef-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelezhik%2Fchef-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelezhik%2Fchef-plugin/lists"}