Skip to content

Commit

Permalink
Merge pull request #659 from skyamgarp/PA-5309
Browse files Browse the repository at this point in the history
(PA-5309) Add macOS 13 (ARM) to the puppet_agent module task
  • Loading branch information
joshcooper authored Aug 14, 2023
2 parents 7a4eb58 + 442e295 commit ecfdc2b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
19 changes: 16 additions & 3 deletions task_spec/spec/acceptance/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def log_output_errors(result)
'7.7.0'
when %r{osx-12}, %r{ubuntu-22.04}
'7.18.0'
when %r{osx-13}
'latest'
else
'7.18.0'
end
Expand All @@ -65,9 +67,15 @@ def log_output_errors(result)
# puppet_7_collection = 'puppet7-nightly'
# puppet_8_collection = 'puppet8-nightly'
# else
puppet_7_collection = 'puppet7'
puppet_8_collection = 'puppet8'
# end
case target_platform
when %r{osx-13}
puppet_7_collection = 'puppet7-nightly'
puppet_8_collection = 'puppet8-nightly'
else
puppet_7_collection = 'puppet7'
puppet_8_collection = 'puppet8'
end

# We can only test puppet 7 -> 7 upgrades if multiple Puppet releases
# have supported a given platform. Once a platform has been supported
Expand All @@ -78,7 +86,12 @@ def log_output_errors(result)
# else
# true
# end
multiple_puppet7_versions = true
multiple_puppet7_versions = case target_platform
when %r{osx-13}
false
else
true
end

# extra request is needed on windows hosts
# this will fail with "execution expired"
Expand Down
1 change: 1 addition & 0 deletions tasks/install_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ if [ -f "$PT__installdir/facts/tasks/bash.sh" ]; then
case $major_version in
"11") platform_version="11";;
"12") platform_version="12";;
"13") platform_version="13";;
*) echo "No builds for platform: $major_version"
exit 1
;;
Expand Down

0 comments on commit ecfdc2b

Please sign in to comment.