summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-audit/features
diff options
context:
space:
mode:
authorPatrick Brady <patrick.brady@att.com>2019-08-07 13:12:28 -0700
committerPatrick Brady <patrick.brady@att.com>2019-08-07 13:12:34 -0700
commit46da690baf4ea855d333bd1fc8f72d98e5b1a529 (patch)
treee8fb6ab9c8001607ef1c1bc9adbb27434fb3afb6 /appc-config/appc-config-audit/features
parent4836b7ed83e0128e2a53877f0faf68e1e509591a (diff)
Change to release parent version
Change-Id: If572b36cdf00e3c6ada36181fb6c678fbd978e72 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1686
Diffstat (limited to 'appc-config/appc-config-audit/features')
-rw-r--r--appc-config/appc-config-audit/features/features-appc-config-audit/pom.xml2
-rw-r--r--appc-config/appc-config-audit/features/onap-appc-config-audit/pom.xml2
-rw-r--r--appc-config/appc-config-audit/features/pom.xml2
3 files changed, 3 insertions, 3 deletions
diff --git a/appc-config/appc-config-audit/features/features-appc-config-audit/pom.xml b/appc-config/appc-config-audit/features/features-appc-config-audit/pom.xml
index 48be685c0..b542775cd 100644
--- a/appc-config/appc-config-audit/features/features-appc-config-audit/pom.xml
+++ b/appc-config/appc-config-audit/features/features-appc-config-audit/pom.xml
@@ -24,7 +24,7 @@ limitations under the License.
<parent>
<groupId>org.onap.appc.parent</groupId>
<artifactId>feature-repo-parent</artifactId>
- <version>2.6.0-SNAPSHOT</version>
+ <version>2.6.0</version>
<relativePath />
</parent>
diff --git a/appc-config/appc-config-audit/features/onap-appc-config-audit/pom.xml b/appc-config/appc-config-audit/features/onap-appc-config-audit/pom.xml
index 8776a2825..5fc14a740 100644
--- a/appc-config/appc-config-audit/features/onap-appc-config-audit/pom.xml
+++ b/appc-config/appc-config-audit/features/onap-appc-config-audit/pom.xml
@@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>org.onap.appc.parent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.6.0-SNAPSHOT</version>
+ <version>2.6.0</version>
<relativePath />
</parent>
diff --git a/appc-config/appc-config-audit/features/pom.xml b/appc-config/appc-config-audit/features/pom.xml
index 24ba81ce7..6d2615106 100644
--- a/appc-config/appc-config-audit/features/pom.xml
+++ b/appc-config/appc-config-audit/features/pom.xml
@@ -24,7 +24,7 @@ limitations under the License.
<parent>
<groupId>org.onap.appc.parent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.6.0-SNAPSHOT</version>
+ <version>2.6.0</version>
<relativePath />
</parent>
light .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2018
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
- import_playbook: configure-ovn.yml

- hosts: ovn-central:ovn-controller
  vars:
    central_node_ip: "{{ hostvars[groups['ovn-central'][0]]['ansible_ssh_host'] }}"
  environment:
    PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin/"
  roles:
    - role: andrewrothstein.go
  tasks:
    - name: Load krd variables
      include_vars:
        file: krd-vars.yml
    - name: clone ovn-kubernetes repo
      git:
        repo: "{{ ovn_kubernetes_url }}"
        dest: "{{ ovn_kubernetes_dest }}"
        version: "{{ ovn_kubernetes_version }}"
        force: yes
      when: ovn_kubernetes_source_type == "source"
    - name: getting binaries
      block:
      - name: download ovn-kubernetes tarball
        get_url:
          url: "{{ ovn_kubernetes_url }}"
          dest: /tmp/ovn-kubernetes.tar.gz
      - name: extract ovn-kubernetes source code
        unarchive:
          src: /tmp/ovn-kubernetes.tar.gz
          dest: /tmp/
          remote_src: yes
      - name: rename extracted folder
        command: "mv /tmp/ovn-kubernetes-{{ ovn_kubernetes_version }}/ {{ ovn_kubernetes_dest }}/"
      when: ovn_kubernetes_source_type == "tarball"
    - name: make ovnkube files
      make:
        chdir: "{{ ovn_kubernetes_dest }}/go-controller"
    - name: install ovnkube files
      make:
        chdir: "{{ ovn_kubernetes_dest }}/go-controller"
        target: install
      become: yes
    - name: create OVN Kubernetes config file
      become: yes
      blockinfile:
        path: /etc/openvswitch/ovn_k8s.conf
        create: yes
        block: |
          [logging]
          loglevel=5
          logfile=/var/log/openvswitch/ovnkube.log

          [cni]
          conf-dir=/etc/cni/net.d
          plugin=ovn-k8s-cni-overlay
    - name: create ovnkube logging directory
      file:
        path: /var/log/openvswitch
        state: directory

- hosts: ovn-central
  become: yes
  vars:
    central_node_ip: "{{ hostvars[groups['ovn-central'][0]]['ansible_ssh_host'] }}"
  tasks:
    - name: create ovnkube central systemd service
      blockinfile:
        path: /etc/systemd/system/ovn-k8s-central.service
        create: yes
        block: |
          [Unit]
          Description=OVN Central Daemon

          [Service]
          ExecStart=/usr/bin/ovnkube \
                -net-controller \
                -init-master="{{ ansible_hostname }}" \
                -init-node="{{ ansible_hostname }}" \
                -nodeport \
                -k8s-kubeconfig=/etc/kubernetes/admin.conf \
                -k8s-token="test" \
                -nb-address="tcp://{{ central_node_ip }}:6641" \
                -sb-address="tcp://{{ central_node_ip }}:6642"

          [Install]
          WantedBy=multi-user.target
    - name: start ovnkube central systemd service
      service:
        name: ovn-k8s-central
        state: started
        enabled: yes

- hosts: ovn-controller
  become: yes
  vars:
    central_node_ip: "{{ hostvars[groups['ovn-central'][0]]['ansible_ssh_host'] }}"
  tasks:
    - name: create ovnkube controller systemd service
      blockinfile:
        path: /etc/systemd/system/ovn-k8s-host.service
        create: yes
        block: |
          [Unit]
          Description=OVN Controller Daemon

          [Service]
          ExecStart=/usr/bin/ovnkube \
                -init-gateways \
                -init-node="{{ ansible_hostname }}" \
                -nodeport \
                -k8s-kubeconfig=/etc/kubernetes/admin.conf \
                -k8s-token="test" \
                -nb-address="tcp://{{ central_node_ip }}:6641" \
                -sb-address="tcp://{{ central_node_ip }}:6642"

          [Install]
          WantedBy=multi-user.target
    - name: start ovnkube controller systemd service
      service:
        name: ovn-k8s-host
        state: started
        enabled: yes