Deprecate swift::test_file

This class generates a script to test swift installation but the script
has quite outdated implementation. It still required Keystone v2 API
which was already removed from Keystone, so no longer works.

Because verification of the deployment is out of scope of deployment
tools, the class is deprecated and will be removed in a future release.

Change-Id: I0409afde6d63d5c1b7b7193334545278faab4b0b
This commit is contained in:
Takashi Kajinami 2022-02-21 02:28:05 +09:00
parent a42ed4509f
commit dd3a5bbf0d
3 changed files with 8 additions and 6 deletions

View File

@ -279,10 +279,4 @@ node /swift-proxy/ {
@@swift::ringsync { ['account', 'object', 'container']:
ring_server => $swift_local_net_ip,
}
# deploy a script that can be used for testing
class { 'swift::test_file':
auth_server => $swift_keystone_node,
password => $swift_keystone_admin_password,
}
}

View File

@ -1,5 +1,6 @@
# == Class: swift::test_file
#
# DEPRECATED !!
# Deploys a file that can be used to verify your swift installation.
#
# === Parameters
@ -39,6 +40,8 @@ class swift::test_file (
include swift::deps
warning('The swift::test_file class is deprecated and will be removed in a future release.')
file { '/tmp/swift_test_file.rb':
mode => '0755',
content => template('swift/swift_keystone_test.erb'),

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``swift::test_file`` class has been deprecated and will be removed
in a future release.