annotate modules/apache/lib/puppet/functions/bool2httpd.rb @ 482:d83de9b3a62b default tip

Update hiera.yaml within Puppet config Forgot that we manage it from here. Now has content to match new packages
author IBBoard <dev@ibboard.co.uk>
date Fri, 30 Aug 2024 16:10:36 +0100
parents b8d6ada284dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
437
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 # frozen_string_literal: true
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 # @summary DEPRECATED. Use the namespaced function [`apache::bool2httpd`](#apachebool2httpd) instead.
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 Puppet::Functions.create_function(:bool2httpd) do
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 dispatch :deprecation_gen do
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 repeated_param 'Any', :args
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 end
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 def deprecation_gen(*args)
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 call_function('deprecation', 'bool2httpd', 'This function is deprecated, please use apache::bool2httpd instead.')
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 call_function('apache::bool2httpd', *args)
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 end
b8d6ada284dd Update Apache module to latest version
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 end