-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Drop Puppet 5, add Puppet 7 and allow puppetlabs-concat 7.x #96
base: master
Are you sure you want to change the base?
Conversation
Note that purging is only partially implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things to double check.
$server_ensure = 'absent' | ||
} else { | ||
$server_ensure = 'present' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to access $amanda::client::ensure
and $amanda::server::ensure
we must include amanda::client
and include amanda::server
first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well my point is that if the class amanda::server
is not included, $amanda::server::ensure
will be undef
while the default value is 'present' when amanda::server
is included… that's weird and seems fragile:
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 😨
Pull Request (PR) description