Skip to content

Commit a9798d4

Browse files
authored
DFX and CDF Datahubs example and static inventory example update
* Add examples/cdf for new Dataflow Technical Preview and CDF Datahubs deployment * Fix sandbox `inventory_static.example` to correctly show FQDN of host entries and `ansible_host` control words (#42) Signed-off-by: Daniel Chaffelson <[email protected]>
1 parent a9bb77a commit a9798d4

File tree

3 files changed

+67
-13
lines changed

3 files changed

+67
-13
lines changed

examples/cdf/application.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
3+
# Copyright 2021 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
- name: Coda
18+
hosts: localhost
19+
connection: local
20+
gather_facts: no
21+
become: no
22+
tasks:
23+
- name: Deployment results
24+
debug:
25+
msg: Success!

examples/cdf/definition.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
3+
# Copyright 2021 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Commented values are shown with the defaults, uncomment and change to override
18+
19+
df:
20+
# nodes_min: 3
21+
# nodes_max: 5
22+
# public_loadbalancer: True
23+
# ip_ranges: []
24+
25+
datahub:
26+
definitions:
27+
- definition: "Flow Management Light Duty"
28+
suffix: nifi-dhub
29+
- definition: "Streams Messaging Light Duty"
30+
suffix: kafka-dhub
31+
- definition: "Streaming Analytics Light Duty"
32+
suffix: flink-dhub

examples/sandbox/inventory_static.example

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
# limitations under the License.
1414

1515
[cloudera_manager]
16-
ip-10-10-1-19.eu-west-1.compute.internal
16+
ip-10-10-11-191.eu-west-1.compute.internal ansible_host=52.211.97.38 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
1717

1818
[cluster_master_nodes]
19-
ip-10-10-1-19.eu-west-1.compute.internal host_template=Master1
19+
ip-10-10-11-191.eu-west-1.compute.internal ansible_host=52.211.97.38 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem host_template=Master1
2020

2121
[cluster_worker_nodes]
22-
ip-10-10-28-171.eu-west-1.compute.internal
23-
ip-10-10-29-99.eu-west-1.compute.internal
24-
ip-10-10-14-121.eu-west-1.compute.internal
22+
ip-10-10-2-62.eu-west-1.compute.internal ansible_host=63.35.213.171 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
23+
ip-10-10-15-242.eu-west-1.compute.internal ansible_host=34.245.231.13 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
24+
ip-10-10-12-158.eu-west-1.compute.internal ansible_host=3.249.133.103 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
2525

2626
[cluster_worker_nodes:vars]
2727
host_template=Workers
@@ -31,14 +31,11 @@ cluster_master_nodes
3131
cluster_worker_nodes
3232

3333
[db_server]
34-
ip-10-10-1-19.eu-west-1.compute.internal
34+
ip-10-10-11-191.eu-west-1.compute.internal ansible_host=52.211.97.38 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
35+
36+
[custom_repo]
37+
ip-10-10-11-191.eu-west-1.compute.internal ansible_host=52.211.97.38 ansible_user=centos ansible_ssh_private_key_file=~/.ssh/mykey.pem
3538

3639
[deployment:children]
3740
cluster
38-
db_server
39-
40-
[deployment:vars]
41-
# Ansible will defer to the running SSH Agent for relevant keys
42-
# Set the following to hardcode the SSH private key for the instances
43-
# ansible_ssh_private_key_file=~/.ssh/mykey.pem
44-
ansible_user=centos
41+
cloudera_manager

0 commit comments

Comments
 (0)