Skip to content

ServiceAccount

This resource will create Active Directory user accounts.

Specifications

TO BE GENERATED BY SCHEMA.

User will be created in $AD_USER_RESOURCE_OU.

Modifiers

Name Type Mandatory Location Default Example
DEFAULT_AD_RESOURCEPROVIDER string true Variable - ad-foo-bar
AD_SERVICEACCOUNT_FORMAT string false ResourceProvider {0} svc-{{deployment.shortid}}-{0}
AD_USER_RESOURCE_OU string true ResourceProvider - OU=Resources,DC=foo,DC=bar

Usage

The user account created by ServiceAccount resource can be referenced in the template using moustache format.

If we use the following modifiers:

AD_SERVICEACCOUNT_FORMAT: svc-{{deployment.shortid}}-{0}

And the following input:

- type: serviceAccount
  name: svcfoo
  svcName: foo
  memberOf:
  - group0
Reference Type Output
{{serviceaccount.svcfoo}} string svc-0fa0bb-foo
{{serviceaccount.svcfoo.svcname}} string svc-0fa0bb-foo
{{serviceaccount.svcfoo.svcpassword}} string fj2b00bgn24FF4f42$$