
Added ability to modify/remove data from structures (like Heat templates) via jsonpatch and thus added ability to clean up Heat resources that was obtained by deleted instances Closes bug: #1296624 Change-Id: I4db226a5ab00ff363f8b5d44a5d690df942622e8
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
Namespaces:
|
|
=: io.murano.windows
|
|
ad: io.murano.windows.activeDirectory
|
|
res: io.murano.resources
|
|
sys: io.murano.system
|
|
|
|
Name: Host
|
|
|
|
Extends: res:Instance
|
|
|
|
Properties:
|
|
adminAccountName:
|
|
Contract: $.string().notNull()
|
|
Default: Administrator
|
|
|
|
adminPassword:
|
|
Contract: $.string().notNull()
|
|
|
|
Workflow:
|
|
initialize:
|
|
Body:
|
|
- $.super($.initialize())
|
|
|
|
deploy:
|
|
Body:
|
|
- $.super($.deploy())
|
|
|
|
- $resources: new(sys:Resources)
|
|
- $template: $resources.json('SetPassword.template').bind(dict(
|
|
adminPassword => $.adminPassword
|
|
))
|
|
- $.agent.send($template, $resources)
|
|
|
|
joinDomain:
|
|
Arguments:
|
|
- domain:
|
|
Contract: $.class(ad:ActiveDirectory).notNull()
|
|
Body:
|
|
|
|
- $resources: new(sys:Resources)
|
|
- $template: $resources.json('JoinDomain.template').bind(dict(
|
|
domain => $domain.name,
|
|
domainUser => $domain.adminAccountName,
|
|
domainPassword => $domain.adminPassword,
|
|
ouPath => '',
|
|
dnsIp => $domain.primaryController.dnsIp
|
|
))
|
|
- $.agent.call($template, $resources)
|
|
|