Skip to content

Commit

Permalink
Merge branch 'bugfix/GH-2704-pin-salt-version-in-bootstrap' into tmp/…
Browse files Browse the repository at this point in the history
…octopus/w/2.5/bugfix/GH-2704-pin-salt-version-in-bootstrap
  • Loading branch information
bert-e committed Aug 11, 2020
2 parents 49d880c + e869013 commit e1ecc42
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions buildchain/buildchain/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@
task_name='bootstrap.sh',
source=constants.ROOT/'scripts'/'bootstrap.sh.in',
destination=constants.ISO_ROOT/'bootstrap.sh',
context={'VERSION': versions.VERSION},
context={
'VERSION': versions.VERSION,
'SALT_VERSION': versions.SALT_VERSION
},
file_dep=[versions.VERSION_FILE],
task_dep=['_iso_mkdir_root'],
),
Expand All @@ -101,7 +104,10 @@
task_name='restore.sh',
source=constants.ROOT/'scripts'/'restore.sh.in',
destination=constants.ISO_ROOT/'restore.sh',
context={'VERSION': versions.VERSION},
context={
'VERSION': versions.VERSION,
'SALT_VERSION': versions.SALT_VERSION
},
file_dep=[versions.VERSION_FILE],
task_dep=['_iso_mkdir_root'],
),
Expand Down
3 changes: 3 additions & 0 deletions salt/metalk8s/repo/redhat.sls
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Configure {{ repo_name }} repository:
{%- endif %}
- repo_gpg_check: {{ repo_config.repo_gpg_check }}
- enabled: {{ repo_config.enabled }}
# Set priority to 1, even if the `yum-plugin-priorities` is not installed,
# so that our repos has priority over others
- priority: 1
# URL to the proxy server for this repository.
# Set to '_none_' to disable the global proxy setting
# for this repository.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BASE_DIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SALT_CALL=${SALT_CALL:-salt-call}

declare -a PACKAGES=(
salt-minion
salt-minion-@@SALT_VERSION
genisoimage
)

Expand Down
1 change: 1 addition & 0 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ configure_yum_local_repository() {
name=$repo_name
baseurl=file://$repo_path
enabled=1
priority=1
gpgcheck=$gpgcheck
${gpg_keys:+gpgkey=${gpg_keys%?}}
EOF
Expand Down
2 changes: 1 addition & 1 deletion scripts/restore.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ BASE_DIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SALT_CALL=${SALT_CALL:-salt-call}

declare -a PACKAGES=(
salt-minion
salt-minion-@@SALT_VERSION
genisoimage
)

Expand Down

0 comments on commit e1ecc42

Please sign in to comment.