Thank you Silviu,

Very simple and straight forward. I followed a previous thread that
discussed the sources.list.d directory, but didn't quite connect the
dots. With your advise, I looked at a few of my systems and found that
Google parks the repo for their Chrome browser there. That example
should help me debug any problems.

As far as the yumrepo, I'm still smarting from Red Hat going all
enterprisie ... I jumped 5 machines to Gentoo, and after 3 years of
daily compiles, I twitch a bit when the Ubuntu Update Manager pops
up ;-)

Thanks again!

On Mon, 2009-12-07 at 20:00 +0200, Silviu Paragina wrote:
> Use the /etc/apt/sources.list.d/ for adding repositories. Note the files 
> in there must have ".list" extension to be considered.
> 
> For signing the easy way out is creating a define similar to this one:
> I'd advise against this one because I made it when I started using puppet.
> 
> 
> In a class:
>          $folder = "/etc/apt/rkeys/"
>          file { $folder :
>                  owner   => root,
>                  group   => root,
>                  mode    => 700,
>                  ensure  => directory
>          }
> 
> In the define
> define apt_sign_key($sign_key)
> {
> 
>          $file_dest = "${folder}${sign_key}"
>          file { $file_dest :
>                  owner   => root,
>                  group   => root,
>                  mode    => 600,
>                  source  => "puppet:///somepath/${sign_key}",
>                  require => File[$folder]
>          }
> 
>          exec { "apt-key add ${file_dest}":
>                  refreshonly     => true,
>                  require         => File[$file_dest],
>                  subscribe       => File[$file_dest]
>          }
> }
> 
> Another way would be doing something like
> 
> file{ "${repokey}": ......}
> exec { "apt-key add ${repokey}":
>      require    => File[$repokey],
>      unless    => "apt-key list | grep $repokeyid"
> }
> 
> And of course the best way would be to do another provider like yumrepo 
> in ruby :-)
> 
> 
> Silviu
> 
> On 07.12.2009 17:54, Ron wrote:
> > I'm new to Puppet. I've read the docs, followed the tutorials, and have
> > the software up and running on 4 Ubuntu systems. I've written a few
> > simple modules but could use some help.
> >
> > I use several PPAs (Personal Package Archives/Ubuntu). Can anyone
> > suggest how to add a PPA repository, along with the signing key, into
> > the base Ubuntu repository? (My goal is to manage Ubuntu upgrades on
> > heavily customized systems, should anyone have pointers or code that
> > might help.)
> >
> > (I intend to practice by installing VLC from the PPA -
> > https://launchpad.net/~c-korn/+archive/vlc )
> >
> > Thank you.
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups 
> > "Puppet Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group at 
> > http://groups.google.com/group/puppet-users?hl=en.
> >
> >
> >    
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


Reply via email to