Hey Phil,

This is what my colleague fabricated yesterday with Ansible for our Ambari
unattended installation:

  - name: Ambari server SSL configuration

    shell: ambari-server setup-security -v --security-option=setup-https
--api-ssl=true --api-ssl-port={{ ssl_port }} --import-cert-path={{
cert_path }}/{{ cert_file }} --import-cert-alias={{ cert_alias }}
--import-key-path={{ private_key_path }}/{{ private_key }}
--pem-password={{ pass }}


I tested this yesterday and it works like a charm; Before running this task
he generated some self signed certificates (it's a DEV-environment);


Good luck, and let me know if it works :)


Jorn Eilander

On Wed, Jan 4, 2017 at 1:37 AM, Phillip Rhodes <[email protected]>
wrote:

> Hi all, I'm trying to automate the installation and configuration of
> Ambari,
> but right now I'm stuck on configuring SSL.  The standard approach
> using "ambari-server setup-security" requires interactive answering of
> prompts.   I could use Expect, but that feels like a very brittle and dodgy
> way of doing this.   Is there any better way?
>
>
> Thanks,
>
> Phil
> ~~~
> This message optimized for indexing by NSA PRISM
>

Reply via email to