Can puppet add repositories to nodes?

1,924 views
Skip to first unread message

Sandra Schlichting

unread,
Sep 17, 2012, 9:51:22 AM9/17/12
to puppet...@googlegroups.com
Hi all,

I would like to add two repositories to Ubuntu nodes

apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
deb http://dl.google.com/linux/chrome/deb/ stable main

and then import the key

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192

Can this be done in a clever way with puppet?

Hugs,
Sandra



Joe Topjian

unread,
Sep 17, 2012, 9:55:15 AM9/17/12
to puppet...@googlegroups.com
Hi Sandra,

The Puppet Apt module should be of some use: 


Thanks,
Joe



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/lkxkivCib8YJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Joe Topjian
Systems Administrator
Cybera Inc.


Big data is coming to Canada. Join the welcome wagon.
Cyber Summit 2012
October 1-3, Banff

Cybera is a not-for-profit organization that works to spur and support innovation, for the economic benefit of Alberta, through the use of cyberinfrastructure.

Matt Zagrabelny

unread,
Sep 17, 2012, 10:12:30 AM9/17/12
to puppet...@googlegroups.com
On Mon, Sep 17, 2012 at 8:55 AM, Joe Topjian <joe.t...@cybera.ca> wrote:
> Hi Sandra,
>
> The Puppet Apt module should be of some use:
>
> http://puppetlabs.com/blog/module-of-the-week-puppetlabs-apt-pull-apt-strings-with-puppet/

What I've done is use use file resources and the following apt locations:

/etc/apt/sources.list.d
/etc/apt/trusted.gpg.d

and and exec resource to "apt-get update" when subscribed to the above files.

Cheers,

-mz

Sandra Schlichting

unread,
Sep 17, 2012, 11:03:44 AM9/17/12
to puppet...@googlegroups.com
Hi Joe and Matt,

Thanks a lot for both solutions!!

I am actually going to use both as for normal hosts Joe's solution is good, and Matt's for LTSP clients =)

Reply all
Reply to author
Forward
0 new messages