| # |
| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| --- |
| - name: Configure Metron Pcap Topology |
| lineinfile: > |
| dest={{ metron_pcap_properties_config_path }} |
| regexp="{{ item.regexp }}" |
| line="{{ item.line }}" |
| with_items: |
| - { regexp: "kafka.zk=", line: "kafka.zk={{ zookeeper_url }}" } |
| - { regexp: "kafka.pcap.out=", line: "kafka.pcap.out={{ pcap_hdfs_path }}" } |
| - { regexp: "spout.kafka.topic.pcap=", line: "spout.kafka.topic.pcap={{ pycapa_topic }}" } |
| |
| - name: Configure Metron Enrichment topology |
| lineinfile: > |
| dest={{ metron_enrichment_properties_config_path }} |
| regexp="{{ item.regexp }}" |
| line="{{ item.line }}" |
| with_items: |
| - { regexp: "kafka.zk=", line: "kafka.zk={{ zookeeper_url }}" } |
| - { regexp: "kafka.broker=", line: "kafka.broker={{ kafka_broker_url }}" } |
| - { regexp: "spout.kafka.topic.bro=", line: "spout.kafka.topic.bro={{ bro_topic }}" } |
| - { regexp: "threat.intel.tracker.table=", line: "threat.intel.tracker.table={{ tracker_hbase_table }}" } |
| - { regexp: "threat.intel.tracker.cf=", line: "threat.intel.tracker.cf=t" } |
| - { regexp: "threat.intel.simple.hbase.table=", line: "threat.intel.simple.hbase.table={{ threatintel_hbase_table }}" } |
| - { regexp: "threat.intel.simple.hbase.cf=", line: "threat.intel.simple.hbase.cf=t" } |
| - { regexp: "enrichment.simple.hbase.table=", line: "enrichment.simple.hbase.table={{ enrichment_hbase_table }}" } |
| - { regexp: "enrichment.simple.hbase.cf=", line: "enrichment.simple.hbase.cf=t" } |
| |
| |
| - name: Configure Metron Solr topology |
| lineinfile: > |
| dest={{ metron_solr_properties_config_path }} |
| regexp="{{ item.regexp }}" |
| line="{{ item.line }}" |
| with_items: |
| - { regexp: "kafka.zk=", line: "kafka.zk={{ zookeeper_url }}" } |
| - { regexp: "kafka.broker=", line: "kafka.broker={{ kafka_broker_url }}" } |
| - { regexp: "bolt.hdfs.file.system.url=", line: "bolt.hdfs.file.system.url={{ hdfs_url }}" } |
| - { regexp: "index.hdfs.output=", line: "index.hdfs.output={{ metron_hdfs_output_dir }}/indexing/indexed" } |
| - { regexp: "bolt.hdfs.rotation.policy=", line: "bolt.hdfs.rotation.policy={{ metron_hdfs_rotation_policy }}" } |
| - { regexp: "bolt.hdfs.rotation.policy.count=", line: "bolt.hdfs.rotation.policy.count={{ metron_hdfs_rotation_policy_count}}" } |
| - { regexp: "bolt.hdfs.rotation.policy.units=", line: "bolt.hdfs.rotation.policy.units={{ metron_hdfs_rotation_policy_units }}" } |
| |
| - name: Configure Metron Elasticsearch topology |
| lineinfile: > |
| dest={{ metron_elasticsearch_properties_config_path }} |
| regexp="{{ item.regexp }}" |
| line="{{ item.line }}" |
| with_items: |
| - { regexp: "kafka.zk=", line: "kafka.zk={{ zookeeper_url }}" } |
| - { regexp: "kafka.broker=", line: "kafka.broker={{ kafka_broker_url }}" } |
| - { regexp: "es.ip=", line: "es.ip={{ groups.search[0] }}" } |
| - { regexp: "es.port=", line: "es.port={{ elasticsearch_transport_port }}" } |
| - { regexp: "es.clustername=", line: "es.clustername={{ elasticsearch_cluster_name }}" } |
| - { regexp: "bolt.hdfs.file.system.url=", line: "bolt.hdfs.file.system.url={{ hdfs_url }}" } |
| - { regexp: "index.hdfs.output=", line: "index.hdfs.output={{ metron_hdfs_output_dir }}/indexing/indexed" } |
| - { regexp: "bolt.hdfs.rotation.policy=", line: "bolt.hdfs.rotation.policy={{ metron_hdfs_rotation_policy }}" } |
| - { regexp: "bolt.hdfs.rotation.policy.count=", line: "bolt.hdfs.rotation.policy.count={{ metron_hdfs_rotation_policy_count}}" } |
| - { regexp: "bolt.hdfs.rotation.policy.units=", line: "bolt.hdfs.rotation.policy.units={{ metron_hdfs_rotation_policy_units }}" } |
| |
| - name: Configure Profiler topology |
| lineinfile: > |
| dest={{ metron_profiler_properties_config_path }} |
| regexp="{{ item.regexp }}" |
| line="{{ item.line }}" |
| with_items: |
| - { regexp: "kafka.zk=", line: "kafka.zk={{ zookeeper_url }}" } |
| - { regexp: "kafka.broker=", line: "kafka.broker={{ kafka_broker_url }}" } |
| |
| |
| |