Skip to content

Commit

Permalink
Merge pull request #54 from JannikJ/master
Browse files Browse the repository at this point in the history
Support custom package source and provider
  • Loading branch information
aboe76 committed Dec 3, 2019
2 parents c484e84 + 778cbbf commit 840f1bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
$log_options = $chrony::params::log_options,
$package_ensure = $chrony::params::package_ensure,
$package_name = $chrony::params::package_name,
Optional[String] $package_source = $chrony::params::package_source,
Optional[String] $package_provider = $chrony::params::package_provider,
$refclocks = $chrony::params::refclocks,
$peers = $chrony::params::peers,
$servers = $chrony::params::servers,
Expand Down
12 changes: 8 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# install chrony
class chrony::install (
$package_ensure = $chrony::package_ensure,
$package_name = $chrony::package_name,
$package_ensure = $chrony::package_ensure,
$package_name = $chrony::package_name,
$package_source = $chrony::package_source,
$package_provider = $chrony::package_provider,
) inherits chrony {
package { 'chrony':
ensure => $package_ensure,
name => $package_name,
ensure => $package_ensure,
name => $package_name,
source => $package_source,
provider => $package_provider,
}

}
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
$keys = []
$log_options = undef
$package_ensure = 'present'
$package_provider = undef
$package_source = undef
$refclocks = []
$peers = []
$service_enable = true
Expand Down

0 comments on commit 840f1bc

Please sign in to comment.