Skip to content
4 changes: 2 additions & 2 deletions lte/gateway/deploy/magma_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# - role: stretch_snapshot
- role: apt_cache
vars:
distribution: "stretch"
distribution: "focal"
oai_build: "{{ c_build }}/core/oai"
repo: "dev"
repo: "dev-focal"
- role: pkgrepo
- role: python_dev
- role: dev_common
Expand Down
1 change: 0 additions & 1 deletion lte/gateway/deploy/magma_trfserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@
full_provision: true

roles:
- role: stretch_snapshot
- role: trfserver
38 changes: 33 additions & 5 deletions lte/gateway/deploy/roles/dev_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,21 @@
retries: 5
when: preburn

- name: Install Debian Magma gateway dev dependencies
retries: 5
when: preburn and ansible_distribution == "Debian"
apt:
state: present
update_cache: no
pkg:
- libprotobuf10
- libprotobuf-lite10
- libprotoc10
- libssl1.0-dev

- name: Install Ubuntu Magma gateway dev dependencies
retries: 5
when: preburn
when: preburn and ansible_distribution == "Ubuntu"
apt:
state: present
update_cache: no
Expand Down Expand Up @@ -312,20 +324,20 @@
get_url:
url: "https://github.com/getsentry/sentry-native/releases/download/{{ sentry_native_version }}/sentry-native.zip"
dest: "{{ tmp_directory }}/sentry-native.zip"
when: preburn
when: preburn and ansible_distribution == "Ubuntu"

- name: Create a directory for Sentry Native
file:
path: "{{ tmp_directory }}/sentry-native"
state: directory
when: preburn
when: preburn and ansible_distribution == "Ubuntu"

- name: Unpack Sentry Native SDK
unarchive:
src: "{{ tmp_directory }}/sentry-native.zip"
dest: "{{ tmp_directory }}/sentry-native"
remote_src: yes
when: preburn
when: preburn and ansible_distribution == "Ubuntu"

- name: Build and Install Sentry Native SDK
shell: |
Expand All @@ -334,7 +346,7 @@
cmake --build build --parallel && \
cmake --install build --prefix install --config RelWithDebInfo && \
cd build && make install
when: preburn
when: preburn and ansible_distribution == "Ubuntu"

###############################################
# Download and build swagger-codegen
Expand Down Expand Up @@ -414,17 +426,33 @@
state: directory
mode: 0777

- name: Create the file
command: touch /etc/multipath.conf
become: yes
ignore_errors: true

- name: Patch multipath conf
when: preburn
patch:
src: patches/multipath-conf.patch
dest: /etc/multipath.conf
become: yes
ignore_errors: true

- name: Copy Interface file.
copy:
src: magma_interfaces
dest: /etc/network/interfaces
when: preburn
ignore_errors: true


- name: Copy Interface file.
copy:
src: magma_interfaces
dest: /etc/network/interfaces
when: preburn
become: yes

- name: Remove netplan and enable networking.
shell: |
Expand Down
4 changes: 3 additions & 1 deletion lte/gateway/deploy/roles/trfserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- name: Check Linux distribution version
fail: msg="Unsupported host OS {{ ansible_distribution }} {{ ansible_distribution_release }}. Must be Debian 9 (Stretch)"
when: ansible_distribution != 'Debian' or ansible_distribution_release != 'stretch'
ignore_errors: true

- name: Create symlink for trfserver scripts
file:
Expand Down Expand Up @@ -72,9 +73,10 @@
- name: Install the latest iperf3
apt:
deb: "https://iperf.fr/download/ubuntu/{{ item }}"
state: present
with_items:
- iperf3_3.1.3-1_amd64.deb
- libiperf0_3.1.3-1_amd64.deb
ignore_errors: true
when: preburn

- name: Add convenience function for starting the trfgen test servers
Expand Down
3 changes: 3 additions & 0 deletions orc8r/tools/ansible/roles/pkgrepo/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# limitations under the License.
################################################################################

- name: Add apt-transport-https
apt: pkg=gpg state=present update_cache=yes

- name: Add GPG key for magma repository
apt_key:
url: https://artifactory.magmacore.org:443/artifactory/api/gpg/key/public
Expand Down
Loading