-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNovaServer.yaml
75 lines (60 loc) · 2.19 KB
/
NovaServer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
heat_template_version: 2016-04-08
# GfK Online Pricing Intelligence
# Production Platform Orchestration Template (HEAT)
# http://docs.openstack.org/developer/heat/template_guide/hot_spec.html
# http://docs.openstack.org/developer/heat/template_guide/openstack.html
description: |
This is a template to deploy a windows server
# VERSION HISTORY
#
# Version Date Author Comments
# ------- ---------- ------------ -----------------------------
# 1.0 2016-04-26 Tommy Monk Initial Version
parameters:
name_map:
type: json
index:
type: string
admin_pass:
type: string
image:
type: string
flavor:
type: string
network_id:
type: string
domain:
type: string
oupath:
type: string
credential_username:
type: string
credential_password:
type: string
resources:
server:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: { get_param: flavor }
name: { get_param: [name_map, { get_param: index}] }
admin_pass: { get_param: admin_pass }
networks:
- network: 11111111-1111-1111-1111-111111111111
- network: { get_param: network_id }
metadata:
rax-heat: { get_param: "OS::stack_id" }
stack-name: { get_param: "OS::stack_name" }
personality:
'c:\cloud-automation\bootstrap.bat':
str_replace:
template: powershell.exe -NoProfile -NoLogo -InputFormat None -ExecutionPolicy Bypass -Command "(Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/cogenta/Rackspace-HEAT/master/join_domain.ps1' -OutFile 'join_domain.ps1'); .\join_domain.ps1 -domain '$cDomain' -oupath '$cOUPath' -credential_username '$cCredentialUser' -credential_password '$cCredentialPassword'; del 'C:\cloud-automation\bootstrap.bat';"
params:
$cDomain:
get_param: domain
$cOUPath:
get_param: oupath
$cCredentialUser:
get_param: credential_username
$cCredentialPassword:
get_param: credential_password