refacter: cleanup packages setup

This commit is contained in:
2024-02-17 22:35:30 +11:00
parent 73a21059f8
commit 12ff053c6d
18 changed files with 45 additions and 76 deletions
@@ -10,7 +10,7 @@ class profiles::reposync::autosyncer (
group => 'root',
mode => '0755',
content => template('profiles/reposync/autosyncer.erb'),
require => Class['profiles::packages::reposync'],
require => Package['createrepo'],
}
# daily autosyncr service/timer
@@ -1,7 +1,6 @@
# setup a reposync syncer
class profiles::reposync::syncer {
include profiles::packages::reposync
include profiles::reposync::autosyncer
include profiles::reposync::autopromoter
include profiles::reposync::webserver
@@ -40,9 +40,6 @@ class profiles::reposync::webserver (
if $::facts['os']['selinux']['config_mode'] == 'enforcing' {
# include packages that are required
include profiles::packages::selinux
# set httpd_sys_content_t to all files under the www_root
selinux::fcontext { $www_root:
ensure => 'present',