CDIST-TYPE__DOCKER_CONFIG(7)

πŸ’– cdist-type__docker_config πŸ’–

okay bestie, welcome to the manual page for cdist-type__docker_config, a little cdist type from the cdist manuals (section 7, she's fancy like that) whose whole entire job is managing Docker configs. yes, the Docker configs. slay.


✨ NAME ✨

cdist-type__docker_config β€” Manage Docker configs πŸ‘‘


🌸 DESCRIPTION 🌸

This type manages Docker configs. that's it, that's the vibe. she handles your configs so you don't have to, periodt. πŸ’…


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

these are optional, meaning you can skip them, but like... why would you. here's the tea:

  • source β€” Path to the source file. 🫢 and if it's - (a dash, just a lil dash), she reads from standard input instead. lowkey iconic.
  • state β€” 'present' or 'absent', and it defaults to 'present'. here's what each one means:
    • present β€” if the config does not exist, it is created. manifesting ✨
    • absent β€” the config is removed. bye babe πŸ’€

😭 CAVEATS 😭

okay so this is the part where we get real, bestie. Since Docker configs cannot be updated once created, this type tries removing and recreating the config if it changes. that's the workaround, that's the move.

but if the config is used by a service at the time of removing, then this type will fail. fr fr. no cap. so pls check that nothing's using it first or you're gonna have a bad time. πŸ™ˆ

🌈 EXAMPLES 🌈

here's a cute lil example, look at her go:

# Creates "foo" config from "bar" source file
__docker_config foo --source bar

boom. foo config, bar source file. ate and left no crumbs. πŸ”₯


πŸ‘‘ AUTHORS πŸ‘‘

Δ½ubomΓ­r Kučera <lubomir.kucera.jr at gmail.com> β€” thank you king, we appreciate you 🫢


πŸ’œ COPYING πŸ’œ

Copyright (C) 2018 Δ½ubomΓ­r Kučera. 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. free software rights, we love to see it. πŸŽ€


ungleich GmbH 2021


and that's the whole page bestie, tysm for reading πŸ’– this was cdist-type__docker_config(7), version 7.0.0, dated Jul 31, 2022, brought to you by cdist. go manage those configs, main character. 🌸✨

πŸ“¦ where this page comes from