Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom package source and provider #54

Merged
merged 3 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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