b7f06883f4
We've disabled os-collect-config after config-download became the default from rocky. However, this workflow is currently using heat software deployment for deploy_ssh_key task. This changes to use inventory generated by config-download and removes the deploy_ssh_key task. Also fixes swift_ring.v1.reblance to use the correct inventory. Change-Id: Iab9d30e1b5b3008ef3130f64225b4f7fd4082214 Closes-Bug: #1803814
34 lines
900 B
YAML
34 lines
900 B
YAML
---
|
|
version: '2.0'
|
|
name: tripleo.swift_ring.v1
|
|
description: Rebalance and distribute Swift rings using Ansible
|
|
|
|
|
|
workflows:
|
|
rebalance:
|
|
tags:
|
|
- tripleo-common-managed
|
|
|
|
input:
|
|
- container: overcloud
|
|
- work_dir: /var/lib/mistral
|
|
|
|
tasks:
|
|
get_private_key:
|
|
action: tripleo.validations.get_privkey
|
|
on-success: deploy_rings
|
|
|
|
deploy_rings:
|
|
action: tripleo.ansible-playbook
|
|
publish:
|
|
output: <% task().result %>
|
|
input:
|
|
ssh_private_key: <% task(get_private_key).result %>
|
|
verbosity: 1
|
|
remote_user: tripleo-admin
|
|
become: true
|
|
become_user: root
|
|
playbook: /usr/share/tripleo-common/playbooks/swift_ring_rebalance.yaml
|
|
inventory: <% $.get('work_dir') %>/<% $.get('container') %>/tripleo-ansible-inventory.yaml
|
|
use_openstack_credentials: true
|