{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/509","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/509/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/509/events","html_url":"https://github.com/puppetlabs/puppetlabs-apt/pull/509","id":70683015,"number":509,"title":"Add feature to overwrite sources.list with custom file","user":{"login":"m-o-n-k","id":11051515,"avatar_url":"https://avatars.githubusercontent.com/u/11051515?v=3","gravatar_id":"","url":"https://api.github.com/users/m-o-n-k","html_url":"https://github.com/m-o-n-k","followers_url":"https://api.github.com/users/m-o-n-k/followers","following_url":"https://api.github.com/users/m-o-n-k/following{/other_user}","gists_url":"https://api.github.com/users/m-o-n-k/gists{/gist_id}","starred_url":"https://api.github.com/users/m-o-n-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-o-n-k/subscriptions","organizations_url":"https://api.github.com/users/m-o-n-k/orgs","repos_url":"https://api.github.com/users/m-o-n-k/repos","events_url":"https://api.github.com/users/m-o-n-k/events{/privacy}","received_events_url":"https://api.github.com/users/m-o-n-k/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-24T12:54:35Z","updated_at":"2015-09-01T18:06:56Z","closed_at":"2015-09-01T18:06:56Z","pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/pulls/509","html_url":"https://github.com/puppetlabs/puppetlabs-apt/pull/509","diff_url":"https://github.com/puppetlabs/puppetlabs-apt/pull/509.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-apt/pull/509.patch"},"body":"As promised some weeks ago I finally got some time to implement the feature to overwrite the sources.list file.\r\n\r\nThis commit adds the `overwrite` parameter to the apt class which takes a hash as argument. With the `sources.list` key the `/etc/apt/sources.list` can be overwritten by a custom file. If `purge['sources.list']` is true then `overwrite['sources.list']` will be ignored.\r\n\r\nThe `overwrite` parameter can be extended for other files maybe.\r\n\r\nDocs and test included this time."},"comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/comments/136814481","html_url":"https://github.com/puppetlabs/puppetlabs-apt/pull/509#issuecomment-136814481","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apt/issues/509","id":136814481,"user":{"login":"DavidS","id":27712,"avatar_url":"https://avatars.githubusercontent.com/u/27712?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidS","html_url":"https://github.com/DavidS","followers_url":"https://api.github.com/users/DavidS/followers","following_url":"https://api.github.com/users/DavidS/following{/other_user}","gists_url":"https://api.github.com/users/DavidS/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidS/subscriptions","organizations_url":"https://api.github.com/users/DavidS/orgs","repos_url":"https://api.github.com/users/DavidS/repos","events_url":"https://api.github.com/users/DavidS/events{/privacy}","received_events_url":"https://api.github.com/users/DavidS/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T18:06:56Z","updated_at":"2015-09-01T18:06:56Z","body":"Thank you for your contribution, Thomas, but I'm with @daenney here. Even to workaround this module's management of the sources it's probably easier to just plop an arbitrary file into `/etc/apt/sources.list.d/` instead of trying to force this through the main resource. "}}