{"id":26709545,"url":"https://github.com/holms/chef-starter","last_synced_at":"2025-03-27T08:17:19.613Z","repository":{"id":11790280,"uuid":"14332847","full_name":"holms/chef-starter","owner":"holms","description":"Makefile for automating chef-server and chef-workstation setup","archived":false,"fork":false,"pushed_at":"2014-06-08T22:33:59.000Z","size":620,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T20:16:37.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-12T13:26:21.000Z","updated_at":"2014-08-17T12:22:08.000Z","dependencies_parsed_at":"2022-09-24T05:40:44.072Z","dependency_job_id":null,"html_url":"https://github.com/holms/chef-starter","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/holms%2Fchef-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Fchef-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Fchef-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holms%2Fchef-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holms","download_url":"https://codeload.github.com/holms/chef-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806442,"owners_count":20675298,"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":[],"created_at":"2025-03-27T08:17:19.139Z","updated_at":"2025-03-27T08:17:19.607Z","avatar_url":"https://github.com/holms.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Chef-Starter\n============\n\nThis is PRE-ALPHA! For testing only!\nPlease fork and help a project, if you can do better makefile scripting, or found something to fix.\n\nUse-case\n--------\n\nPrimary use-case I had, is to deploy chef-server from my own workstation with minimal fuss.\nAlso this prolly would be good for initialising new chef repo and setuping workstation too.\n\nRequirements\n------------\n\nIf you won't follow these requirements, Makefile will fail.\n\n* Currently chef-server provisioning only works in RHEL!\n* Proper FQDN on your chef-server! If you're in intranet, set one in /etc/hosts\n* You required to have public key in your ~/.ssh/ directory. It will be copied to a chef-server node.\n* SUDO enabled unix. Notice: For cloud users: Don't forget to comment ```#Default requiretty``` in your sudoers file or else Makefile will fail\n* Your sudo user must be the same on all the nodes as server machine (propose for better practise in issue)\n\n\nDebian/Ubuntu support:\n----------------------\n\nShould work out of the box.\n\nOSX support:\n------------\n\n    * Install macports\n    * Install bash via macports (Default bash won't work)\n\nCurrently there's no support for homebrew, feel free to contribute.\n\nBUG: there's a strange problem which occurs on my iMac, but never happens on macbook air, with totally indentical version of software. If knife command won't be found when you launched Makefile, add this to your ```~/.profile```\n\n```\nexport GEM_HOME=\"/opt/local/lib/ruby1.9/gems/1.9.1/\"\nexport GEM_PATH=\"/opt/local/lib/ruby1.9/gems/1.9.1/\"\nexport PATH=/opt/local/lib/ruby1.9/gems/1.9.1/bin:$PATH\n```\n\nRHEL support:\n-------------\n\nSystem-wide RVM will be installed and ruby will be compiled. If RVM already exists, then ruby will and rubygems will be upgraded. Currently ```ruby2``` is used.\n\nAfter you run ```make install``` and ```rvm``` will be installed, you'll have to log-out and log-in to shell again. This is due to environment variables, a requirement from ```rvm```\n\nConfigure\n---------\n\nCreate .makerc\n```\ncp .makerc.sample .makerc\n```\nSet your chef-server hostname and username, repo path, and you ready to go.\n\n\nThis will setup chef-server and workstation\n```\nmake install\n```\n\nThis will only install chef-solo\n```\nmake install_solo\n```\n\nCongrats! Now you have ./repo folder ready, it's completely ignored, you can create a git repo out of it.\n\nUsage\n-----\n\n\nRun updates: get cookbooks, upload all cookbooks, update envs/roles/nodes\n\n```\nmake # or make update\n```\n\nCreate and bootstrap a node\n```\nmake node\n```\n\n\n\nRebootstrap node\n```\nmake rebootstrap\n```\n\nCook specified node, you will be asked to enter node name, and node list will be shown\n```\nmake cook\n```\n\n\nDestroy everything that's been generated\n```\nmake destroy\n```\n\nRemove chef installation on server\n```\nmake server_destroy\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholms%2Fchef-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholms%2Fchef-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholms%2Fchef-starter/lists"}