The master and agent roles of puppet
are managed by two different processes, so a puppetmaster
can also have a puppet
agent running, in which case, the machine will have its catalog served conveniently.
Moreover, it is not at all uncommon to have a set of modules that apply to every host (e.g. a security baseline), including the puppetmaster
. Of course, you can also have modules that specifically target the puppetmaster
host.
It is not entirely clear from your question what do you mean by "automate some tasks on my master server": whether you want to keep your puppetmaster
in a known state or have some arbitrary tasks run on demand.
For the former, the standard behaviour of puppet
is all you need, for the latter, you could check the puppet
's companion project, Marionette Collective.