{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/comments/188105329","pull_request_review_id":120018140,"id":188105329,"diff_hunk":"@@ -0,0 +1,44 @@\n+# Cookbook Name:: stig\n+# Recipe:: local_users\n+# Author: Craig Poma <cpoma@mitre.org>\n+#\n+# Description: Remove users and folders that do not belong. Set shells for\n+# various service accounts.\n+#\n+# Remove Directories first, some may be related to\n+# users getting deleted below.\n+node.default['stig']['local_users']['dirs_to_delete']['dir'].each do |dir|\n+  directory \"#{dir}.to_s\" do\n+    action :delete\n+  end\n+end\n+","path":"recipes/local_users.rb","position":null,"original_position":15,"commit_id":"f84f4b5fd765e6ffe9c031f40fae8997e442c7a4","original_commit_id":"530169f4683a523a4d895471b373aa5577d6399d","user":{"login":"kdshah1","id":17769559,"avatar_url":"https://avatars1.githubusercontent.com/u/17769559?v=4","gravatar_id":"","url":"https://api.github.com/users/kdshah1","html_url":"https://github.com/kdshah1","followers_url":"https://api.github.com/users/kdshah1/followers","following_url":"https://api.github.com/users/kdshah1/following{/other_user}","gists_url":"https://api.github.com/users/kdshah1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdshah1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdshah1/subscriptions","organizations_url":"https://api.github.com/users/kdshah1/orgs","repos_url":"https://api.github.com/users/kdshah1/repos","events_url":"https://api.github.com/users/kdshah1/events{/privacy}","received_events_url":"https://api.github.com/users/kdshah1/received_events","type":"User","site_admin":false},"body":"Updated the recipe to use Chef User resource and added condition based on new attribute added for each user whether to delete or not.","created_at":"2018-05-14T21:32:30Z","updated_at":"2018-05-14T21:32:30Z","html_url":"https://github.com/USGS-CIDA/stig/pull/137#discussion_r188105329","pull_request_url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/comments/188105329"},"html":{"href":"https://github.com/USGS-CIDA/stig/pull/137#discussion_r188105329"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137"}},"in_reply_to_id":187723151},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137","id":187539326,"html_url":"https://github.com/USGS-CIDA/stig/pull/137","diff_url":"https://github.com/USGS-CIDA/stig/pull/137.diff","patch_url":"https://github.com/USGS-CIDA/stig/pull/137.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/stig/issues/137","number":137,"state":"open","locked":false,"title":"Disa stig 21 local user settings","user":{"login":"kdshah1","id":17769559,"avatar_url":"https://avatars1.githubusercontent.com/u/17769559?v=4","gravatar_id":"","url":"https://api.github.com/users/kdshah1","html_url":"https://github.com/kdshah1","followers_url":"https://api.github.com/users/kdshah1/followers","following_url":"https://api.github.com/users/kdshah1/following{/other_user}","gists_url":"https://api.github.com/users/kdshah1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdshah1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdshah1/subscriptions","organizations_url":"https://api.github.com/users/kdshah1/orgs","repos_url":"https://api.github.com/users/kdshah1/repos","events_url":"https://api.github.com/users/kdshah1/events{/privacy}","received_events_url":"https://api.github.com/users/kdshah1/received_events","type":"User","site_admin":false},"body":"Remove users and folders that do not belong. Set shells for various service accounts.","created_at":"2018-05-11T18:39:17Z","updated_at":"2018-05-14T21:32:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88283d680ae28350cfbc83ed10158fb45653eae6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/stig/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/stig/issues/137/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/stig/statuses/f84f4b5fd765e6ffe9c031f40fae8997e442c7a4","head":{"label":"kdshah1:DISA-STIG-21_LOCAL_USER_SETTINGS","ref":"DISA-STIG-21_LOCAL_USER_SETTINGS","sha":"f84f4b5fd765e6ffe9c031f40fae8997e442c7a4","user":{"login":"kdshah1","id":17769559,"avatar_url":"https://avatars1.githubusercontent.com/u/17769559?v=4","gravatar_id":"","url":"https://api.github.com/users/kdshah1","html_url":"https://github.com/kdshah1","followers_url":"https://api.github.com/users/kdshah1/followers","following_url":"https://api.github.com/users/kdshah1/following{/other_user}","gists_url":"https://api.github.com/users/kdshah1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdshah1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdshah1/subscriptions","organizations_url":"https://api.github.com/users/kdshah1/orgs","repos_url":"https://api.github.com/users/kdshah1/repos","events_url":"https://api.github.com/users/kdshah1/events{/privacy}","received_events_url":"https://api.github.com/users/kdshah1/received_events","type":"User","site_admin":false},"repo":{"id":132619224,"name":"stig","full_name":"kdshah1/stig","owner":{"login":"kdshah1","id":17769559,"avatar_url":"https://avatars1.githubusercontent.com/u/17769559?v=4","gravatar_id":"","url":"https://api.github.com/users/kdshah1","html_url":"https://github.com/kdshah1","followers_url":"https://api.github.com/users/kdshah1/followers","following_url":"https://api.github.com/users/kdshah1/following{/other_user}","gists_url":"https://api.github.com/users/kdshah1/gists{/gist_id}","starred_url":"https://api.github.com/users/kdshah1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdshah1/subscriptions","organizations_url":"https://api.github.com/users/kdshah1/orgs","repos_url":"https://api.github.com/users/kdshah1/repos","events_url":"https://api.github.com/users/kdshah1/events{/privacy}","received_events_url":"https://api.github.com/users/kdshah1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kdshah1/stig","description":"Chef cookbook implementation of the CIS CentOS and Ubuntu Linux 6 Benchmark","fork":true,"url":"https://api.github.com/repos/kdshah1/stig","forks_url":"https://api.github.com/repos/kdshah1/stig/forks","keys_url":"https://api.github.com/repos/kdshah1/stig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdshah1/stig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdshah1/stig/teams","hooks_url":"https://api.github.com/repos/kdshah1/stig/hooks","issue_events_url":"https://api.github.com/repos/kdshah1/stig/issues/events{/number}","events_url":"https://api.github.com/repos/kdshah1/stig/events","assignees_url":"https://api.github.com/repos/kdshah1/stig/assignees{/user}","branches_url":"https://api.github.com/repos/kdshah1/stig/branches{/branch}","tags_url":"https://api.github.com/repos/kdshah1/stig/tags","blobs_url":"https://api.github.com/repos/kdshah1/stig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdshah1/stig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdshah1/stig/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdshah1/stig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdshah1/stig/statuses/{sha}","languages_url":"https://api.github.com/repos/kdshah1/stig/languages","stargazers_url":"https://api.github.com/repos/kdshah1/stig/stargazers","contributors_url":"https://api.github.com/repos/kdshah1/stig/contributors","subscribers_url":"https://api.github.com/repos/kdshah1/stig/subscribers","subscription_url":"https://api.github.com/repos/kdshah1/stig/subscription","commits_url":"https://api.github.com/repos/kdshah1/stig/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdshah1/stig/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdshah1/stig/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdshah1/stig/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdshah1/stig/contents/{+path}","compare_url":"https://api.github.com/repos/kdshah1/stig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdshah1/stig/merges","archive_url":"https://api.github.com/repos/kdshah1/stig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdshah1/stig/downloads","issues_url":"https://api.github.com/repos/kdshah1/stig/issues{/number}","pulls_url":"https://api.github.com/repos/kdshah1/stig/pulls{/number}","milestones_url":"https://api.github.com/repos/kdshah1/stig/milestones{/number}","notifications_url":"https://api.github.com/repos/kdshah1/stig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdshah1/stig/labels{/name}","releases_url":"https://api.github.com/repos/kdshah1/stig/releases{/id}","deployments_url":"https://api.github.com/repos/kdshah1/stig/deployments","created_at":"2018-05-08T14:15:01Z","updated_at":"2018-05-10T19:55:20Z","pushed_at":"2018-05-14T21:20:42Z","git_url":"git://github.com/kdshah1/stig.git","ssh_url":"git@github.com:kdshah1/stig.git","clone_url":"https://github.com/kdshah1/stig.git","svn_url":"https://github.com/kdshah1/stig","homepage":"","size":566,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-CIDA:master","ref":"master","sha":"8ae61973180699d789a511f2dcf8e7deecf0b13b","user":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars2.githubusercontent.com/u/918179?v=4","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":28145880,"name":"stig","full_name":"USGS-CIDA/stig","owner":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars2.githubusercontent.com/u/918179?v=4","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-CIDA/stig","description":"Chef cookbook implementation of the CIS CentOS and Ubuntu Linux 6 Benchmark","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/stig","forks_url":"https://api.github.com/repos/USGS-CIDA/stig/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/stig/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/stig/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/stig/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/stig/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/stig/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/stig/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/stig/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/stig/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/stig/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/stig/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/stig/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/stig/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/stig/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/stig/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/stig/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/stig/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/stig/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/stig/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/stig/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/stig/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/stig/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/stig/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/stig/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/stig/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/stig/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/stig/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/stig/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/stig/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/stig/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/stig/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/stig/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/stig/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/stig/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/stig/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-CIDA/stig/deployments","created_at":"2014-12-17T16:40:22Z","updated_at":"2018-05-14T14:25:01Z","pushed_at":"2018-05-14T21:20:44Z","git_url":"git://github.com/USGS-CIDA/stig.git","ssh_url":"git@github.com:USGS-CIDA/stig.git","clone_url":"https://github.com/USGS-CIDA/stig.git","svn_url":"https://github.com/USGS-CIDA/stig","homepage":"","size":552,"stargazers_count":26,"watchers_count":26,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":29,"open_issues":9,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137"},"html":{"href":"https://github.com/USGS-CIDA/stig/pull/137"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/stig/issues/137"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/stig/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/stig/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/stig/statuses/f84f4b5fd765e6ffe9c031f40fae8997e442c7a4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kdshah1"}}