Skip to content
Draft

Test #826

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Copyright 2025 Delphix
#
# 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.
#

---
- apt:

Check failure on line 18 in live-build/misc/ansible-roles/appliance-build.hyperscale-common/tasks/main.yml

View workflow job for this annotation

GitHub Actions / check-ansible

name[missing]

All tasks should be named.

Check failure on line 18 in live-build/misc/ansible-roles/appliance-build.hyperscale-common/tasks/main.yml

View workflow job for this annotation

GitHub Actions / check-ansible

fqcn[action-core]

Use FQCN for builtin module actions (apt).
name: delphix-hyperscale
state: present
31 changes: 31 additions & 0 deletions live-build/variants/internal-hyperscale/ansible/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright 2025 Delphix
#
# 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.
#

---
- hosts: all

Check failure on line 18 in live-build/variants/internal-hyperscale/ansible/playbook.yml

View workflow job for this annotation

GitHub Actions / check-ansible

name[play]

All plays should be named.
gather_facts: no

Check failure on line 19 in live-build/variants/internal-hyperscale/ansible/playbook.yml

View workflow job for this annotation

GitHub Actions / check-ansible

yaml[truthy]

Truthy value should be one of [false, true]
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
- appliance-build.minimal-common
- appliance-build.minimal-internal
- appliance-build.minimal-development
- appliance-build.hyperscale-common
- appliance-build.masking-common
- appliance-build.masking-development
- appliance-build.virtualization-common
- appliance-build.virtualization-development
- appliance-build.qa-internal
1 change: 1 addition & 0 deletions live-build/variants/internal-hyperscale/ansible/roles
2 changes: 2 additions & 0 deletions scripts/build-ancillary-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ download_combined_packages_artifacts "$AWS_S3_URI_COMBINED_PACKAGES" \

download_dct_artifacts "$AWS_S3_URI_DCT_PACKAGES" "$WORK_DIRECTORY/artifacts"

download_hyperscale_artifacts "$AWS_S3_URI_HYPERSCALE_COMPLIANCE_PACKAGES" "$WORK_DIRECTORY/artifacts"

#
# Create a delphix-build-info package from the build metadata of each
# package and of appliance-build itself and store it along with the other
Expand Down
25 changes: 25 additions & 0 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,31 @@ function download_dct_artifacts() {
popd &>/dev/null || exit 1
}

function download_hyperscale_artifacts() {
local hyperscale_artifacts_uri="$1"
local target_dir="$2"

if [[ -z "$hyperscale_artifacts_uri" ]]; then
HYPERSCALE_S3_DIR="s3://snapshot-de-images"
HYPERSCALE_LATEST_PREFIX="builds/jenkins-masking/github/delphix/hyperscale-masking/build/appliance/develop/latest"

aws s3 cp "$HYPERSCALE_S3_DIR/$HYPERSCALE_LATEST_PREFIX" .

HYPERSCALE_PACKAGE_PREFIX=$(cat latest)
rm -f latest

hyperscale_artifacts_uri="$HYPERSCALE_S3_DIR/$HYPERSCALE_PACKAGE_PREFIX"
fi

mkdir "$target_dir/hyperscale"
pushd "$target_dir/hyperscale" &>/dev/null || exit 1

aws s3 sync "$hyperscale_artifacts_uri" .
sha256sum -c SHA256SUMS

popd &>/dev/null || exit 1
}

#
# Find all .deb and .ddeb packages in source directory tree and move them
# to target directory.
Expand Down
Loading