-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from kopecmartin/rally
Init openstack-rally image
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tcib_envs: | ||
USE_EXTERNAL_FILES: true | ||
tcib_actions: | ||
- run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }} | ||
- run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf | ||
- run: cp /usr/share/tcib/container-images/tcib/base/os/rally/rally_sudoers /etc/sudoers.d/rally_sudoers | ||
- run: chmod 440 /etc/sudoers.d/rally_sudoers | ||
- run: mkdir -p /var/lib/rally/external_files | ||
- run: mkdir -p /var/lib/kolla/config_files | ||
- run: chown -R rally.rally /var/lib/rally | ||
- run: touch /var/lib/kolla/config_files/config.json | ||
- run: cp /usr/share/tcib/container-images/tcib/base/os/rally/run_rally.sh /var/lib/rally/run_rally.sh | ||
- run: chmod +x /var/lib/rally/run_rally.sh | ||
|
||
tcib_entrypoint: /var/lib/rally/run_rally.sh | ||
|
||
tcib_packages: | ||
common: | ||
- openstack-rally | ||
|
||
tcib_user: rally |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rally ALL=(ALL) NOPASSWD: ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# run_rally.sh | ||
# ============== | ||
# | ||
# This script is executed inside the rally containers defined in the tcib | ||
# repository. The main purpose of this script is executing the rally command | ||
# with correct arguments. The execution of the script can be influenced by | ||
# setting values for environment variables which match the RALLY_* regex. | ||
# | ||
# | ||
# RALLY_* environment variables | ||
# ----------------------------- | ||
|
||
set -x | ||
|
||
HOMEDIR=/var/lib/rally | ||
RALLY_PATH=$HOMEDIR/ | ||
RALLY_DIR=$HOMEDIR/openshift | ||
|
||
|
||
export OS_CLOUD=default | ||
|
||
if [ -e ${RALLY_PATH}clouds.yaml ]; then | ||
mkdir -p $HOME/.config/openstack | ||
cp ${RALLY_PATH}clouds.yaml $HOME/.config/openstack/clouds.yaml | ||
fi | ||
|
||
# at this point, we have everything ready in the container for users to make it | ||
# a sleepy container and jump to it so that they can run their rally commands | ||
|
||
# rally deployment check |