Skip to content

Commit 4b41c03

Browse files
authored
Merge branch 'dell:pub/q1_dev' into pub/q1_dev
2 parents c387456 + 6265308 commit 4b41c03

File tree

13 files changed

+231
-2
lines changed

13 files changed

+231
-2
lines changed

omnia.sh

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ GREEN='\033[0;32m'
3030
BLUE='\033[0;34m'
3131
NC='\033[0m' # No Color
3232
YELLOW='\033[0;33m'
33-
omnia_release=2.0.0.0
33+
omnia_release=2.1.0.0
3434

3535
core_container_status=false
3636
omnia_path=""
@@ -925,9 +925,10 @@ start_container_session() {
925925
}
926926

927927
show_help() {
928-
echo "Usage: $0 [--install | --uninstall | --help]"
928+
echo "Usage: $0 [--install | --uninstall | --version | --help]"
929929
echo " -i, --install Install and start the Omnia core container"
930930
echo " -u, --uninstall Uninstall the Omnia core container and clean up configuration"
931+
echo " -v, --version Display Omnia version information"
931932
echo " -h, --help More information about usage"
932933
}
933934

@@ -1110,6 +1111,34 @@ install_omnia_core() {
11101111
fi
11111112
}
11121113

1114+
# Check if Omnia core container is running
1115+
check_container_status() {
1116+
# Check if the Omnia core container is running
1117+
if ! podman ps --format '{{.Names}}' | grep -qw "omnia_core"; then
1118+
echo -e "${RED}ERROR: Omnia core container is not running.${NC}"
1119+
exit 1
1120+
fi
1121+
}
1122+
1123+
# Function to display version information
1124+
display_version() {
1125+
# Check if metadata file exists and Omnia core container is running
1126+
check_container_status
1127+
1128+
# Fetch the metadata from the oim_metadata.yml file in the container
1129+
echo -e "${GREEN} Fetching metadata from omnia_core container...${NC}"
1130+
core_config=$(podman exec omnia_core /bin/bash -c 'cat /opt/omnia/.data/oim_metadata.yml')
1131+
1132+
# Extract Omnia version from metadata file
1133+
omnia_version=$(echo "$core_config" | grep "omnia_version:" | cut -d':' -f2 | tr -d ' \t\n\r')
1134+
1135+
# Display version information
1136+
echo "Omnia version: $omnia_version"
1137+
1138+
# Return exit code 0 on success
1139+
exit 0
1140+
}
1141+
11131142
# Main function to check if omnia_core container is already running.
11141143
# If yes, ask the user if they want to enter the container or reinstall.
11151144
# If no, set it up.
@@ -1121,6 +1150,9 @@ main() {
11211150
--uninstall|-u)
11221151
cleanup_omnia_core
11231152
;;
1153+
--version|-v)
1154+
display_version
1155+
;;
11241156
--help|-h|"")
11251157
show_help
11261158
;;

upgrade/ansible.cfg

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[defaults]
2+
log_path = /opt/omnia/log/core/playbooks/upgrade.log
3+
remote_tmp = /opt/omnia/tmp/.ansible/tmp/
4+
host_key_checking = false
5+
forks = 5
6+
timeout = 180
7+
executable = /bin/bash
8+
library = ../common/library/modules
9+
module_utils = ../common/library/module_utils
10+
11+
[persistent_connection]
12+
command_timeout = 180
13+
connect_timeout = 180
14+
15+
[ssh_connection]
16+
retries = 3
17+
ssh_args = -o ControlMaster=auto -o ControlPersist=60 -o ConnectTimeout=60

upgrade/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
15+
16+
- name: Include import input parameters
17+
ansible.builtin.include_role:
18+
name: import_input_parameters
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
15+
16+
- name: Include import input parameters
17+
ansible.builtin.include_role:
18+
name: import_input_parameters
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---

0 commit comments

Comments
 (0)