Skip to content

Commit 80d8b18

Browse files
authored
Merge pull request #89 from daos-stack/develop
DAOSGCP-180 Merge develop to main for v0.4.1 Signed-off-by: Mark Olson <115657904+mark-olson@users.noreply.github.com>
2 parents c52ab4e + 053ad24 commit 80d8b18

6 files changed

Lines changed: 32 additions & 16 deletions

File tree

images/ansible_playbooks/tune.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
- { limit_type: "-", limit_item: "rtprio", value: unlimited }
5858

5959
- name: Disable SELinux service
60-
vars:
61-
ansible_python_interpreter: /usr/bin/python3
6260
ansible.posix.selinux:
6361
state: disabled
6462
register: disablingSE

images/daos.pkr.hcl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,27 @@ build {
135135
execute_command = "echo 'packer' | sudo -S env {{ .Vars }} {{ .Path }}"
136136
inline = [
137137
"dnf -y install epel-release",
138-
"dnf -y install ansible"
138+
"dnf -y install python3.11 python3.11-pip ansible-core",
139+
"alternatives --set python3 /usr/bin/python3.11"
140+
]
141+
}
142+
143+
provisioner "shell" {
144+
inline = [
145+
"ansible-galaxy collection install ansible.posix",
146+
"ansible-galaxy collection install community.general"
139147
]
140148
}
141149

142150
provisioner "ansible-local" {
143-
playbook_file = "./ansible_playbooks/tune.yml"
151+
playbook_file = "./ansible_playbooks/tune.yml"
152+
extra_arguments = ["--user", "root"]
144153
}
145154

146155
provisioner "ansible-local" {
147156
playbook_file = "./ansible_playbooks/daos.yml"
148157
extra_arguments = [
158+
"--user", "root",
149159
"--extra-vars",
150160
"\"daos_version=${var.daos_version} daos_repo_base_url=${var.daos_repo_base_url} daos_packages_repo_file=${var.daos_packages_repo_file} daos_install_type=${var.daos_install_type}\""
151161
]

security.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Security Policy
2+
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.
3+
4+
## Reporting a Vulnerability
5+
Please report any security vulnerabilities in this project [utilizing the guidelines here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html).
6+

terraform/examples/io500/bin/get_io500_result_data.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ set -eo pipefail
3131
trap 'echo "Hit an unexpected and unchecked error. Exiting."' ERR
3232

3333
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
34-
LOCAL_RESULTS_DIR=$(realpath "${SCRIPT_DIR}/../results")
35-
TMP_DIR=$(realpath "${SCRIPT_DIR}/../.tmp")
36-
ACTIVE_CONFIG="${SCRIPT_DIR}/../config/active_config.sh"
34+
TF_DIR="$(realpath "${SCRIPT_DIR}/../")"
35+
LOCAL_RESULTS_DIR="${TF_DIR}/results"
36+
TMP_DIR="${TF_DIR}/.tmp"
37+
ACTIVE_CONFIG="${TF_DIR}/config/active_config.sh"
3738

3839
# shellcheck disable=SC2034
3940
source "${SCRIPT_DIR}/_log.sh"
@@ -52,7 +53,7 @@ load_active_config() {
5253
}
5354

5455
get_first_client_ip() {
55-
FIRST_CLIENT_IP=$(grep ssh "${SCRIPT_DIR}/login.sh" | awk '{print $4}')
56+
FIRST_CLIENT_IP="$(grep ssh "${SCRIPT_DIR}/login.sh" | awk '{print $4}')"
5657
log.debug "FIRST_CLIENT_IP=${FIRST_CLIENT_IP}"
5758
}
5859

terraform/examples/io500/bin/start.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ trap 'echo "Hit an unexpected and unchecked error. Exiting."' ERR
2828

2929
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
3030
SCRIPT_FILENAME=$(basename "${BASH_SOURCE[0]}")
31-
TMP_DIR=$(realpath "${SCRIPT_DIR}/../.tmp")
31+
TF_DIR="$(realpath "${SCRIPT_DIR}/../")"
32+
IMAGES_DIR="${TF_DIR}/images"
33+
CLIENT_FILES_DIR="${TF_DIR}/client_files"
34+
TMP_DIR="${TF_DIR}/.tmp"
3235
SSH_CONFIG_FILE="${TMP_DIR}/ssh_config"
33-
TF_DIR=$(realpath "${SCRIPT_DIR}/../")
34-
IMAGES_DIR=$(realpath "${SCRIPT_DIR}/../images")
35-
CLIENT_FILES_DIR=$(realpath "${SCRIPT_DIR}/../client_files")
36+
CONFIG_DIR="${TF_DIR}/config"
3637

37-
CONFIG_DIR=$(realpath "${SCRIPT_DIR}/../config")
3838
DEFAULT_CONFIG_FILE="GCP-1C-1S8d-rf0.sh"
3939
: "${CONFIG_FILE:="${DEFAULT_CONFIG_FILE}"}"
4040

terraform/examples/io500/bin/stop.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ set -eo pipefail
1717
trap 'echo "Hit an unexpected and unchecked error. Exiting."' ERR
1818

1919
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
20-
TMP_DIR=$(realpath "${SCRIPT_DIR}/../.tmp")
2120
TF_DIR=$(realpath "${SCRIPT_DIR}/../")
22-
CLIENT_FILES_DIR=$(realpath "${SCRIPT_DIR}/../client_files")
23-
CONFIG_DIR=$(realpath "${SCRIPT_DIR}/../config")
21+
TMP_DIR="${TF_DIR}/.tmp"
22+
23+
CLIENT_FILES_DIR="${TF_DIR}/client_files"
24+
CONFIG_DIR="${TF_DIR}/config"
2425
ACTIVE_CONFIG_SYMLINK="${CONFIG_DIR}/active_config.sh"
2526

2627
# shellcheck source=_log.sh

0 commit comments

Comments
 (0)