{"id":16813870,"url":"https://github.com/bmhatfield/chef-deregistration-manager","last_synced_at":"2025-11-05T19:30:33.761Z","repository":{"id":4018589,"uuid":"5118035","full_name":"bmhatfield/chef-deregistration-manager","owner":"bmhatfield","description":"Queue Based Chef Client Deregistration for the Cloud","archived":true,"fork":false,"pushed_at":"2012-10-18T17:19:10.000Z","size":192,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T19:25:10.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bmhatfield.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2012-07-20T01:41:21.000Z","updated_at":"2023-11-12T16:53:13.000Z","dependencies_parsed_at":"2022-08-26T06:21:54.613Z","dependency_job_id":null,"html_url":"https://github.com/bmhatfield/chef-deregistration-manager","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/bmhatfield%2Fchef-deregistration-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmhatfield%2Fchef-deregistration-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmhatfield%2Fchef-deregistration-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmhatfield%2Fchef-deregistration-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmhatfield","download_url":"https://codeload.github.com/bmhatfield/chef-deregistration-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239470820,"owners_count":19644190,"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":"2024-10-13T10:28:05.574Z","updated_at":"2025-11-05T19:30:33.709Z","avatar_url":"https://github.com/bmhatfield.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"chef-deregistration-manager\n===========================\n\n**Queue Based Chef Client Deregistration for the Cloud**\n\nBuilding Debian Packages\n------------------------\n    sudo aptitude install build-essential git python-stdeb\n    git clone https://github.com/bmhatfield/chef-deregistration-manager.git\n    cd chef-deregistration-manager\n    python setup.py --command-packages=stdeb.command bdist_deb\n\nchef-deregistration-manager\n---------------------------\nDependencies:\n  python-setuptools\n  python-configobj\n  python-boto (2+)\n  python-pychef (https://github.com/coderanger/pychef)\n  python-nagcgi (https://github.com/bmhatfield/NagiosCGI)\n\n    Polls SQS\n        If the queue does not exist:\n            Create queue - The name is a combination of queue_name and id, both configurable\n\n        If there are events:\n            Grab event.\n\n            If the event is a 'delete':\n                Put instance in downtime in Nagios\n                Dump Chef node JSON to disk\n                Remove Chef Node via Chef API\n                Remove Chef Client via Chef API\n\n                If there are no more events:\n                    Trigger chef-client run\n\n            If the event is an 'ensure':\n                Fire Alert\n                Recreate Node in Chef\n\n\n\nchef-registration-init (clients)\n--------------------------------\n\n    stop():\n      if runlevel == 0:\n        Issue SNS message to delete node\n\n\nFAQ\n---------------\n\nQ: It won't start.  \nA: Make sure that the dependencies are installed, and that you've created server.cfg and client.cfg (the install creates example.cfg)  \n\nQ: Why would I put my AWS credentials on every host?! That's insecure!  \nA: We use IAM to create credentials that only have permission to publish to the relevant queue. The server's credentials will need the ability to create and manage SNS endpoints as well as SQS queues, as well.  \n\n\n\nMore information\n----------------\nThis code based upon:\n\n    http://www.nuvolesystems.com/2012/07/02/chef-node-de-registration-for-autoscaling-groups/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmhatfield%2Fchef-deregistration-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmhatfield%2Fchef-deregistration-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmhatfield%2Fchef-deregistration-manager/lists"}