Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Fix formatting of ansible variables in job configmaps #125

Open
dgoodwin opened this issue Mar 21, 2018 · 0 comments
Open

Fix formatting of ansible variables in job configmaps #125

dgoodwin opened this issue Mar 21, 2018 · 0 comments

Comments

@dgoodwin
Copy link
Contributor

If you examine the yaml for a configmap we mount into an ansible job, the hosts file comes out formatted nicely, the vars file does not:

apiVersion: v1
data:
  hosts: |2

    [OSEv3:children]
    masters
    nodes
    etcd

    [OSEv3:vars]
    ansible_become=true

    [masters]

    [etcd]

    [nodes]
  vars: "---\n# Variables that are commented in this file are optional; uncommented
    variables\n# are mandatory.\n\n# Default values for each variable are provided,
    as applicable.\n# Example values for mandatory variables are provided as a comment
    at the end\n# of the line.\n\n# ------------------------ #\n# Common/Cluster Variables
[snip]

Having a properly formatted vars file would be a nice to have for debugging or re-using.

There are some issues around this for k8s in general, but hopefully we can figure out why one is fine and the other is not and get them consistent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant