Skip to content

Commit

Permalink
Switched to using contain
Browse files Browse the repository at this point in the history
This is intended to fix a problem where setting a require on the class
declaration like below doesn't actually work.

class {'::autosign':
  ensure  => present,
  require => Package['gcc'],
}

Being able to do a require like this is needed so that GCC is installed
prior to the autosign gem.
  • Loading branch information
genebean committed Oct 23, 2017
1 parent 68232e5 commit 0ae27a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
validate_string($package_name)
validate_string($ensure)

class { '::autosign::install': } ->
class { '::autosign::config': } ~>
Class['::autosign']
contain ::autosign::install
contain ::autosign::config

Class['::autosign::install']
-> Class['::autosign::config']
}

0 comments on commit 0ae27a4

Please sign in to comment.