-
-
Notifications
You must be signed in to change notification settings - Fork 28
Drop Puppet 5, add Puppet 7 and allow puppetlabs-concat 7.x #96
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
cb4132d
e2f81b9
6a7231e
1e7248e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,17 @@ | ||
| class amanda::virtual { | ||
| include amanda::params | ||
|
|
||
| if $amanda::client::ensure == 'absent' { | ||
| $client_ensure = 'absent' | ||
| } else { | ||
| $client_ensure = 'present' | ||
| } | ||
| if $amanda::server::ensure == 'absent' { | ||
| $server_ensure = 'absent' | ||
| } else { | ||
| $server_ensure = 'present' | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order to access
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, I'm not sure about this. I've tested (with Puppet 7), and the additional includes doesn't seem to be needed. Also, adding these includes changes the Amanda module behavior as the defaults are set to 'present'.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well my point is that if the class class { 'amanda::client':
}
# amanda::client include amanda
# `-> amanda include amanda::virtual
# `-> amanda::virtual sees $amanda::server::ensure == undef
# and $amanda::client::ensure == 'present'
class { 'amanda::server':
}class { 'amanda::server':
}
# amanda::server include amanda
# `-> amanda include amanda::virtual
# `-> amanda::virtual sees $amanda::server::ensure == 'present'
# and $amanda::client::ensure == undef
class { 'amanda::client':
}class { 'amanda':
}
# amanda include amanda::virtual
# `-> amanda::virtual sees $amanda::server::ensure == undef
# and $amanda::client::ensure == undef
class { 'amanda::client':
}
class { 'amanda::server':
}I have no experience with amanda, but this does not look right 😨 |
||
|
|
||
| case $facts['os']['name'] { | ||
| 'Solaris': { include amanda::virtual::solaris } | ||
| default: {} # do nothing | ||
|
|
@@ -72,10 +83,12 @@ | |
| } | ||
| } else { | ||
| @package { 'amanda/client': | ||
| ensure => $client_ensure, | ||
| name => $amanda::params::client_package, | ||
| before => $post_package, | ||
| } | ||
| @package { 'amanda/server': | ||
| ensure => $server_ensure, | ||
| name => $amanda::params::server_package, | ||
| before => $post_package, | ||
| } | ||
|
|
@@ -96,6 +109,7 @@ | |
| } | ||
|
|
||
| @xinetd::service { 'amanda_udp': | ||
| ensure => $client_ensure, | ||
| service_name => 'amanda', | ||
| socket_type => 'dgram', | ||
| protocol => 'udp', | ||
|
|
@@ -106,6 +120,7 @@ | |
| server_args => "-auth=bsd ${amanda::params::client_daemons}", | ||
| } | ||
| @xinetd::service { 'amanda_tcp': | ||
| ensure => $client_ensure, | ||
| service_name => 'amanda', | ||
| socket_type => 'stream', | ||
| protocol => 'tcp', | ||
|
|
@@ -116,6 +131,7 @@ | |
| server_args => "-auth=bsdtcp ${amanda::params::client_daemons}", | ||
| } | ||
| @xinetd::service { 'amanda_indexd': | ||
| ensure => $server_ensure, | ||
| service_name => 'amandaidx', | ||
| socket_type => 'stream', | ||
| protocol => 'tcp', | ||
|
|
@@ -128,6 +144,7 @@ | |
| server_args => "-auth=bsdtcp ${amanda::params::server_daemons}", | ||
| } | ||
| @xinetd::service { 'amanda_taped': | ||
| ensure => $server_ensure, | ||
| service_name => 'amidxtape', | ||
| socket_type => 'stream', | ||
| protocol => 'tcp', | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.