{"id":20622314,"url":"https://github.com/smoeding/puppet-debconf","last_synced_at":"2025-04-15T12:33:31.712Z","repository":{"id":47050122,"uuid":"44823251","full_name":"smoeding/puppet-debconf","owner":"smoeding","description":"Manage entries in the Debian debconf database with Puppet","archived":false,"fork":false,"pushed_at":"2025-02-27T15:28:13.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T20:12:13.466Z","etag":null,"topics":["debian","puppet"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smoeding.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}},"created_at":"2015-10-23T15:58:20.000Z","updated_at":"2025-02-27T15:28:17.000Z","dependencies_parsed_at":"2024-11-15T22:39:16.706Z","dependency_job_id":"17577fd4-e124-4fd2-9b7e-e6bdf7e9da15","html_url":"https://github.com/smoeding/puppet-debconf","commit_stats":{"total_commits":82,"total_committers":2,"mean_commits":41.0,"dds":"0.012195121951219523","last_synced_commit":"0a482cea8edff36c1513268fe47678ca3fe96ef8"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpuppet-debconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpuppet-debconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpuppet-debconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Fpuppet-debconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoeding","download_url":"https://codeload.github.com/smoeding/puppet-debconf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601076,"owners_count":21131607,"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":["debian","puppet"],"created_at":"2024-11-16T12:22:08.035Z","updated_at":"2025-04-15T12:33:31.693Z","avatar_url":"https://github.com/smoeding.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debconf\n\n[![Build Status](https://github.com/smoeding/puppet-debconf/actions/workflows/CI.yaml/badge.svg)](https://github.com/smoeding/puppet-debconf/actions/workflows/CI.yaml)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/stm/debconf.svg)](https://forge.puppetlabs.com/stm/debconf)\n[![License](https://img.shields.io/github/license/smoeding/puppet-debconf.svg)](https://raw.githubusercontent.com/smoeding/puppet-debconf/master/LICENSE)\n\n#### Table of Contents\n\n1. [Overview](#overview)\n2. [Module Description - What does the module do?](#module-description)\n3. [Setup - The basics of getting started with debconf](#setup)\n    * [What debconf affects](#what-debconf-affects)\n    * [Setup requirements](#setup-requirements)\n4. [Usage - Configuration options and additional functionality](#usage)\n5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n5. [Limitations - OS compatibility, etc.](#limitations)\n6. [Development - Guide for contributing to the module](#development)\n\n## Overview\n\nManage entries in the Debian debconf database.\n\n## Module Description\n\nDebian based systems use the debconf database to record configuration choices the user made during the installation of a package. The system uses the stored answers and therefore does not need to query the user again when the package is upgraded or reinstalled at a later time.\n\nThe debconf type allows preseeding the database with given answers to allow an unattended package installation or modification of package defaults. The type can optionally also manage the seen flag for an item.\n\nThe standard `package` type uses the responsefile parameter to provide a file with preseeded answers during installation. The `debconf` type is a more general solution as it allows to update settings without the need to install the package at the same time.\n\n## Setup\n\n### What debconf affects\n\nThe debconf type modifies entries in the Debian debconf database.\n\n### Setup Requirements\n\nThis module uses programs provided by the Debian/Ubuntu `debconf` package. Debian assigns the `required` priority to this package so it should already be installed everywhere.\n\n## Usage\n\nUse `debconf-show` or `debconf-get-selections` to find out about valid debconf entries for an installed package.\n\n### Example: Use dash as replacement for the bourne shell\n\nThis entry will ensure a symlink from `/bin/sh` to `/bin/dash` if `dpkg-reconfigure dash` is run the next time. It will also mark the question as seen to prevent the installer from asking this question during the installation.\n\n```puppet\ndebconf { 'dash/sh':\n  type  =\u003e 'boolean',\n  value =\u003e 'true',\n  seen  =\u003e true,\n}\n```\n\n**Note**: Although this code is perfectly legal Puppet code, the string `'true'` (not the boolean `true`) will trigger the puppet-lint warning `quoted_booleans`. But we really want to use the string `'true'` and not the boolean truth value here. So in this case we can easily suppress the warning with a [control comment](http://puppet-lint.com/controlcomments/):\n\n```puppet\ndebconf { 'dash/sh':\n  type  =\u003e 'boolean',\n  value =\u003e 'true',      # lint:ignore:quoted_booleans\n  seen  =\u003e true,\n}\n```\n\n### Example: Automatically set a root password for MySQL during installation\n\nThese two resources preseed the installation of the `mysql-server-5.5` package with the password for the MySQL root user to use. The password has to be set twice because the installation dialog asks two times for the password to detect typos. This password is used if the package is installed after these resources have been created.\n\n```puppet\ndebconf { 'mysql-root-passwd':\n  package =\u003e 'mysql-server-5.5',\n  item    =\u003e 'mysql-server/root_password',\n  type    =\u003e 'password',\n  value   =\u003e 'secret',\n  seen    =\u003e true,\n}\n\ndebconf { 'mysql-root-passwd-again':\n  package =\u003e 'mysql-server-5.5',\n  item    =\u003e 'mysql-server/root_password_again',\n  type    =\u003e 'password',\n  value   =\u003e 'secret',\n  seen    =\u003e true,\n}\n```\n\n## Reference\n\nSee [REFERENCE.md](https://github.com/smoeding/puppet-debconf/blob/master/REFERENCE.md)\n\nThis module is only useful on Debian based systems where the debconf database is used.\n\nA control comment may be needed to suppress puppet-lint warnings when you set boolean values. See the [Usage](#usage) section for an example.\n\nThe value of the `type` parameter is only used when an item is created. It is not updated if the value of the item is changed later.\n\n## Development\n\nFeel free to send pull requests for new features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Fpuppet-debconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoeding%2Fpuppet-debconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Fpuppet-debconf/lists"}