Skip to content

labops update

Update the nodes a selector matches, and the docker stacks running on them.

Selector fields combine as AND across kinds and OR within one: --kind lxc --os debian means debian containers, --tag a --tag b means tagged a or b.

Examples:

labops update --kind lxc --os debian    # every debian container
labops update --under cprox             # cprox and everything below it
labops update --tag prod --list         # preview, run nothing
labops update weekly                    # a set from settings.targets
labops update --all --yes               # everything, no prompt

Usage:

$ labops update [OPTIONS] [SET]

Arguments:

  • [SET]: A named target set from settings.targets.

Options:

  • -k, --kind <host|vm|lxc>: Node kind. Repeatable.
  • --os <debian|alpine|redhat|unmanaged>: Operating system. Repeatable.
  • -t, --tag <str>: Node tag. Repeatable.
  • -u, --under <str>: A host/VM/LXC name: selects it and everything below it. Repeatable.
  • -e, --exclude <str>: A host/VM/LXC name to exclude (with its subtree). Repeatable.
  • --only <nodes|stacks>: Restrict to nodes or to docker stacks.
  • --all: No filter — every node and stack.
  • --list: Show what would be updated, then exit.
  • -y, --yes: Skip the confirmation prompt.
  • --help: Show this message and exit.