Skip to content

Commit

Permalink
few tiny improvements to check test running
Browse files Browse the repository at this point in the history
  • Loading branch information
kiemlicz committed Dec 29, 2023
1 parent 083acd3 commit d14540d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 111 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- 6379:6379
strategy:
matrix:
image: [ "debian:bullseye", "ubuntu:focal" ]
image: [ "debian:bookworm", "ubuntu:focal" ]
env:
DOCKER_IMAGE: ${{ matrix.image }}
CONTEXT: syntax-test
Expand All @@ -30,7 +30,7 @@ jobs:
- salt-render-test
strategy:
matrix:
image: [ "debian:bullseye", "ubuntu:focal" ]
image: [ "debian:bookworm", "ubuntu:focal" ]
context: [ "base", "server" ]
env:
DOCKER_IMAGE: ${{ matrix.image }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG tag="bullseye-slim"
ARG tag="bookworm-slim"
FROM debian:$tag AS salt-base
# "" == latest
ARG salt_ver=""
Expand Down
102 changes: 0 additions & 102 deletions deployment/docker/debian-buster/Dockerfile

This file was deleted.

5 changes: 4 additions & 1 deletion installer/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def files_to_transfer() -> List[Tuple[str, str]]:
# todo handle extensions/file_ext todo some files (configs) are provided as default args some are not
state_tree_mapping = list(dir_mappings(MAIN_FILES_TO_TRANSFER, SALT_TREE_ROOT)) # dir
salt_conf_mapping = list(file_mappings(configs, SALT_MINION_CONFIG)) # file *.conf
salt_keys_mapping = list(dir_content_mappings([secrets], SALT_KEY_LOCATION))
if secrets:
salt_keys_mapping = list(dir_content_mappings([secrets], SALT_KEY_LOCATION))
else:
salt_keys_mapping = []

all_files = state_tree_mapping + salt_conf_mapping + salt_keys_mapping + extra
log.debug(f"Files to transfer: {all_files}")
Expand Down
12 changes: 7 additions & 5 deletions installer/utils/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@


def requisite_commands(required_pkgs: List[str], required_pip: List[str]) -> List[str]:
# latest pip typically is required, cannot upgrade it in one run as some dependencies may require latest pip
return [
f"apt update -y && apt install -y {' '.join(required_pkgs)}",
f"salt-pip install {' '.join(required_pip)}"
]
cmds = [f"apt update -y && apt install -y {' '.join(required_pkgs)}"]
if required_pip:
# latest pip typically is required, cannot upgrade it in one run as some dependencies may require latest pip
cmds.extend([
f"salt-pip install {' '.join(required_pip)}"
])
return cmds

def salt_download_and_install_commands(
start_daemon: bool = True,
Expand Down

0 comments on commit d14540d

Please sign in to comment.