CDIST-TYPE__APT_SOURCE(7)

πŸ’– cdist-type__apt_source β€” bestie edition πŸ’–

okay so you're reading the cdist-type__apt_source page from the cdist manual (that's the manual name, she's famous, iykyk) and honestly? you're about to have the easiest time of your life managing apt sources. let's get into it ✨


🌸 NAME 🌸

cdist-type__apt_source β€” manage apt sources, but make it iconic πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

This cdist type lets you manage apt sources. and the best part?? it invokes index update internally when needed, so you do NOT have to go call the index updating type yourself. no extra steps, no chaos, no "wait did i forget something" panic at 3am 😭 it's giving considerate. it's giving self-sufficient. periodt.


πŸ‘‘ REQUIRED PARAMETERS πŸ‘‘

these are non-negotiable bestie, you must give her these:

  • uri β€” the uri to the apt repository 🫢

πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

the little extras, the accessories to the outfit:

  • arch β€” set this if you need to force a specific arch (this one is ubuntu specific, just so you know πŸ‘€)
  • signed-by β€” hand over a GPG key fingerprint or a keyring path so signature checks can happen πŸ”
  • state β€” either 'present' or 'absent', and if you don't say anything she defaults to 'present' ✨
  • distribution β€” the distribution codename to use. defaults to DISTRIB_CODENAME from the target's /etc/lsb-release 🌈
  • component β€” space delimited list of components to enable. defaults to an empty string πŸ’€ (yes, empty, that's the vibe)
  • include-src β€” (this one's a boolean, booleans get their own section below but hi) include deb-src entries πŸ“

πŸ’… BOOLEAN PARAMETERS πŸ’…

  • include-src β€” include deb-src entries. that's it, that's the whole job, and she does it flawlessly 🧚

πŸ”₯ EXAMPLES πŸ”₯

here's the group chat receipts, copy these exact vibes:

__apt_source rabbitmq \
   --uri http://www.rabbitmq.com/debian/ \
   --distribution testing \
   --component main \
   --include-src \
   --state present
__apt_source canonical_partner \
   --uri http://archive.canonical.com/ \
   --component partner --state present
__apt_source goaccess \
   --uri http://deb.goaccess.io/ \
   --component main \
   --signed-by C03B48887D5E56B046715D3297BD1A0133449C3D

look at her go 😌 main character energy fr fr


🫢 AUTHORS 🫢

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” the legend herself πŸ’œ


🌈 COPYING 🌈

Copyright (C) 2011-2018 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ⭐

(translation: go forth, remix, share, just keep the license, bestie)


ungleich GmbH 2021 πŸ‘‘


okay that's the whole page, nothing skipped, every single flag accounted for. slay πŸ’…

and that's a wrap!! this was version 7.0.0 of the page, dated Jul 31, 2022 β€” sending you love and clean apt sources, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from