Linux Domain Join Script

I needed to domain join Linux servers, so I wrote up this Ansible script. Should work with Cent/RHEL/Ubuntu.

How to Configure in Morpheus

  1. Add Ansible Integration
  2. Create Join Domain Task
  3. Create Linux Domain Workflow
  4. Associate Linux Domain Workflow to Domain
  5. Prosper!

Requirements

  1. Cypher Configuration
    a. Name of the cypher object is matches the domain name.
    Example: “secret/mydomain.com”
    b. The contents of the cypher are as follows (Admin group is optional)
    {
    "username":"userSAMAccount",
    "password":"MyPassword",
    "admin":"ADGroup@mydomain.com"
    }
    
2 Likes

Hi @cbunge
For Windows VMs to join the domain, we do not need the additional workflow. We can just check the “Join Domain Controller” option, is that correct ?

Correct. Just select auto join domain on virtual image, add domain info under infra > network > domains, and set preferred domain on cloud or network or chose at provision time.