-
Notifications
You must be signed in to change notification settings - Fork 0
/
ambari.yaml
90 lines (76 loc) · 2.06 KB
/
ambari.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
heat_template_version: 2013-05-23
description: Heat Template to deploy Ambari on a Cloud Server
parameters:
flavor:
label: Server Size
type: string
default: 4 GB Performance
image:
label: Operating System
type: string
default: CentOS 6.5 (PVHVM)
server_name:
label: Server Hostname
type: string
default: linux-server
username:
label: Username
type: string
default: admin
kitchen:
label: Kitchen
description: URL for the kitchen to use
type: string
default: https://github.com/brint/ambari
chef_version:
label: Chef Version
description: Version of chef client to use
type: string
default: 11.16.2
resources:
ssh_key:
type: "OS::Nova::KeyPair"
properties:
name: { get_param: "OS::stack_id" }
save_private_key: true
ambari_password:
type: "OS::Heat::RandomString"
properties:
length: 16
sequence: lettersdigits
ambari_server:
type: "OS::Nova::Server"
properties:
key_name: { get_resource: ssh_key }
flavor: { get_param: flavor }
image: { get_param: image }
name: { get_param: server_name }
ambari_setup:
type: "OS::Heat::ChefSolo"
depends_on: ambari_server
properties:
username: root
private_key: { get_attr: [ssh_key, private_key] }
host: { get_attr: [ambari_server, accessIPv4] }
kitchen: { get_param: kitchen }
chef_version: { get_param: chef_version }
node:
ambari:
admin_user: { get_param: username }
admin_password: { get_attr: [ambari_password, value] }
rax:
firewall:
tcp: [ 8080, 8440 ]
run_list: ["recipe[yum]",
"recipe[ambari::server]",
"recipe[rax-firewall]"]
outputs:
private_key:
value: { get_attr: [ssh_key, private_key] }
description: SSH Private Key
server_ip:
value: { get_attr: [ambari_server, accessIPv4] }
description: Server IP
ambari_password:
value: { get_attr: [ambari_password, value] }
description: Ambari Password