Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PE-38404) Install script for AL2 #22

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

amitkarsale
Copy link
Contributor

@amitkarsale amitkarsale commented Jun 11, 2024

AL2 uses yum commands by default compared to dnf which is replaced in AL2023.

@amitkarsale amitkarsale requested a review from a team as a code owner June 11, 2024 16:20
@amitkarsale amitkarsale marked this pull request as draft June 11, 2024 16:21
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
@amitkarsale amitkarsale marked this pull request as ready for review June 11, 2024 17:54
@cthorn42
Copy link
Collaborator

Tested this on a amazon-7-arm64 VM to install the latest 7.31.0 agent and it worked:

curl -sSL https://raw.githubusercontent.com/amitkarsale/install-puppet/PE-38404/install.sh | bash -s
17:30:04 +0000 INFO: Version parameter not defined and no agent detected. Assuming latest.
17:30:04 +0000 INFO: Downloading Puppet latest for Amzn...
17:30:04 +0000 INFO: Amazon platform! Lets get you an RPM...
17:30:04 +0000 INFO: Downloading http://yum.puppet.com/puppet-release-amazon-2.noarch.rpm
17:30:04 +0000 INFO:   to file /tmp/install.sh.2244.6770/puppet-release-amazon-2.noarch.rpm
17:30:04 +0000 INFO: Trying curl...
17:30:04 +0000 INFO: installing puppetlabs yum repo with rpm...
Preparing...                          ################################# [100%]
Updating / installing...
   1:puppet-release-1.0.0-32.amazon2  ################################# [100%]
Loaded plugins: priorities, update-motd, upgrade-helper
puppet                                                                                                                                                               | 2.5 kB  00:00:00
puppet/aarch64/primary_db                                                                                                                                            | 5.9 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package puppet-agent.aarch64 0:7.31.0-1.amazon2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================
 Package                                        Arch                                      Version                                            Repository                                Size
============================================================================================================================================================================================
Installing:
 puppet-agent                                   aarch64                                   7.31.0-1.amazon2                                   puppet                                    22 M

Transaction Summary
============================================================================================================================================================================================
Install  1 Package

Total download size: 22 M
Installed size: 107 M
Downloading packages:
Public key for puppet-agent-7.31.0-1.amazon2.aarch64.rpm is not installed       65% [============================================-                        ]  0.0 B/s |  14 MB  --:--:-- ETA
puppet-agent-7.31.0-1.amazon2.aarch64.rpm                                                                                                                            |  22 MB  00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-2025-04-06-puppet-release
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : puppet-agent-7.31.0-1.amazon2.aarch64                                                                                                                                    1/1
  Verifying  : puppet-agent-7.31.0-1.amazon2.aarch64                                                                                                                                    1/1

Installed:
  puppet-agent.aarch64 0:7.31.0-1.amazon2

Complete!
Loaded plugins: priorities, update-motd, upgrade-helper
No packages marked for update

install.sh Outdated Show resolved Hide resolved
@amitkarsale
Copy link
Contributor Author

This should be good to merge now, I guess. Resolved above comments

Copy link
Collaborator

@cthorn42 cthorn42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, re-tested this install.sh with a few different EL platforms including amzn2 and works.

@cthorn42 cthorn42 merged commit 5930e9e into puppetlabs:main Jun 12, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants