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

Add license key variable with flattened namespace #186

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

ahosie
Copy link
Contributor

@ahosie ahosie commented Jul 21, 2022

Added extra variable nrinfragent_license_key which provides an optional default value for the otherwise hierarchical variable nrinfragent_config.license_key.

This circumvents Issue# 1965 in Ansible Tower/AWX, which prevents creating custom Credential Types that contains a dictionary-type variable.

Added extra variable `nrinfragent_license_key` which provides an optional default value for the otherwise hierarchical variable `nrinfragent_config.license_key`
@CLAassistant
Copy link

CLAassistant commented Jul 21, 2022

CLA assistant check
All committers have signed the CLA.

@ahosie
Copy link
Contributor Author

ahosie commented Jul 21, 2022

n.b. the custom Credential Type I am using in my AWX instance is as follows:

Input configuration:

fields:
  - id: license_key
    type: string
    label: New Relic License Key
    secret: true
required:
  - license_key

Injector configuration:

extra_vars:
  nrinfragent_license_key: '{{license_key}}'

@rogercoll rogercoll merged commit f60f5f1 into newrelic:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants