{"action":"closed","number":46,"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46","id":52563819,"html_url":"https://github.com/crowbar/crowbar-ha/pull/46","diff_url":"https://github.com/crowbar/crowbar-ha/pull/46.diff","patch_url":"https://github.com/crowbar/crowbar-ha/pull/46.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-ha/issues/46","number":46,"state":"closed","locked":false,"title":"Add pacemaker_transaction LWRP and :update action","user":{"login":"aspiers","id":100738,"avatar_url":"https://avatars.githubusercontent.com/u/100738?v=3","gravatar_id":"","url":"https://api.github.com/users/aspiers","html_url":"https://github.com/aspiers","followers_url":"https://api.github.com/users/aspiers/followers","following_url":"https://api.github.com/users/aspiers/following{/other_user}","gists_url":"https://api.github.com/users/aspiers/gists{/gist_id}","starred_url":"https://api.github.com/users/aspiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspiers/subscriptions","organizations_url":"https://api.github.com/users/aspiers/orgs","repos_url":"https://api.github.com/users/aspiers/repos","events_url":"https://api.github.com/users/aspiers/events{/privacy}","received_events_url":"https://api.github.com/users/aspiers/received_events","type":"User","site_admin":false},"body":"Add support for creating multiple objections in the Pacemaker CIB via a single transaction, and a corresponding new `:update` action for the other existing Pacemaker LWRPs which only updates existing resource and never creates new ones.  The combination of these two new features allows us to implement automatic deployment of compute node HA, and also makes it possible to clean up some really ugly long-standing hacks in the way we set up `clone`, `ms`, and similar objects.\r\n\r\nHere is an example usage:\r\n\r\n```ruby\r\npacemaker_primitive \"keystone\" do\r\n  ...\r\n  # this will never create anything, only converge an existing primitive to the right parameters\r\n  action :update \r\nend\r\n\r\npacemaker_clone \"cl-keystone\" do\r\n  rsc \"keystone\"\r\n  # this will never create anything, only converge an existing primitive to the right parameters\r\n  action :update\r\nend\r\n\r\npacemaker_transaction \"keystone clone\" do\r\n  cib_objects [\r\n    \"pacemaker_primitive[keystone]\",\r\n    \"pacemaker_clone[cl-keystone]\",\r\n  ]\r\n  # Create any of the objects in the above Array which don't yet exist.\r\n  # :commit_new is the default and only action, so this line is optional.\r\n  action :commit_new\r\nend\r\n```","created_at":"2015-12-03T17:14:48Z","updated_at":"2015-12-17T19:42:02Z","closed_at":"2015-12-17T19:42:02Z","merged_at":"2015-12-17T19:42:02Z","merge_commit_sha":"76f027af8b828843984d3863e8d9184bc51e3f15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46/comments","review_comment_url":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ha/issues/46/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ha/statuses/14eb983976d6708b7206c15e3a11bd141355141b","head":{"label":"aspiers:update-action","ref":"update-action","sha":"14eb983976d6708b7206c15e3a11bd141355141b","user":{"login":"aspiers","id":100738,"avatar_url":"https://avatars.githubusercontent.com/u/100738?v=3","gravatar_id":"","url":"https://api.github.com/users/aspiers","html_url":"https://github.com/aspiers","followers_url":"https://api.github.com/users/aspiers/followers","following_url":"https://api.github.com/users/aspiers/following{/other_user}","gists_url":"https://api.github.com/users/aspiers/gists{/gist_id}","starred_url":"https://api.github.com/users/aspiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspiers/subscriptions","organizations_url":"https://api.github.com/users/aspiers/orgs","repos_url":"https://api.github.com/users/aspiers/repos","events_url":"https://api.github.com/users/aspiers/events{/privacy}","received_events_url":"https://api.github.com/users/aspiers/received_events","type":"User","site_admin":false},"repo":{"id":41430282,"name":"crowbar-ha","full_name":"aspiers/crowbar-ha","owner":{"login":"aspiers","id":100738,"avatar_url":"https://avatars.githubusercontent.com/u/100738?v=3","gravatar_id":"","url":"https://api.github.com/users/aspiers","html_url":"https://github.com/aspiers","followers_url":"https://api.github.com/users/aspiers/followers","following_url":"https://api.github.com/users/aspiers/following{/other_user}","gists_url":"https://api.github.com/users/aspiers/gists{/gist_id}","starred_url":"https://api.github.com/users/aspiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspiers/subscriptions","organizations_url":"https://api.github.com/users/aspiers/orgs","repos_url":"https://api.github.com/users/aspiers/repos","events_url":"https://api.github.com/users/aspiers/events{/privacy}","received_events_url":"https://api.github.com/users/aspiers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aspiers/crowbar-ha","description":"HA deployment for Crowbar","fork":true,"url":"https://api.github.com/repos/aspiers/crowbar-ha","forks_url":"https://api.github.com/repos/aspiers/crowbar-ha/forks","keys_url":"https://api.github.com/repos/aspiers/crowbar-ha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspiers/crowbar-ha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspiers/crowbar-ha/teams","hooks_url":"https://api.github.com/repos/aspiers/crowbar-ha/hooks","issue_events_url":"https://api.github.com/repos/aspiers/crowbar-ha/issues/events{/number}","events_url":"https://api.github.com/repos/aspiers/crowbar-ha/events","assignees_url":"https://api.github.com/repos/aspiers/crowbar-ha/assignees{/user}","branches_url":"https://api.github.com/repos/aspiers/crowbar-ha/branches{/branch}","tags_url":"https://api.github.com/repos/aspiers/crowbar-ha/tags","blobs_url":"https://api.github.com/repos/aspiers/crowbar-ha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspiers/crowbar-ha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspiers/crowbar-ha/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspiers/crowbar-ha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspiers/crowbar-ha/statuses/{sha}","languages_url":"https://api.github.com/repos/aspiers/crowbar-ha/languages","stargazers_url":"https://api.github.com/repos/aspiers/crowbar-ha/stargazers","contributors_url":"https://api.github.com/repos/aspiers/crowbar-ha/contributors","subscribers_url":"https://api.github.com/repos/aspiers/crowbar-ha/subscribers","subscription_url":"https://api.github.com/repos/aspiers/crowbar-ha/subscription","commits_url":"https://api.github.com/repos/aspiers/crowbar-ha/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspiers/crowbar-ha/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspiers/crowbar-ha/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspiers/crowbar-ha/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspiers/crowbar-ha/contents/{+path}","compare_url":"https://api.github.com/repos/aspiers/crowbar-ha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspiers/crowbar-ha/merges","archive_url":"https://api.github.com/repos/aspiers/crowbar-ha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspiers/crowbar-ha/downloads","issues_url":"https://api.github.com/repos/aspiers/crowbar-ha/issues{/number}","pulls_url":"https://api.github.com/repos/aspiers/crowbar-ha/pulls{/number}","milestones_url":"https://api.github.com/repos/aspiers/crowbar-ha/milestones{/number}","notifications_url":"https://api.github.com/repos/aspiers/crowbar-ha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspiers/crowbar-ha/labels{/name}","releases_url":"https://api.github.com/repos/aspiers/crowbar-ha/releases{/id}","created_at":"2015-08-26T14:26:14Z","updated_at":"2015-08-26T14:26:15Z","pushed_at":"2015-12-17T12:04:41Z","git_url":"git://github.com/aspiers/crowbar-ha.git","ssh_url":"git@github.com:aspiers/crowbar-ha.git","clone_url":"https://github.com/aspiers/crowbar-ha.git","svn_url":"https://github.com/aspiers/crowbar-ha","homepage":"","size":1147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crowbar:master","ref":"master","sha":"1fd0cb1ba2ccadd99c6b7e0389579dc81aee2da1","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":39006836,"name":"crowbar-ha","full_name":"crowbar/crowbar-ha","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/crowbar-ha","description":"HA deployment for Crowbar","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-ha","forks_url":"https://api.github.com/repos/crowbar/crowbar-ha/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-ha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-ha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-ha/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-ha/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-ha/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-ha/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-ha/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-ha/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-ha/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-ha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-ha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-ha/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-ha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ha/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-ha/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-ha/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-ha/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-ha/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-ha/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-ha/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-ha/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ha/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-ha/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-ha/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-ha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-ha/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-ha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-ha/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-ha/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-ha/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-ha/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-ha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-ha/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-ha/releases{/id}","created_at":"2015-07-13T10:53:43Z","updated_at":"2015-08-26T19:58:29Z","pushed_at":"2015-12-17T19:42:02Z","git_url":"git://github.com/crowbar/crowbar-ha.git","ssh_url":"git@github.com:crowbar/crowbar-ha.git","clone_url":"https://github.com/crowbar/crowbar-ha.git","svn_url":"https://github.com/crowbar/crowbar-ha","homepage":"","size":1159,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":14,"forks":16,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46"},"html":{"href":"https://github.com/crowbar/crowbar-ha/pull/46"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/issues/46"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-ha/statuses/14eb983976d6708b7206c15e3a11bd141355141b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dirkmueller","id":1029152,"avatar_url":"https://avatars.githubusercontent.com/u/1029152?v=3","gravatar_id":"","url":"https://api.github.com/users/dirkmueller","html_url":"https://github.com/dirkmueller","followers_url":"https://api.github.com/users/dirkmueller/followers","following_url":"https://api.github.com/users/dirkmueller/following{/other_user}","gists_url":"https://api.github.com/users/dirkmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/dirkmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirkmueller/subscriptions","organizations_url":"https://api.github.com/users/dirkmueller/orgs","repos_url":"https://api.github.com/users/dirkmueller/repos","events_url":"https://api.github.com/users/dirkmueller/events{/privacy}","received_events_url":"https://api.github.com/users/dirkmueller/received_events","type":"User","site_admin":false},"comments":7,"review_comments":18,"commits":9,"additions":691,"deletions":143,"changed_files":48}}