{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/34","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/34/comments","events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/34/events","html_url":"https://github.com/projectatomic/atomicapp/pull/34","id":74629105,"number":34,"title":"Write an answers template on install","user":{"login":"vpavlin","id":4759808,"avatar_url":"https://avatars.githubusercontent.com/u/4759808?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavlin","html_url":"https://github.com/vpavlin","followers_url":"https://api.github.com/users/vpavlin/followers","following_url":"https://api.github.com/users/vpavlin/following{/other_user}","gists_url":"https://api.github.com/users/vpavlin/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavlin/subscriptions","organizations_url":"https://api.github.com/users/vpavlin/orgs","repos_url":"https://api.github.com/users/vpavlin/repos","events_url":"https://api.github.com/users/vpavlin/events{/privacy}","received_events_url":"https://api.github.com/users/vpavlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-09T09:05:05Z","updated_at":"2015-05-11T12:38:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/34","html_url":"https://github.com/projectatomic/atomicapp/pull/34","diff_url":"https://github.com/projectatomic/atomicapp/pull/34.diff","patch_url":"https://github.com/projectatomic/atomicapp/pull/34.patch"},"body":"As discussed in issue #26, this PR writes the `answers.conf.sample` at the end of the `atomicapp install`. It contains all params for all components pre-filled with the known defaults or `None` if the default is not set.\r\n\r\n```\r\n[vpavlin@dhcp-30-155 ~/devel/upstream/atomicapp/test-app(master)]\r\n$ ls\r\n[vpavlin@dhcp-30-155 ~/devel/upstream/atomicapp/test-app(master)]\r\n$ atomicapp install vpavlin/wp-app\r\n2015-05-09 11:01:18,502 - atomicapp.install - INFO - App name is vpavlin/wp-app, will be populated to None\r\nTrying to pull repository docker.io/vpavlin/wp-app ...\r\neb9beee86635: Download complete \r\n48ecf305d2cf: Download complete \r\n93be8052dfb8: Download complete \r\nd364b63640ba: Download complete \r\n191c9f2e2f36: Download complete \r\nd2651828afb8: Download complete \r\n2899b24724a5: Download complete \r\n50f29c5875bf: Download complete \r\n86943f2fd311: Download complete \r\nf576de234d78: Download complete \r\n0d01d6974ff9: Download complete \r\nc48b7d2e2a46: Download complete \r\n4d573f10028e: Download complete \r\nba19aaf75e96: Download complete \r\n05c735695902: Download complete \r\n73a89e479333: Download complete \r\n5a8d0232f27d: Download complete \r\nStatus: Image is up to date for docker.io/vpavlin/wp-app:latest\r\nd7d8e4c2d87e2f16951974ac8805f6e6349bf35cdf6c2745cdc3cb98db72a195\r\n2015-05-09 11:01:26,018 - atomicapp.utils - INFO - Using temporary directory /tmp/appent-wp-appvt01OY\r\nwp-app\r\n2015-05-09 11:01:26,455 - atomicapp.install - INFO - Copying app wp-app\r\n2015-05-09 11:01:26,457 - atomicapp.utils - INFO - Artifacts for wordpress-app present for these providers: docker, openshift\r\n2015-05-09 11:01:26,457 - atomicapp.install - INFO - Installing dependencies for wordpress-app\r\n2015-05-09 11:01:26,457 - atomicapp.install - INFO - Component mariadb-app is external dependency\r\n2015-05-09 11:01:26,458 - atomicapp.install - INFO - Pulling vpavlin/mariadb-app\r\n2015-05-09 11:01:26,459 - atomicapp.install - INFO - App name is vpavlin/mariadb-app, will be populated to /home/vpavlin/devel/upstream/atomicapp/test-app/external/mariadb-app\r\nTrying to pull repository docker.io/vpavlin/mariadb-app ...\r\nd91c51dd843b: Download complete \r\n48ecf305d2cf: Download complete \r\n93be8052dfb8: Download complete \r\nd364b63640ba: Download complete \r\n191c9f2e2f36: Download complete \r\nd2651828afb8: Download complete \r\n2899b24724a5: Download complete \r\n50f29c5875bf: Download complete \r\n86943f2fd311: Download complete \r\nf576de234d78: Download complete \r\n0d01d6974ff9: Download complete \r\nc48b7d2e2a46: Download complete \r\n4d573f10028e: Download complete \r\nba19aaf75e96: Download complete \r\n05c735695902: Download complete \r\n73a89e479333: Download complete \r\n5166ceec1dcf: Download complete \r\nStatus: Image is up to date for docker.io/vpavlin/mariadb-app:latest\r\nb2638d9f597d9747615cf71a3f36c69fe00cce2d43e13dffce93ae0a15571570\r\n2015-05-09 11:01:34,051 - atomicapp.utils - INFO - Using temporary directory /tmp/appent-mariadb-app_XTEM9\r\nmariadb-app\r\n2015-05-09 11:01:34,481 - atomicapp.install - INFO - Copying app mariadb-app\r\n2015-05-09 11:01:34,483 - atomicapp.utils - INFO - Artifacts for mariadb-app present for these providers: docker, openshift\r\n2015-05-09 11:01:34,483 - atomicapp.install - INFO - Installing dependencies for mariadb-app\r\n2015-05-09 11:01:34,484 - atomicapp.install - INFO - Component installed into /home/vpavlin/devel/upstream/atomicapp/test-app/external/mariadb-app\r\nblah\r\n2015-05-09 11:01:34,484 - atomicapp.params - INFO - Writing answers file template to /home/vpavlin/devel/upstream/atomicapp/test-app/answers.conf.sample\r\n[vpavlin@dhcp-30-155 ~/devel/upstream/atomicapp/test-app(master)]\r\n$ ls\r\nanswers.conf.sample  Dockerfile  external  graph  nulecule  README.md\r\n[vpavlin@dhcp-30-155 ~/devel/upstream/atomicapp/test-app(master)]\r\n$ more answers.conf.sample \r\n[mariadb-app]\r\nimage = vpavlin/mariadb\r\nname = mariadb\r\n[wordpress-app]\r\nimage = vpavlin/wordpress\r\nname = wordpress\r\n[general]\r\nprovider = kubernetes\r\n```"},"comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments/100892518","html_url":"https://github.com/projectatomic/atomicapp/pull/34#issuecomment-100892518","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/34","id":100892518,"user":{"login":"aweiteka","id":1764461,"avatar_url":"https://avatars.githubusercontent.com/u/1764461?v=3","gravatar_id":"","url":"https://api.github.com/users/aweiteka","html_url":"https://github.com/aweiteka","followers_url":"https://api.github.com/users/aweiteka/followers","following_url":"https://api.github.com/users/aweiteka/following{/other_user}","gists_url":"https://api.github.com/users/aweiteka/gists{/gist_id}","starred_url":"https://api.github.com/users/aweiteka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweiteka/subscriptions","organizations_url":"https://api.github.com/users/aweiteka/orgs","repos_url":"https://api.github.com/users/aweiteka/repos","events_url":"https://api.github.com/users/aweiteka/events{/privacy}","received_events_url":"https://api.github.com/users/aweiteka/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T12:38:16Z","updated_at":"2015-05-11T12:38:16Z","body":"LGTM"}}