Jenkins module: why is Puppet installing Jenkins on every node?
Hi everybody! Before even asking: Jenkins and Puppet newbie here.
I've installed the official Jenkins module following this guide. After some difficulties (it has a typo which causes you to have troubles and it isn't sufficient to do what's written to install the Git Plugin) I've been able to have the whole module correctly configured to install Jenkins, install Maven, install Git and its plugin, set up a job, compile, report tests results and deploy the build to a Tomcat. All of this on single agent node. Now, I tried to do all this procedure on a new, clean node, and I've noticed that it's sufficient to install Puppet on it and launch a "puppet agent --test" to have Jenkins installed, even without mentioning this new node in manifests/site.pp (where I've the instructions for all the nodes). So I checked the master server (the learning-puppet VM) and Puppet installed Jenkins there too.
How is that possible and how can I control where to install Jenkins? Thanks in advance.