This has been implemented by https://github.com/simp/puppetsync/, which has been used to automate static asset pushes since