diff --git a/manifests/pool.pp b/manifests/pool.pp index 861ef24d..407c2fd5 100644 --- a/manifests/pool.pp +++ b/manifests/pool.pp @@ -46,9 +46,9 @@ # Optional. Default is undef. # Increase or decrease the replica level of a pool. # -# [*tag*] Pool tag. +# [*application*] Application the pool is associated with. # Optional. Default is undef. -# cephfs,rbd,rgw or freeform for custom application. +# cephfs, rbd, rgw or freeform for custom application. # # DEPRECATED PARAMETERS # @@ -61,7 +61,7 @@ define ceph::pool ( Integer[0] $pg_num = 64, Optional[Integer[0]] $pgp_num = undef, Optional[Integer[0]] $size = undef, - Optional[String[1]] $tag = undef, + Optional[String[1]] $application = undef, # DEPRECATED PARAMETERS Optional[Float[0]] $exec_timeout = undef, ) { @@ -86,6 +86,6 @@ define ceph::pool ( pgp_num => $pgp_num, size => $size, cluster => $cluster, - application => $tag, + application => $application, } } diff --git a/releasenotes/notes/rename-tag-c6beebada022f499.yaml b/releasenotes/notes/rename-tag-c6beebada022f499.yaml new file mode 100644 index 00000000..2f3cd917 --- /dev/null +++ b/releasenotes/notes/rename-tag-c6beebada022f499.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + The ``ceph::pool::tag`` parameter has been renamed to the ``application`` + parameter, due to conflict with metaparameters. diff --git a/spec/defines/ceph_pool_spec.rb b/spec/defines/ceph_pool_spec.rb index 7938cf82..7a2e8680 100644 --- a/spec/defines/ceph_pool_spec.rb +++ b/spec/defines/ceph_pool_spec.rb @@ -27,11 +27,11 @@ describe 'ceph::pool' do describe "create with custom params" do let :params do { - :ensure => 'present', - :pg_num => 4, - :pgp_num => 3, - :size => 2, - :tag => 'rbd', + :ensure => 'present', + :pg_num => 4, + :pgp_num => 3, + :size => 2, + :application => 'rbd', } end