{"action":"opened","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-aws/issues/282","repository_url":"https://api.github.com/repos/puppetlabs/puppetlabs-aws","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-aws/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-aws/issues/282/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-aws/issues/282/events","html_url":"https://github.com/puppetlabs/puppetlabs-aws/issues/282","id":134821074,"number":282,"title":"Failing to pass user_data","user":{"login":"szemlyanoy","id":6660042,"avatar_url":"https://avatars.githubusercontent.com/u/6660042?v=3","gravatar_id":"","url":"https://api.github.com/users/szemlyanoy","html_url":"https://github.com/szemlyanoy","followers_url":"https://api.github.com/users/szemlyanoy/followers","following_url":"https://api.github.com/users/szemlyanoy/following{/other_user}","gists_url":"https://api.github.com/users/szemlyanoy/gists{/gist_id}","starred_url":"https://api.github.com/users/szemlyanoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szemlyanoy/subscriptions","organizations_url":"https://api.github.com/users/szemlyanoy/orgs","repos_url":"https://api.github.com/users/szemlyanoy/repos","events_url":"https://api.github.com/users/szemlyanoy/events{/privacy}","received_events_url":"https://api.github.com/users/szemlyanoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-19T09:54:49Z","updated_at":"2016-02-19T09:54:49Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to pass user_data key from hiera\r\n\r\ninstance1:\r\n    ensure: present\r\n    region: eu-west-1\r\n    image_id: ami-12249661\r\n    subnet: ec2_generic\r\n    security_groups: 'group1'\r\n    block_devices:\r\n      - device_name: /dev/sda1\r\n        delete_on_termination: true\r\n        volume_size: 17\r\n    user_data: \"template('files/aws_ec2_init.sh.erb')\"\r\n\r\n\r\nBut script is not applying and I got such error in cloud-init.log\r\n\r\nFeb 19 09:43:12 ip-10-22-10-105 cloud-init: 2016-02-19 09:43:12,895 - __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'template(\\'files/aws_ec2_...'\r\n\r\nIf I launch the same resource from module, it works, but from hiera it cannot get template location.\r\nHow this can be solved, so I could pass some user_data through hiera?\r\n\r\nThanks in advance,\r\nSergey"}}