it's FreeBSD 9.1-RELEASE amd64
in here. I installed puppet from ports and my manifest also probably uses ports packages. I'm happy with that. Now here's a simple manifest:
root@ovh:/root # cat freebsd.pp
package { '*./editors/vim':
ensure => installed,
}
Applying manifest:
root@ovh:/root # puppet apply freebsd.pp
Notice: /Stage[main]//Package[*./editors/vim]/ensure: created
Notice: Finished catalog run in 22.54 seconds
23 seconds to execute simple package check which actually already installed??? Is this normal? I'm new to puppet, so if somebody can explain what's going on in background for such a simple check, I would really appreciate that. Maybe there's faster way to check if package installed?
Yes since you installed a new package.. run it again and the created should go away and it will be a little faster. Puppet is not very fast anyway. For that package it has to query your package manager to see if it is installed and if you don't select one it will take it's best guess at what it should be try that and if that isn't there pick the next best guess.
after adding debug switch I see that vim installed every time with pkg_add. So this question is answered.