{"action":"created","comment":{"url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments/44056277","id":44056277,"diff_hunk":"@@ -0,0 +1,43 @@\n+---\n+- name: lvm\n+  hosts: all\n+  tasks:\n+\n+    - name: ensure values have been provided\n+      fail:\n+        msg: \"Please provide necessary values.\"\n+      when:\n+        lvm.volume_group is not defined or\n+        lvm.physical_volumes is not defined or\n+        lvm.logical_volume is not defined or\n+        lvm.mount_point is not defined\n+\n+    - name: install dependencies\n+      apt:\n+        pkg: lvm2\n+        state: present\n+\n+    - name: create volume group\n+      lvg:\n+        vg: \"{{ lvm.volume_group }}\"\n+        pvs: \"{{ lvm.physical_volumes }}\"\n+        pesize: \"{{ lvm.physical_extent_size }}\"\n+\n+    - name: create logical volume\n+      lvol:\n+        vg: \"{{ lvm.volume_group }}\"\n+        lv: \"{{ lvm.logical_volume }}\"\n+        size: \"{{ lvm.size }}\"\n+\n+    - name: create filesystem\n+      filesystem:\n+        fstype: \"{{ lvm.filesystem }}\"\n+        dev: \"/dev/{{ lvm.volume_group }}/{{ lvm.logical_volume }}\"\n+\n+    # this also configures device in /etc/fstab!\n+    - name: mount filesystem\n+      mount:\n+        name: \"{{ lvm.mount_point }}\"\n+        src: \"/dev/{{ lvm.volume_group }}/{{ lvm.logical_volume }}\"\n+        fstype: \"{{ lvm.filesystem }}\"\n+        state: mounted","path":"playbooks/lvm.yml","position":43,"original_position":43,"commit_id":"2f1d5d6469a996f8dd1c64e68af61cf19f2315d2","original_commit_id":"2f1d5d6469a996f8dd1c64e68af61cf19f2315d2","user":{"login":"j2sol","id":523287,"avatar_url":"https://avatars.githubusercontent.com/u/523287?v=3","gravatar_id":"","url":"https://api.github.com/users/j2sol","html_url":"https://github.com/j2sol","followers_url":"https://api.github.com/users/j2sol/followers","following_url":"https://api.github.com/users/j2sol/following{/other_user}","gists_url":"https://api.github.com/users/j2sol/gists{/gist_id}","starred_url":"https://api.github.com/users/j2sol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2sol/subscriptions","organizations_url":"https://api.github.com/users/j2sol/orgs","repos_url":"https://api.github.com/users/j2sol/repos","events_url":"https://api.github.com/users/j2sol/events{/privacy}","received_events_url":"https://api.github.com/users/j2sol/received_events","type":"User","site_admin":false},"body":"and here.","created_at":"2015-11-05T19:23:47Z","updated_at":"2015-11-05T19:23:47Z","html_url":"https://github.com/blueboxgroup/ursula/pull/1337#discussion_r44056277","pull_request_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337","_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments/44056277"},"html":{"href":"https://github.com/blueboxgroup/ursula/pull/1337#discussion_r44056277"},"pull_request":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337"}}},"pull_request":{"url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337","id":49785347,"html_url":"https://github.com/blueboxgroup/ursula/pull/1337","diff_url":"https://github.com/blueboxgroup/ursula/pull/1337.diff","patch_url":"https://github.com/blueboxgroup/ursula/pull/1337.patch","issue_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/1337","number":1337,"state":"open","locked":false,"title":"Add playbook to support lvm","user":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"body":"This creates a logical volume across several physical devices.\r\nThe lv is then mounted, say, at `/var/lib/nova/instances`.\r\nThis will allow us to later extend the volume without affecting \r\nthe mount point. \r\n\r\nExample usage:\r\n`ursula envs/example/lvm playbooks/lvm.yml`","created_at":"2015-11-05T05:56:25Z","updated_at":"2015-11-05T19:23:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4065d60adef067342857143469eaa35fbecf117","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337/commits","review_comments_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337/comments","review_comment_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/1337/comments","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula/statuses/2f1d5d6469a996f8dd1c64e68af61cf19f2315d2","head":{"label":"msambol:lvm","ref":"lvm","sha":"2f1d5d6469a996f8dd1c64e68af61cf19f2315d2","user":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"repo":{"id":38712741,"name":"ursula","full_name":"msambol/ursula","owner":{"login":"msambol","id":3310356,"avatar_url":"https://avatars.githubusercontent.com/u/3310356?v=3","gravatar_id":"","url":"https://api.github.com/users/msambol","html_url":"https://github.com/msambol","followers_url":"https://api.github.com/users/msambol/followers","following_url":"https://api.github.com/users/msambol/following{/other_user}","gists_url":"https://api.github.com/users/msambol/gists{/gist_id}","starred_url":"https://api.github.com/users/msambol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msambol/subscriptions","organizations_url":"https://api.github.com/users/msambol/orgs","repos_url":"https://api.github.com/users/msambol/repos","events_url":"https://api.github.com/users/msambol/events{/privacy}","received_events_url":"https://api.github.com/users/msambol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msambol/ursula","description":"Ansible playbooks for operating OpenStack - Powers Blue Box Cloud.","fork":true,"url":"https://api.github.com/repos/msambol/ursula","forks_url":"https://api.github.com/repos/msambol/ursula/forks","keys_url":"https://api.github.com/repos/msambol/ursula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msambol/ursula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msambol/ursula/teams","hooks_url":"https://api.github.com/repos/msambol/ursula/hooks","issue_events_url":"https://api.github.com/repos/msambol/ursula/issues/events{/number}","events_url":"https://api.github.com/repos/msambol/ursula/events","assignees_url":"https://api.github.com/repos/msambol/ursula/assignees{/user}","branches_url":"https://api.github.com/repos/msambol/ursula/branches{/branch}","tags_url":"https://api.github.com/repos/msambol/ursula/tags","blobs_url":"https://api.github.com/repos/msambol/ursula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msambol/ursula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msambol/ursula/git/refs{/sha}","trees_url":"https://api.github.com/repos/msambol/ursula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msambol/ursula/statuses/{sha}","languages_url":"https://api.github.com/repos/msambol/ursula/languages","stargazers_url":"https://api.github.com/repos/msambol/ursula/stargazers","contributors_url":"https://api.github.com/repos/msambol/ursula/contributors","subscribers_url":"https://api.github.com/repos/msambol/ursula/subscribers","subscription_url":"https://api.github.com/repos/msambol/ursula/subscription","commits_url":"https://api.github.com/repos/msambol/ursula/commits{/sha}","git_commits_url":"https://api.github.com/repos/msambol/ursula/git/commits{/sha}","comments_url":"https://api.github.com/repos/msambol/ursula/comments{/number}","issue_comment_url":"https://api.github.com/repos/msambol/ursula/issues/comments{/number}","contents_url":"https://api.github.com/repos/msambol/ursula/contents/{+path}","compare_url":"https://api.github.com/repos/msambol/ursula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msambol/ursula/merges","archive_url":"https://api.github.com/repos/msambol/ursula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msambol/ursula/downloads","issues_url":"https://api.github.com/repos/msambol/ursula/issues{/number}","pulls_url":"https://api.github.com/repos/msambol/ursula/pulls{/number}","milestones_url":"https://api.github.com/repos/msambol/ursula/milestones{/number}","notifications_url":"https://api.github.com/repos/msambol/ursula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msambol/ursula/labels{/name}","releases_url":"https://api.github.com/repos/msambol/ursula/releases{/id}","created_at":"2015-07-07T20:24:01Z","updated_at":"2015-07-07T20:24:02Z","pushed_at":"2015-11-05T15:01:20Z","git_url":"git://github.com/msambol/ursula.git","ssh_url":"git@github.com:msambol/ursula.git","clone_url":"https://github.com/msambol/ursula.git","svn_url":"https://github.com/msambol/ursula","homepage":"https://www.blueboxcloud.com","size":3938,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"blueboxgroup:master","ref":"master","sha":"d2e641bdb9ed4d759353e58a19ccfa6773ba588d","user":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":11848896,"name":"ursula","full_name":"blueboxgroup/ursula","owner":{"login":"blueboxgroup","id":458705,"avatar_url":"https://avatars.githubusercontent.com/u/458705?v=3","gravatar_id":"","url":"https://api.github.com/users/blueboxgroup","html_url":"https://github.com/blueboxgroup","followers_url":"https://api.github.com/users/blueboxgroup/followers","following_url":"https://api.github.com/users/blueboxgroup/following{/other_user}","gists_url":"https://api.github.com/users/blueboxgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/blueboxgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueboxgroup/subscriptions","organizations_url":"https://api.github.com/users/blueboxgroup/orgs","repos_url":"https://api.github.com/users/blueboxgroup/repos","events_url":"https://api.github.com/users/blueboxgroup/events{/privacy}","received_events_url":"https://api.github.com/users/blueboxgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueboxgroup/ursula","description":"Ansible playbooks for operating OpenStack - Powering Blue Box Cloud.","fork":false,"url":"https://api.github.com/repos/blueboxgroup/ursula","forks_url":"https://api.github.com/repos/blueboxgroup/ursula/forks","keys_url":"https://api.github.com/repos/blueboxgroup/ursula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueboxgroup/ursula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueboxgroup/ursula/teams","hooks_url":"https://api.github.com/repos/blueboxgroup/ursula/hooks","issue_events_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/events{/number}","events_url":"https://api.github.com/repos/blueboxgroup/ursula/events","assignees_url":"https://api.github.com/repos/blueboxgroup/ursula/assignees{/user}","branches_url":"https://api.github.com/repos/blueboxgroup/ursula/branches{/branch}","tags_url":"https://api.github.com/repos/blueboxgroup/ursula/tags","blobs_url":"https://api.github.com/repos/blueboxgroup/ursula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueboxgroup/ursula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueboxgroup/ursula/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueboxgroup/ursula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueboxgroup/ursula/statuses/{sha}","languages_url":"https://api.github.com/repos/blueboxgroup/ursula/languages","stargazers_url":"https://api.github.com/repos/blueboxgroup/ursula/stargazers","contributors_url":"https://api.github.com/repos/blueboxgroup/ursula/contributors","subscribers_url":"https://api.github.com/repos/blueboxgroup/ursula/subscribers","subscription_url":"https://api.github.com/repos/blueboxgroup/ursula/subscription","commits_url":"https://api.github.com/repos/blueboxgroup/ursula/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueboxgroup/ursula/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueboxgroup/ursula/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueboxgroup/ursula/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueboxgroup/ursula/contents/{+path}","compare_url":"https://api.github.com/repos/blueboxgroup/ursula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueboxgroup/ursula/merges","archive_url":"https://api.github.com/repos/blueboxgroup/ursula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueboxgroup/ursula/downloads","issues_url":"https://api.github.com/repos/blueboxgroup/ursula/issues{/number}","pulls_url":"https://api.github.com/repos/blueboxgroup/ursula/pulls{/number}","milestones_url":"https://api.github.com/repos/blueboxgroup/ursula/milestones{/number}","notifications_url":"https://api.github.com/repos/blueboxgroup/ursula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueboxgroup/ursula/labels{/name}","releases_url":"https://api.github.com/repos/blueboxgroup/ursula/releases{/id}","created_at":"2013-08-02T17:37:26Z","updated_at":"2015-11-03T15:23:00Z","pushed_at":"2015-11-05T17:23:11Z","git_url":"git://github.com/blueboxgroup/ursula.git","ssh_url":"git@github.com:blueboxgroup/ursula.git","clone_url":"https://github.com/blueboxgroup/ursula.git","svn_url":"https://github.com/blueboxgroup/ursula","homepage":"https://www.blueboxcloud.com","size":15449,"stargazers_count":109,"watchers_count":109,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":38,"forks":82,"open_issues":38,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337"},"html":{"href":"https://github.com/blueboxgroup/ursula/pull/1337"},"issue":{"href":"https://api.github.com/repos/blueboxgroup/ursula/issues/1337"},"comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula/issues/1337/comments"},"review_comments":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337/comments"},"review_comment":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blueboxgroup/ursula/pulls/1337/commits"},"statuses":{"href":"https://api.github.com/repos/blueboxgroup/ursula/statuses/2f1d5d6469a996f8dd1c64e68af61cf19f2315d2"}}}}