Skip to content

Commit

Permalink
Merge pull request #53 from cruelsmith/main
Browse files Browse the repository at this point in the history
Remove general yumrepo ordering and fix ordering for acceptance tests only
  • Loading branch information
fraenki authored Sep 25, 2024
2 parents 0b2f950 + 82673af commit 133ae4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 4 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@
Optional[Stdlib::Filesource] $authgroupfile_source = undef,
Optional[Stdlib::Absolutepath] $prefix = undef,
) {
class { 'proftpd::install': }
-> class { 'proftpd::config': }
~> class { 'proftpd::service': }
contain proftpd::install
contain proftpd::config
contain proftpd::service
Class['proftpd::install'] -> Class['proftpd::config'] ~> Class['proftpd::service']

if $load_modules {
create_resources(proftpd::module, $load_modules, {})
Expand Down
4 changes: 0 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
class proftpd::install {
assert_private()

if $facts['os']['family'] == 'RedHat' {
Yumrepo <| |> -> Package <| |>
}

if $proftpd::package_manage {
package { $proftpd::packages:
ensure => $proftpd::package_ensure,
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/proftpd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
pp = <<-EOS
if $facts['os']['family'] == 'RedHat' {
include epel
Class['epel'] -> Class['proftpd']
}
class { 'proftpd': }
EOS
Expand Down

0 comments on commit 133ae4d

Please sign in to comment.