# setup a reposync syncer class profiles::reposync::syncer { include profiles::packages::reposync include profiles::reposync::autosyncer include profiles::reposync::autopromoter include profiles::reposync::webserver # Ensure the reposync config path exists file { '/etc/reposync': ensure => directory, owner => 'root', group => 'root', mode => '0755', } file { '/etc/reposync/conf.d': ensure => directory, owner => 'root', group => 'root', mode => '0755', } # get a list of repos as a hash, and iterate through them $repos = lookup('profiles::reposync::repos_list', {}) $repos.each | String $name, Hash $repo_hash | { profiles::reposync::repos { $name: * => $repo_hash, } } }