csharpsteen
10/28/2025, 2:18 PMenterprise_tasks was intentional. That module was always intended to be internal-use only and should have been named something like pe_internal_tasks. I think a sub-set of "safe" tasks has been left publicly exposed.
There are some items in there that are outright dangerous if not run exactly as expected by puppet-enterprise-installer or one of the puppet infra sub-commands. For example, if you go by title alone, enterprise_tasks::pg_basebackup sounds like it would back up the Postgres database in some way.
It does not. It nukes the database data directory and then runs the pg_basebackup CLI to pull a copy from some other Postgres instance. Does exactly what puppet infra provision replica needs it to do, and disastrous if naively run against the Primary.jms1
10/29/2025, 3:02 PMcsharpsteen
10/29/2025, 3:31 PM