Matt Southerden <southe...@googlemail.com> writes:No. The next release will be easier, but for now you need to be very, very
> I'm new to puppet, and I have a couple of apt related problems I'm
> struggling to find solutions to.
>
> Firstly, we'd like to run an apt-get upgrade the very first time a
> node goes under puppet's control. Is there a good way to do this?
careful to get ordering right. We have, roughly, this structure:
class apt::config {
# install sources.list, and other *files* required for apt
}
class apt {
exec { "/usr/bin/aptitude update": require => Class["apt::config"]
}
Package { require => Class["apt"] }
That helps ensure that the aptitude update runs before any package install in
puppet, but is ugly. The next release (as I understand the roadmap) will
improve this by having "stages" where you can arrange it with less trouble.
[...]
[...]
Drop the 'refreshonly' in the apt update 'exec', and it will work. :)
> But reading the docs (and trying this out manually) the require parameter
> doesn't trigger the exec (so I have no idea how all these people are getting
> it to work *shrug*, or maybe they just think it's working...)
Daniel
--
✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
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.
I'm still very new to puppet, and I've been away for the last few days,
so please forgive me if my answer is old. But if you want to ensure that
your repos are upto date, do what you would do on a normal box, and that
is run apt-get update fairly often - once a day at 20 past midnight
maybe. For that, maybe setup a cron job via puppet?
Then, all you have to do, is wait 24 hours after a system has come under
your control, and you should have an up to date system.
I know it's a band aid idea, but it's a start :) Anyone want to expand
on this?
The Puppet Apprentice :- http://puppetnewbie.blogspot.com/
Follow me on twitter :- http://twitter.com/mritguru
Puppet #tag on twitter :- #puppet
IRC :- itguru ON irc.freenode.org (feel free to say
hi!)
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
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.
"Gabriel - IP Guys" <Gab...@impactteachers.com> writes:FWIW, we used to rely on this, and it got painfully old when our requirements
> I'm still very new to puppet, and I've been away for the last few days, so
> please forgive me if my answer is old. But if you want to ensure that your
> repos are upto date, do what you would do on a normal box, and that is run
> apt-get update fairly often - once a day at 20 past midnight maybe. For
> that, maybe setup a cron job via puppet?
>
> Then, all you have to do, is wait 24 hours after a system has come under
> your control, and you should have an up to date system.
changed and we needed an update applied sooner rather than later to our
internal software deployments.
The same would be true of an emergency security patch from upstream, though,
so I certainly feel happier having puppet ensure the resources it depends on
are up to date.
Daniel
--
✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
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.