airskiff: Add AppArmor

This change adds AppArmor to airskiff in order to test apparmor changes
to Airship charts.

Change-Id: I642275a9d5d6d44110298356d7be51cf711c8fe3
Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2020-01-27 19:51:57 +00:00
parent 35733a4151
commit 54c49eab55
3 changed files with 44 additions and 0 deletions

View File

@ -103,6 +103,19 @@ Alternatively, this step can be performed by running the script directly:
./tools/deployment/airskiff/developer/010-deploy-k8s.sh
Setup AppArmor
~~~~~~~~~~~~~~
.. literalinclude:: ../../tools/deployment/airskiff/developer/015-setup-apparmor.sh
:language: shell
:lines: 1,18-
Alternatively, this step can be performed by running the script directly:
.. code-block:: shell
./tools/deployment/airskiff/developer/015-setup-apparmor.sh
Restart your shell session
~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -0,0 +1,25 @@
#!/bin/bash
# Copyright 2020, AT&T Intellectual Property
#
# Licensed 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.
set -xe
CURRENT_DIR="$(pwd)"
: "${OSH_INFRA_PATH:="../openstack-helm-infra"}"
cd "${OSH_INFRA_PATH}"
bash -c "./tools/deployment/common/001-setup-apparmor-profiles.sh
cd "${CURRENT_DIR}"

View File

@ -36,6 +36,12 @@
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Setup AppArmor
shell: |
./tools/deployment/airskiff/developer/015-setup-apparmor.sh
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Setup OpenStack Client
shell: |
./tools/deployment/airskiff/developer/020-setup-client.sh