{"action":"created","comment":{"url":"https://api.github.com/repos/StackStorm/st2cd/pulls/comments/51610009","id":51610009,"diff_hunk":"@@ -0,0 +1,145 @@\n+---\n+  vars:\n+    root_dir: \"/opt/puppet\"\n+    st2_username: \"cibuild\"\n+    st2_password: \"cibuild\"\n+  chain:\n+    -\n+      name: \"create_vm_role\"\n+      ref: \"st2cd.create_vm_role\"\n+      params:\n+        hostname: \"{{hostname}}\"\n+        instance_type: \"{{instance_type}}\"\n+        environment: \"{{environment}}\"\n+        key_name: \"{{key_name}}\"\n+        keyfile: \"{{keyfile}}\"\n+        distro: \"{{distro}}\"\n+        role: \"{{role}}\"\n+      publish:\n+        distro: \"{{distro}}\"\n+      on-success: \"delete_existing_puppet_directory\"\n+    -\n+      name: \"delete_existing_puppet_directory\"\n+      ref: \"linux.rm\"\n+      params:\n+        hosts: \"{{hostname}}\"\n+        target: \"{{root_dir}}\"\n+        force: true\n+        recursive: true\n+        sudo: true\n+      on-success: \"write_answers_file\"\n+    -\n+      name: \"write_answers_file\"\n+      ref: \"core.remote_sudo\"\n+      params:\n+        hosts: \"{{hostname}}\"\n+        # Note: We don't specify enterprise license key and other info.\n+        # This information is provided via the installer.\n+        cmd: |\n+            cat <<EOT >> /tmp/answers.yaml\n+            st2::version: {{version}}\n+            st2::revision: {{build}}\n+            st2::repo_base: {{dl_server}}\n+            EOT\n+      on-success: \"bootstrap_workroom_with_answers_file\"\n+    -\n+      name: \"bootstrap_workroom_with_answers_file\"\n+      ref: \"core.remote_sudo\"\n+      params:\n+        env:\n+          ENV: \"{{branch}}\"\n+          SKIP_OK_CHECK: \"true\"\n+          DISABLE_HUBOT: \"true\"\n+          CI: \"true\"\n+        hosts: \"{{hostname}}\"\n+        cmd: \"curl -sSL https://install.stackstorm.com/  | sudo sh -s -- -a /tmp/answers.yaml\"\n+        timeout: 3600\n+      on-success: \"verify_no_default_keys_are_installed_for_stanley_user\"\n+      on-failure: \"rerun_bootstrap_workroom_with_answers_file\"\n+    -\n+      name: \"rerun_bootstrap_workroom_with_answers_file\"\n+      ref: \"core.remote_sudo\"\n+      params:\n+        env:\n+          ENV: \"{{branch}}\"\n+          SKIP_OK_CHECK: \"true\"\n+          DISABLE_HUBOT: \"true\"\n+          CI: \"true\"\n+        hosts: \"{{hostname}}\"\n+        cmd: \"curl -sSL https://install.stackstorm.com/  | sudo sh -s -- -a /tmp/answers.yaml\"\n+        timeout: 3600\n+      on-success: \"verify_no_default_keys_are_installed_for_stanley_user\"\n+    -\n+      name: \"verify_no_default_keys_are_installed_for_stanley_user\"\n+      ref: \"st2cd.st2workroom_verify_default_stanley_ssh_keys_are_not_installed\"\n+      params:\n+        hosts: \"{{hostname}}\"\n+        sudo: true\n+      on-success: \"run_installer\"","path":"actions/workflows/st2workroom_st2installer_st2enterprise_test.yaml","position":78,"original_position":78,"commit_id":"987952cb62403f0a119c43e8a5e8634d36dbc7d3","original_commit_id":"987952cb62403f0a119c43e8a5e8634d36dbc7d3","user":{"login":"manasdk","id":1776099,"avatar_url":"https://avatars.githubusercontent.com/u/1776099?v=3","gravatar_id":"","url":"https://api.github.com/users/manasdk","html_url":"https://github.com/manasdk","followers_url":"https://api.github.com/users/manasdk/followers","following_url":"https://api.github.com/users/manasdk/following{/other_user}","gists_url":"https://api.github.com/users/manasdk/gists{/gist_id}","starred_url":"https://api.github.com/users/manasdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manasdk/subscriptions","organizations_url":"https://api.github.com/users/manasdk/orgs","repos_url":"https://api.github.com/users/manasdk/repos","events_url":"https://api.github.com/users/manasdk/events{/privacy}","received_events_url":"https://api.github.com/users/manasdk/received_events","type":"User","site_admin":false},"body":"Once `answer.yaml` is present in /opt/puppet/hieradata/ and installer is run AFAICT it writes `answers.json`. Per my understanding `answers.yaml` > `answers.json` in the precedence order and only 1 of those files is read or do we perform a smart merge? ","created_at":"2016-02-02T18:18:13Z","updated_at":"2016-02-02T18:18:13Z","html_url":"https://github.com/StackStorm/st2cd/pull/117#discussion_r51610009","pull_request_url":"https://api.github.com/repos/StackStorm/st2cd/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/comments/51610009"},"html":{"href":"https://github.com/StackStorm/st2cd/pull/117#discussion_r51610009"},"pull_request":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2cd/pulls/117","id":57854557,"html_url":"https://github.com/StackStorm/st2cd/pull/117","diff_url":"https://github.com/StackStorm/st2cd/pull/117.diff","patch_url":"https://github.com/StackStorm/st2cd/pull/117.patch","issue_url":"https://api.github.com/repos/StackStorm/st2cd/issues/117","number":117,"state":"open","locked":false,"title":" End to end test for st2workroom and installer","user":{"login":"Kami","id":125088,"avatar_url":"https://avatars.githubusercontent.com/u/125088?v=3","gravatar_id":"","url":"https://api.github.com/users/Kami","html_url":"https://github.com/Kami","followers_url":"https://api.github.com/users/Kami/followers","following_url":"https://api.github.com/users/Kami/following{/other_user}","gists_url":"https://api.github.com/users/Kami/gists{/gist_id}","starred_url":"https://api.github.com/users/Kami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kami/subscriptions","organizations_url":"https://api.github.com/users/Kami/orgs","repos_url":"https://api.github.com/users/Kami/repos","events_url":"https://api.github.com/users/Kami/events{/privacy}","received_events_url":"https://api.github.com/users/Kami/received_events","type":"User","site_admin":false},"body":"This pull request adds end to end test which also invoke the installer.\r\n\r\nThey are based on the existing st2workroom st2enteprise test. The only difference is that instead of providing some of the values in answer.yaml file, those values are provided via the installer and installer is also used to trigger the puppet run.","created_at":"2016-02-01T15:30:24Z","updated_at":"2016-02-02T18:18:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"851b18d5a83901964159fc34357e270b913b562c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2cd/pulls/117/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2cd/pulls/117/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2cd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2cd/issues/117/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2cd/statuses/987952cb62403f0a119c43e8a5e8634d36dbc7d3","head":{"label":"StackStorm:st2installer_end_to_end_tests","ref":"st2installer_end_to_end_tests","sha":"987952cb62403f0a119c43e8a5e8634d36dbc7d3","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":39860375,"name":"st2cd","full_name":"StackStorm/st2cd","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2cd","description":"Content pack for internal build process at StackStorm","fork":false,"url":"https://api.github.com/repos/StackStorm/st2cd","forks_url":"https://api.github.com/repos/StackStorm/st2cd/forks","keys_url":"https://api.github.com/repos/StackStorm/st2cd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2cd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2cd/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2cd/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2cd/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2cd/events","assignees_url":"https://api.github.com/repos/StackStorm/st2cd/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2cd/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2cd/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2cd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2cd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2cd/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2cd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2cd/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2cd/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2cd/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2cd/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2cd/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2cd/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2cd/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2cd/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2cd/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2cd/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2cd/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2cd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2cd/merges","archive_url":"https://api.github.com/repos/StackStorm/st2cd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2cd/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2cd/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2cd/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2cd/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2cd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2cd/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2cd/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2cd/deployments","created_at":"2015-07-28T22:14:52Z","updated_at":"2016-01-12T10:14:17Z","pushed_at":"2016-02-02T17:51:39Z","git_url":"git://github.com/StackStorm/st2cd.git","ssh_url":"git@github.com:StackStorm/st2cd.git","clone_url":"https://github.com/StackStorm/st2cd.git","svn_url":"https://github.com/StackStorm/st2cd","homepage":null,"size":545,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"da2fe2d46e8d1ea72ca3f9af07ae701d6cc7531a","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":39860375,"name":"st2cd","full_name":"StackStorm/st2cd","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2cd","description":"Content pack for internal build process at StackStorm","fork":false,"url":"https://api.github.com/repos/StackStorm/st2cd","forks_url":"https://api.github.com/repos/StackStorm/st2cd/forks","keys_url":"https://api.github.com/repos/StackStorm/st2cd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2cd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2cd/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2cd/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2cd/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2cd/events","assignees_url":"https://api.github.com/repos/StackStorm/st2cd/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2cd/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2cd/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2cd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2cd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2cd/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2cd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2cd/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2cd/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2cd/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2cd/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2cd/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2cd/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2cd/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2cd/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2cd/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2cd/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2cd/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2cd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2cd/merges","archive_url":"https://api.github.com/repos/StackStorm/st2cd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2cd/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2cd/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2cd/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2cd/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2cd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2cd/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2cd/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2cd/deployments","created_at":"2015-07-28T22:14:52Z","updated_at":"2016-01-12T10:14:17Z","pushed_at":"2016-02-02T17:51:39Z","git_url":"git://github.com/StackStorm/st2cd.git","ssh_url":"git@github.com:StackStorm/st2cd.git","clone_url":"https://github.com/StackStorm/st2cd.git","svn_url":"https://github.com/StackStorm/st2cd","homepage":null,"size":545,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/117"},"html":{"href":"https://github.com/StackStorm/st2cd/pull/117"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2cd/issues/117"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2cd/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2cd/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2cd/statuses/987952cb62403f0a119c43e8a5e8634d36dbc7d3"}}}}