{"id":21342519,"url":"https://github.com/voxpupuli/puppet-alternatives","last_synced_at":"2025-12-11T21:47:28.303Z","repository":{"id":6298669,"uuid":"7533238","full_name":"voxpupuli/puppet-alternatives","owner":"voxpupuli","description":"Manage Debian alternatives links","archived":false,"fork":false,"pushed_at":"2025-10-17T15:05:51.000Z","size":324,"stargazers_count":24,"open_issues_count":5,"forks_count":34,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-11-16T13:14:28.434Z","etag":null,"topics":["centos-puppet-module","debian-puppet-module","hacktoberfest","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module","sles-puppet-module","ubuntu-puppet-module"],"latest_commit_sha":null,"homepage":"https://forge.puppet.com/puppet/alternatives","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/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"vox-pupuli","github":"voxpupuli"}},"created_at":"2013-01-10T02:43:24.000Z","updated_at":"2025-10-17T15:05:54.000Z","dependencies_parsed_at":"2024-04-15T07:15:10.291Z","dependency_job_id":"b05ff3fe-b9ac-4827-8803-c8876f01e614","html_url":"https://github.com/voxpupuli/puppet-alternatives","commit_stats":{"total_commits":200,"total_committers":32,"mean_commits":6.25,"dds":"0.44999999999999996","last_synced_commit":"2ee59920f5ed04a48ac3ac92c726e87faa452114"},"previous_names":["puppet-community/puppet-alternatives"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/voxpupuli/puppet-alternatives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-alternatives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-alternatives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-alternatives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-alternatives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-alternatives/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-alternatives/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["centos-puppet-module","debian-puppet-module","hacktoberfest","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module","sles-puppet-module","ubuntu-puppet-module"],"created_at":"2024-11-22T01:08:53.155Z","updated_at":"2025-12-11T21:47:28.288Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":["https://opencollective.com/vox-pupuli","https://github.com/sponsors/voxpupuli"],"categories":[],"sub_categories":[],"readme":"# puppet-alternatives\n\n[![Build Status](https://github.com/voxpupuli/puppet-alternatives/workflows/CI/badge.svg)](https://github.com/voxpupuli/puppet-alternatives/actions?query=workflow%3ACI)\n[![Release](https://github.com/voxpupuli/puppet-alternatives/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-alternatives/actions/workflows/release.yml)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/alternatives.svg)](https://forge.puppetlabs.com/puppet/alternatives)\n[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/alternatives.svg)](https://forge.puppetlabs.com/puppet/alternatives)\n[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/alternatives.svg)](https://forge.puppetlabs.com/puppet/alternatives)\n[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/alternatives.svg)](https://forge.puppetlabs.com/puppet/alternatives)\n[![puppetmodule.info docs](https://www.puppetmodule.info/images/badge.svg)](https://www.puppetmodule.info/m/puppet-alternatives)\n[![Apache-2.0 License](https://img.shields.io/github/license/voxpupuli/puppet-alternatives.svg)](LICENSE)\n[![Donated by Camptocamp](https://img.shields.io/badge/donated%20by-camptocamp-fb7047.svg)](#transfer-notice)\n\nManage alternatives symlinks.\n\n## Synopsis\n\nUsing `puppet resource` to inspect alternatives\n\n    root@master:~# puppet resource alternatives\n    alternatives { 'aptitude':\n      path =\u003e '/usr/bin/aptitude-curses',\n    }\n    alternatives { 'awk':\n      path =\u003e '/usr/bin/mawk',\n    }\n    alternatives { 'builtins.7.gz':\n      path =\u003e '/usr/share/man/man7/bash-builtins.7.gz',\n    }\n    alternatives { 'c++':\n      path =\u003e '/usr/bin/g++',\n    }\n    alternatives { 'c89':\n      path =\u003e '/usr/bin/c89-gcc',\n    }\n    alternatives { 'c99':\n      path =\u003e '/usr/bin/c99-gcc',\n    }\n    alternatives { 'cc':\n      path =\u003e '/usr/bin/gcc',\n    }\n\n- - -\n\nUsing `puppet resource` to update an alternative\n\n    root@master:~# puppet resource alternatives editor\n    alternatives { 'editor':\n      path =\u003e '/bin/nano',\n    }\n    root@master:~# puppet resource alternatives editor path=/usr/bin/vim.tiny\n    notice: /Alternatives[editor]/path: path changed '/bin/nano' to '/usr/bin/vim.tiny'\n    alternatives { 'editor':\n      path =\u003e '/usr/bin/vim.tiny',\n    }\n\n- - -\n\nUsing the alternatives resource in a manifest:\n\n```puppet\nclass ruby_193 {\n\n  package { 'ruby1.9.3':\n    ensure =\u003e present,\n  }\n\n  # Will also update gem, irb, rdoc, rake, etc.\n  alternatives { 'ruby':\n    path    =\u003e '/usr/bin/ruby1.9.3',\n    require =\u003e Package['ruby1.9.3'],\n  }\n}\n\ninclude ruby_193\n```\n\n- - -\n\nCreating a new alternative entry:\n\n```puppet\nalternative_entry { '/usr/bin/gcc-4.4':\n  ensure   =\u003e present,\n  altlink  =\u003e '/usr/bin/gcc',\n  altname  =\u003e 'gcc',\n  priority =\u003e 10,\n  require  =\u003e Package['gcc-4.4-multilib'],\n}\n```\n\n- - -\n\nOn RedHat, configuring an alternative using a family instead of a full path:\n\n```puppet\nalternatives { 'java':\n  path    =\u003e 'java-1.8.0-openjdk.x86_64',\n  require =\u003e Package['java-1.8.0-openjdk'],\n}\n```\n\nThis module should work on any Debian and RHEL based distribution.\n\n## Transfer notice\n\nThis module was formerly maintained by Adrien Thebo at [forge.puppet.com/adrien/alternatives/](https://forge.puppet.com/modules/adrien/alternatives/readme)\n\n## Contact\n\n* [Source code](https://github.com/voxpupuli/puppet-alternatives)\n* [Issue tracker](https://github.com/voxpupuli/puppet-alternatives/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-alternatives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-alternatives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-alternatives/lists"}