- Migrate away from using the log resource to using converge_by. This finally fixes idempotency issues we were having with all of these resources - Fix :delete action in openstack_domain by disabling the domain prior to destroying it - Add missing references to new_resource parameters - Fix :delete action in openstack_endpoint resource - Add domain_name property in openstack_project resource. This is required and would throw a deprecation warning in the backend system. - Fix logic around user grant/revoke actions - Cookstyle fixes Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/838415 Change-Id: I33601eb5595c794a9a025417ed3bc88cfa6cfaf0 Signed-off-by: Lance Albertson <lance@osuosl.org>
33 lines
990 B
Ruby
33 lines
990 B
Ruby
|
|
#
|
|
# Copyright:: 2016-2022, cloudbau GmbH
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
connection_params = {
|
|
openstack_auth_url: 'http://devstack.test:5000/v3/auth/tokens',
|
|
openstack_username: 'admin',
|
|
openstack_api_key: 'password',
|
|
openstack_project_name: 'admin',
|
|
openstack_domain_id: 'default',
|
|
}
|
|
|
|
openstack_project 'myproject' do
|
|
connection_params connection_params
|
|
end
|
|
|
|
openstack_project 'myproject' do
|
|
connection_params connection_params
|
|
action :delete
|
|
end
|