<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansible playbook for Skyline configuration? in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187871#M742</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Skyline (&lt;A href="https://support.checkpoint.com/results/sk/sk178566" target="_self"&gt;sk178566&lt;/A&gt;) configuration is possible using a simple REST API command.&lt;/P&gt;
&lt;P&gt;Has any of you created an ansible playbook for doing that on multiple devices?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 13:37:39 GMT</pubDate>
    <dc:creator>Arik_Ovtracht</dc:creator>
    <dc:date>2023-07-27T13:37:39Z</dc:date>
    <item>
      <title>Ansible playbook for Skyline configuration?</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187871#M742</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Skyline (&lt;A href="https://support.checkpoint.com/results/sk/sk178566" target="_self"&gt;sk178566&lt;/A&gt;) configuration is possible using a simple REST API command.&lt;/P&gt;
&lt;P&gt;Has any of you created an ansible playbook for doing that on multiple devices?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:37:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187871#M742</guid>
      <dc:creator>Arik_Ovtracht</dc:creator>
      <dc:date>2023-07-27T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible playbook for Skyline configuration?</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187931#M743</link>
      <description>&lt;P&gt;I am still looking for a solution the other way around. So instead of the unit pushing data I want to fetch the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 06:59:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187931#M743</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2023-07-28T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible playbook for Skyline configuration?</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187947#M744</link>
      <description>&lt;P&gt;Here is an example of an old playbook &amp;amp; template file I've used in my lab to setup Skyline that may be a useful to you.&lt;/P&gt;
&lt;P&gt;Playbook:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;---
- name: "Configure the Skyline /opt/CPotelcol/config.yaml file, then stop/start the Skyline service"
  gather_facts: no
  hosts: gateways

  tasks:
     - name: "Template Skyline config.yaml file"
       template:
         src: skyline_fw_config.j2
         dest: /opt/CPotelcol/config.yaml

     - name: "Stop Skyline"
       shell: /opt/CPviewExporter/stop_skyline

     - name: "Start Skyline"
       shell: /opt/CPviewExporter/start_skyline

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Required skyline_fw_config.j2 template file:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This template assumes you have the {{ hostname }} and {{ skyline_receiver_ip }} variables set in your host_vars or in group_vars for each target gateway.&lt;/LI&gt;
&lt;LI&gt;This template also&amp;nbsp; assumes the TLS certificate files are already&amp;nbsp; copied to the gateway's filesystem in the correct locations.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="markup"&gt;receivers:
  otlp:
    protocols:
      grpc:
        tls:
          client_ca_file: /opt/CPotelcol/certs/collector.crt
          cert_file: /opt/CPotelcol/certs/collector.crt
          key_file: /opt/CPotelcol/certs/collector.key

exporters:
  prometheusremotewrite:
    endpoint: "http://{{skyline_receiver_ip}}:9090/api/v1/write"
    #tls:
      #cert_file: /tmp/mycerts/promexport.crt
      #key_file: /tmp/mycerts/promexport.key
      #ca_file: /tmp/mycerts/prometheus.crt
    external_labels:
     instance: {{hostname}}
     job: skyline
    resource_to_telemetry_conversion:
      enabled: true

processors:
  batch:

extensions:
  health_check:

service:
  extensions: [health_check]
  pipelines:
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [prometheusremotewrite]
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:40:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187947#M744</guid>
      <dc:creator>Erik_Lagzdins</dc:creator>
      <dc:date>2023-07-28T12:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible playbook for Skyline configuration?</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187948#M745</link>
      <description>&lt;P&gt;Same here.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:42:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-playbook-for-Skyline-configuration/m-p/187948#M745</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-07-28T12:42:52Z</dc:date>
    </item>
  </channel>
</rss>

