{"id":15048195,"url":"https://github.com/github/puppet-aptmirror","last_synced_at":"2026-01-11T01:31:31.961Z","repository":{"id":7675000,"uuid":"9037427","full_name":"github/puppet-aptmirror","owner":"github","description":"Mirror of Puppet's APT repo","archived":true,"fork":false,"pushed_at":"2021-12-02T17:56:20.000Z","size":13033,"stargazers_count":9,"open_issues_count":5,"forks_count":13,"subscribers_count":280,"default_branch":"master","last_synced_at":"2024-09-30T00:23:23.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Puppet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-26T18:35:59.000Z","updated_at":"2024-07-31T03:16:17.000Z","dependencies_parsed_at":"2022-09-13T13:03:38.983Z","dependency_job_id":null,"html_url":"https://github.com/github/puppet-aptmirror","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-aptmirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-aptmirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-aptmirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fpuppet-aptmirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/puppet-aptmirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235232824,"owners_count":18957058,"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-09-24T21:09:03.412Z","updated_at":"2025-10-04T08:31:57.618Z","avatar_url":"https://github.com/github.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppet-aptmirror\n\n## Usage\n\n```puppet\nclass { 'aptmirror': }\n\naptmirror::source { 'http://us.archive.ubuntu.com':\n  amd64         =\u003e true,\n  clean         =\u003e true,\n  source        =\u003e true,\n  distributions =\u003e [\n    'precise',\n    'precise-updates',\n    'precise-security',\n    'precise-backports',\n  ],\n  components    =\u003e [\n    'main',\n    'restricted',\n    'universe',\n    'multiverse',\n  ],\n}\n```\n\n## Classes\n### aptmirror\n * **base_path         -** The base path on disk where apt-mirror will store\n                           its data. Defaults to `/var/spool/apt-mirror`.\n * **mirror_path       -** The path on disk where the packages will be stored.\n                           Defaults to `$base_path/mirror`.\n * **skel_path         -** The path on disk where the downloaded indexes will\n                           be temporarily stored. Defaults to\n                           `$base_path/skel`.\n * **var_path          -** The path on disk where the log files and MD5 sums\n                           will be stored. Defaults to `$base_path/var`.\n * **cleanscript       -** The path to the mirror cleaning script. Defaults to\n                           `$var_path/clean.sh`.\n * **postmirror_script -** The path to the script that will run after the\n                           mirror process has finished. Defaults to\n                           `$var_path/postmirror.sh`.\n * **defaultarch       -** The architecture to pull down if you don't specify\n                           an architecture in your `aptmirror::sources`.\n                           Defaults to `amd64`.\n * **run_postmirror    -** Set to `1` to run the postmirror script after the\n                           mirror has finished syncing. Defaults to `0`.\n * **nthreads          -** The number of threads apt-mirror should run.\n                           Defaults to `20`.\n * **_tilde            -** Set to `1` to skip packages that contain a tilde\n                           (`~`). Defaults to `0`.\n\n## Defined Types\n### aptmirror::source\n * **namevar       -** The URL of the repository to mirror.\n * **distributions -** An array of apt repository distributions to mirror.\n * **components    -** An array of apt repository components to mirror.\n * **clean         -** Set to `true` to enable cleaning of old packages from\n                       this source from the mirror. Defaults to `false`.\n * **amd64         -** Set to `true` to enable mirroring of the amd64 packages.\n                       Defaults to `false`.\n * **i386          -** Set to `true` to enable mirroring of the i386 packages.\n                       Defaults to `false`.\n * **source        -** Set to `true` to enable mirroring of the dpkg source\n                       files. Defaults to `false`.\n\n## Here Be Dragons\nThis module works through some interesting catalogue hackery. The\n`aptmirror::source` defined type doesn't actually do anything, it just acts as\nway to store data about the sources in your Puppet catalogue. In the\n`/etc/apt/mirror.list` template, we inspect the catalogue, pull out all the\n`aptmirror::source` instances and use their values to populate the template.\nThis is done so that you can specify `aptmirror::source` dynamically anywhere\nin your manifests without having to go back and modify a static list of sources\nin the `aptmirror` class definition.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fpuppet-aptmirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fpuppet-aptmirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fpuppet-aptmirror/lists"}