Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure classifier data in global hiera.yaml #44

Merged
merged 2 commits into from
Jan 17, 2020
Merged

configure classifier data in global hiera.yaml #44

merged 2 commits into from
Jan 17, 2020

Conversation

tkishel
Copy link
Contributor

@tkishel tkishel commented Jan 15, 2020

Addresses #20

Copy link
Contributor Author

@tkishel tkishel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
The Approve button is disabled for me though

So that if the default hiera.yaml changes, the logic will still work,
and the source of truth for the contents of hiera.yaml in a deployment
managed by peadm is not the peadm module itself.
@reidmv reidmv merged commit 577150c into puppetlabs:master Jan 17, 2020

cat <<EOS
{
"content": $(python -c "import json; print json.dumps(open('$outfile','r').read())")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, python isn't available by default on rhel 8... I'm actually confused what was wrong with actually using cat here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good to know. Hmm.

Python is needed/used because the result returned needs to be JSON, and special characters like newlines need to be JSON encoded to be returned.

Looks like python isn't available by default on Ubuntu 18.04 either.

I think the workaround for now is gonna have to be shipping a Ruby implementation of this task. At the moment we only use it after Puppet is installed, so that should work ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW /usr/bin/python3 is installed on my Platform9 Ubuntu VMs.
Yes, ruby ...

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

Successfully merging this pull request may close these issues.

3 participants