Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sign rundeck-*.noarch.rpm to ease amazon linux cloud-config automated installation

#420

Amazon Linux CloudInit packages installation based on "repo_additions + packages" blocks only supports signed RPMs.

The reason is that cloudinit's dist_repo_yum.py does not implement yet "gpgcheck=0".

The workaround is to install the "http://rundeck.org/latest.rpm" via the [runcmd] block but it is less elegant.

Sample of FAILING "repo_additions+packages" based Amazon Linux CloudInit script because Rundeck RPM is not signed:

#cloud-config


repo_additions: - source: "rundeck-release" filename: rundeck-release.repo name: "Rundeck - Release" baseurl: http://rundeck.org/repo/rundeck/1/release key: http://rundeck.org/repo/RPM-GPG-KEY-RunDeck.org enabled: 1


packages: - rundeck


runcmd: - [service, rundeckd, start ] - [usermod, -a, -G, rundeck, ec2-user]

Sample of SUCCESSFUL Amazon Linux CloudInit script using the [runcmd] block:

#cloud-config


runcmd: - [rpm, -U, -v, -h, "http://rundeck.org/latest.rpm"] - [yum, -y, install, rundeck] - [sh, -xc, "/etc/init.d/rundeckd restart"]

Context: we use CloudInit automated deployment of rundeck+jenkins+tomcat for training purpose: 1 jenkins + 1 rundeck + 2 tomcat per attendee.

Reported by Cyrille Le Clerc · August 28th, 2011 @ 04:37 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Greg Schueler
    Greg Schueler
    • Assigned user set to Deleted User

    August 30th, 2011 @ 10:15 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.