{"id":15510658,"url":"https://github.com/dalen/puppet-apt_auto_pin","last_synced_at":"2025-04-05T07:24:19.217Z","repository":{"id":66394928,"uuid":"72308553","full_name":"dalen/puppet-apt_auto_pin","owner":"dalen","description":"Automatically add apt pin files for packages with a version specified","archived":false,"fork":false,"pushed_at":"2016-10-29T20:50:13.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T15:15:20.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-29T20:47:56.000Z","updated_at":"2016-11-03T17:27:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"105896ef-3410-4e4f-b440-a58d6fac80fe","html_url":"https://github.com/dalen/puppet-apt_auto_pin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fpuppet-apt_auto_pin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fpuppet-apt_auto_pin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fpuppet-apt_auto_pin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fpuppet-apt_auto_pin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalen","download_url":"https://codeload.github.com/dalen/puppet-apt_auto_pin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301801,"owners_count":20916581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:50:18.701Z","updated_at":"2025-04-05T07:24:19.198Z","avatar_url":"https://github.com/dalen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apt_auto_pin\n\n#### Table of Contents\n\n1. [Description](#description)\n1. [Usage](#usage)\n1. [See also](#see-also)\n\n## Description\n\nCreate apt pin files for all packages that have a version specified so `apt-get upgrade` won't\ninstall a different version than what is specified in puppet.\n\n## Usage\n\nTogether with the puppetlabs-apt module you can use a manifest like this:\n\n```puppet\n# Include the apt module somewhere in your code\ninclude apt\n\n# Add the auto pin resource and make it notify the apt update\napt_auto_pin { 'packages':  notify =\u003e Exec['apt_update'] }\n\n# Install packages\npackage { 'foo': ensure =\u003e '0.1.2' }\npackage { 'bar': ensure =\u003e '1.2.3' }\n\n# Ensure that packages are installed after apt-get update\nPackage\u003c||\u003e { require =\u003e Exec['apt_update'] }\n```\n\n`auto_apt_pin` doesn't require the puppetlabs-apt module though as it puts plain `File` resources\ninto `/etc/apt/conf.d`\n\n## See also\n\n* [hashbrowncipher-package_purging](https://github.com/hashbrowncipher/puppet-package_purging)\n  which implements a similar thing using `dpkg hold` instead of apt pinning.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fpuppet-apt_auto_pin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalen%2Fpuppet-apt_auto_pin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fpuppet-apt_auto_pin/lists"}