puppetize generation of media directory lists for snapshots

Change-Id: I893cf09894c81e6903749f384b5afa96d99866e1