Regarding to Puppet, we should never use the `exec` command. (see [here](https://www.slideshare.net/PuppetLabs/puppetconf-2016-moving-from-exec-to-types-and-providers-martin-alfke-example42-gmbh)) Because: - does not deal with changes - one time command - only capable with artifacts of a config - basically a root shell, without parameters - etc
Regarding to Puppet, we should never use the
execcommand. (see here) Because: