christophetd / Adaz

:wrench: Deploy customizable Active Directory labs in Azure - automatically.
https://blog.christophetd.fr/automating-the-provisioning-of-active-directory-labs-in-azure/
410 stars 84 forks source link

Cannot Install Elastic VM #39

Closed francescouk closed 2 years ago

francescouk commented 3 years ago

Hi there, for some reason I cannot install elastic vm. Follow the error:

TASK [winlogbeat : Find Elasticsearch IP] **************************************
fatal: [domain-controller_1493]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'elasticsearch'\n\nThe error appears to be in '/home/francesco/lab/Adaz/ansible/roles/winlogbeat/tasks/main.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Find Elasticsearch IP\n  ^ here\n"}

RUNNING HANDLER [wef-collector : restart wec service] **************************

PLAY RECAP *********************************************************************
domain-controller_1493     : ok=28   changed=22   unreachable=0    failed=1    skipped=3    rescued=0    ignored=0   

Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The value of parameter linuxConfiguration.ssh.publicKeys.keyData is invalid." Target="linuxConfiguration.ssh.publicKeys.keyData"

  on elasticsearch_kibana.tf line 24, in resource "azurerm_virtual_machine" "es_kibana":
  24: resource "azurerm_virtual_machine" "es_kibana" {

Can you please point me what´s wrong?

Thanks

christophetd commented 3 years ago

What do you have in you ~/.ssh/id_rsa.pub? Having a public SSH key in there is a pre-requisite to run Adaz.

francescouk commented 3 years ago

So let me see if I got this right, should I have this linux machine ready before deploy?

christophetd commented 3 years ago

No, the linux machine is part of Adaz. The only pre-requisite is to have a SSH key available on your system. Does that make sense? Did you end up fixing your issue?

christophetd commented 2 years ago

Closing for inactivity, but feel free to reopen!