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:
parent
35733a4151
commit
406aff9c5c
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -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}"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue