{"action":"created","issue":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/490","repository_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin","labels_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/490/comments","events_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/490/events","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/issues/490","id":303239452,"number":490,"title":"AWS EC2 provider inventory generation fails to add instance hostnames or IP addresses","user":{"login":"robled","id":3211560,"avatar_url":"https://avatars0.githubusercontent.com/u/3211560?v=4","gravatar_id":"","url":"https://api.github.com/users/robled","html_url":"https://github.com/robled","followers_url":"https://api.github.com/users/robled/followers","following_url":"https://api.github.com/users/robled/following{/other_user}","gists_url":"https://api.github.com/users/robled/gists{/gist_id}","starred_url":"https://api.github.com/users/robled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robled/subscriptions","organizations_url":"https://api.github.com/users/robled/orgs","repos_url":"https://api.github.com/users/robled/repos","events_url":"https://api.github.com/users/robled/events{/privacy}","received_events_url":"https://api.github.com/users/robled/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"robled","id":3211560,"avatar_url":"https://avatars0.githubusercontent.com/u/3211560?v=4","gravatar_id":"","url":"https://api.github.com/users/robled","html_url":"https://github.com/robled","followers_url":"https://api.github.com/users/robled/followers","following_url":"https://api.github.com/users/robled/following{/other_user}","gists_url":"https://api.github.com/users/robled/gists{/gist_id}","starred_url":"https://api.github.com/users/robled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robled/subscriptions","organizations_url":"https://api.github.com/users/robled/orgs","repos_url":"https://api.github.com/users/robled/repos","events_url":"https://api.github.com/users/robled/events{/privacy}","received_events_url":"https://api.github.com/users/robled/received_events","type":"User","site_admin":false},"assignees":[{"login":"robled","id":3211560,"avatar_url":"https://avatars0.githubusercontent.com/u/3211560?v=4","gravatar_id":"","url":"https://api.github.com/users/robled","html_url":"https://github.com/robled","followers_url":"https://api.github.com/users/robled/followers","following_url":"https://api.github.com/users/robled/following{/other_user}","gists_url":"https://api.github.com/users/robled/gists{/gist_id}","starred_url":"https://api.github.com/users/robled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robled/subscriptions","organizations_url":"https://api.github.com/users/robled/orgs","repos_url":"https://api.github.com/users/robled/repos","events_url":"https://api.github.com/users/robled/events{/privacy}","received_events_url":"https://api.github.com/users/robled/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-07T20:00:45Z","updated_at":"2018-03-12T22:39:56Z","closed_at":"2018-03-12T22:39:56Z","author_association":"COLLABORATOR","body":"The AWS EC2 provider for linchpin does not add AWS EC2 hosts to the generated Ansible inventory file.  The Ansible output during a provision operation suggests that the inventory file does not need to be changed, and thus hostnames or IP addresses are not added to it. \r\n\r\nTopology:\r\n\r\n```\r\n---\r\ntopology_name: \"cinch-test\"\r\nresource_groups:\r\n  - resource_group_name: \"cinch-group\"\r\n    resource_group_type: \"aws\"\r\n    resource_definitions:\r\n      - name: \"jslave-aws\"\r\n        flavor: \"t2.micro\"\r\n        role: \"aws_ec2\"\r\n        region: \"us-east-1\"\r\n        image: \"ami-26ebbc5c\"\r\n        security_group: \"mygroup\"\r\n        count: 1\r\n        keypair: \"mykeypair\"\r\n        assign_public_ip: false\r\n        vpc_subnet_id: \"subnet-xxxxxxx\"\r\n    credentials:\r\n      filename: \"cinch.ini\"\r\n```\r\n\r\nTest results:\r\n\r\n```\r\n$ linchpin --version\r\nlinchpin version 1.5.1.1\r\n\r\n$ linchpin -v --creds-path ./credentials up\r\n<snip>\r\nTASK [inventory_gen : Generate Generic Inventory] ********************************************************************************************************************************************************************************************************************************************************************************\r\nok: [localhost] => {\"changed\": false, \"checksum\": \"50c85156a4eda3dd916f26bba22e412c9c4a1792\", \"gid\": 1000, \"group\": \"vagrant\", \"mode\": \"0664\", \"owner\": \"vagrant\", \"path\": \"/home/vagrant/devel/cinch-test/examples/linchpin-topologies/aws_ec2-slave/inventories/cinch-test.inventory\", \"secontext\": \"system_u:object_r:fusefs_t:s0\", \"size\": 69, \"state\": \"file\", \"uid\": 1000}\r\n<snip\r\n\r\n$ cat inventories/cinch-test.inventory\r\n[certificate_authority]\r\n\r\n\r\n[repositories]\r\n\r\n\r\n[jenkins_slave]\r\n\r\n\r\n[all]\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/comments/372486411","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/issues/490#issuecomment-372486411","issue_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/490","id":372486411,"user":{"login":"herlo","id":89334,"avatar_url":"https://avatars2.githubusercontent.com/u/89334?v=4","gravatar_id":"","url":"https://api.github.com/users/herlo","html_url":"https://github.com/herlo","followers_url":"https://api.github.com/users/herlo/followers","following_url":"https://api.github.com/users/herlo/following{/other_user}","gists_url":"https://api.github.com/users/herlo/gists{/gist_id}","starred_url":"https://api.github.com/users/herlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herlo/subscriptions","organizations_url":"https://api.github.com/users/herlo/orgs","repos_url":"https://api.github.com/users/herlo/repos","events_url":"https://api.github.com/users/herlo/events{/privacy}","received_events_url":"https://api.github.com/users/herlo/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T22:39:56Z","updated_at":"2018-03-12T22:39:56Z","author_association":"MEMBER","body":"Closed by #491 "}}
{"actor":{"display_login":"herlo"}}