Due to semantic changes in the reload mechanism and some the very old base classes used by exec, it now triggers reloads too often and incorrectly
postgresql_initdb_script = exec::Run(host=self.host,
creates="/var/lib/pgsql/10/data/pg_hba.conf",
command=exec::in_shell("sudo su -c '/usr/pgsql-10/bin/initdb /var/lib/pgsql/10/data' - postgres"),
requires=[install_postgresql_contrib_package, install_postgresql_package])
postgresql_initdb_script = exec::Run(host=self.host,
creates="/var/lib/pgsql/10/data/pg_hba.conf",
reload="/usr/bin/true", # fix for https://github.com/inmanta/exec/issues/185
command=exec::in_shell("sudo su -c '/usr/pgsql-10/bin/initdb /var/lib/pgsql/10/data' - postgres"),
requires=[install_postgresql_contrib_package, install_postgresql_package])