Merge "Move the Hiera symlink task from post configuration to deployment steps."

This commit is contained in:
Zuul 2019-07-31 02:27:36 +00:00 committed by Gerrit Code Review
commit b881a5e8e7
3 changed files with 7 additions and 30 deletions

View File

@ -513,7 +513,14 @@ outputs:
hieradata_variable_end_string: $$
hieradata_files: "{{ '{{' }} lookup('file', '{{role.name}}/deployment-hierarchy.yaml') {{ '}}' }}"
when: tripleo_role_name == '{{role.name}}'
{%- endfor %}
- name: Hiera symlink
file:
src: /etc/puppet/hiera.yaml
dest: /etc/hiera.yaml
state: link
force: true
tags:
- overcloud
- pre_deploy_steps

View File

@ -37,34 +37,6 @@ parameters:
resources:
StandalonePostConfig:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
inputs:
- name: ansible_python_interpreter
description: Python interpreter to use for the ansible execution
default: {get_param: PythonInterpreter}
config: |
---
- name: StandalonePostConfig
connection: local
hosts: localhost
tasks:
- name: Hiera symlink
file:
src: /etc/puppet/hiera.yaml
dest: /etc/hiera.yaml
state: link
force: yes
StandalonePostDeployment:
type: OS::Heat::SoftwareDeploymentGroup
properties:
name: StandalonePostDeployment
servers: {get_param: servers}
config: {get_resource: StandalonePostConfig}
CloudsYamlConfig:
type: OS::Heat::SoftwareConfig
properties:

View File

@ -1,8 +1,6 @@
#!/bin/bash
set -eux
ln -sf /etc/puppet/hiera.yaml /etc/hiera.yaml
HOMEDIR="$homedir"
USERNAME=`ls -ld $HOMEDIR | awk {'print $3'}`
GROUPNAME=`ls -ld $HOMEDIR | awk {'print $4'}`