{"action":"closed","issue":{"url":"https://api.github.com/repos/dalen/puppet-puppetdbquery/issues/52","labels_url":"https://api.github.com/repos/dalen/puppet-puppetdbquery/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/dalen/puppet-puppetdbquery/issues/52/comments","events_url":"https://api.github.com/repos/dalen/puppet-puppetdbquery/issues/52/events","html_url":"https://github.com/dalen/puppet-puppetdbquery/issues/52","id":85705597,"number":52,"title":"How to append something to the fact that gets returned via hiera","user":{"login":"claflico","id":9525882,"avatar_url":"https://avatars.githubusercontent.com/u/9525882?v=3","gravatar_id":"","url":"https://api.github.com/users/claflico","html_url":"https://github.com/claflico","followers_url":"https://api.github.com/users/claflico/followers","following_url":"https://api.github.com/users/claflico/following{/other_user}","gists_url":"https://api.github.com/users/claflico/gists{/gist_id}","starred_url":"https://api.github.com/users/claflico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claflico/subscriptions","organizations_url":"https://api.github.com/users/claflico/orgs","repos_url":"https://api.github.com/users/claflico/repos","events_url":"https://api.github.com/users/claflico/events{/privacy}","received_events_url":"https://api.github.com/users/claflico/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-06T05:56:28Z","updated_at":"2015-10-05T12:56:40Z","closed_at":"2015-10-05T12:56:40Z","body":"Sorry to ask but been searching for the past 2-3 hours. Am trying to make my module manifests as generic as possible and store as much in hiera as I can. \r\n\r\nHow can I manipulate (add/remove text) the facts that get returned as part of a hiera lookup? For example, the mongo profile module I'm using looks for the following when setting up replica sets:\r\n\r\nmongodb_replset_members:\r\n  - 'iam-dev-modb01.example.com:27017'\r\n  - 'iam-dev-modb02.example.com:27017'\r\n  - 'iam-dev-modb03.example.com:27017'\r\n\r\nSo I came up with the following puppetdb hiera query, however I need to be able to add port 27017 to the end of every hostname/fqdn that gets returned from the query:\r\nmongodb_replset_members::_nodequery: ['project=iam and tier=dev and role=modb']\r\n\r\nThanks"}}