Hello,
Having a look on your commit to increase my understanding of puppet I see this.
After this commit as I see you use Git a define a revision and a branch.
With Git it's not coherent, and in fact I don't see any usage of the variable `$branch`.
CU
Stéph