cloudera-labs / cloudera.cluster

An Ansible collection for lifecycle and management of Cloudera CDP Private Cloud resources on bare metal, IaaS, and PaaS.
Apache License 2.0
32 stars 48 forks source link

Comma missing in Autotls json template roles/cloudera_manager/autotls/templates/auto-tls-key.json #214

Open hadoopch opened 6 months ago

hadoopch commented 6 months ago

Hi,

the autotls role is not working when using key authentication because of a missing comma in the template auto-tls-key.json:

{
    "customCA" : false,
    "configureAllServices" : "true",
    "sshPort" : 22,
    {% if freeipa_activated %}"trustedCaCerts" : "/etc/ipa/ca.crt",{% endif %}
    "userName" : "{{ sudoerUser|default("root") }}",
    "privateKey": "{{ node_key_one_line|default('~/node_key') }}"
    "passphrase": "{{ passphrase|default("") }}"
} 

The template should look like this

{
    "customCA" : false,
    "configureAllServices" : "true",
    "sshPort" : 22,
    {% if freeipa_activated %}"trustedCaCerts" : "/etc/ipa/ca.crt",{% endif %}
    "userName" : "{{ sudoerUser|default("root") }}",
    "privateKey": "{{ node_key_one_line|default('~/node_key') }}",
    "passphrase": "{{ passphrase|default("") }}"
} 

Regards

Uli