[Puppet Users] Re: execute a command if a package isn't installed, then install the package

2012-07-15 Thread loki77
te: > On Jul 14, 2012, at 5:19 PM, loki77 wrote: > > > Hi, I'm trying to install the 'unbound' dns resolver in ubuntu via > > puppet and I'm running into some issues.  The issue isn't that the > > package doesn't install, but rather that apt automat

[Puppet Users] execute a command if a package isn't installed, then install the package

2012-07-14 Thread loki77
Hi, I'm trying to install the 'unbound' dns resolver in ubuntu via puppet and I'm running into some issues. The issue isn't that the package doesn't install, but rather that apt automatically starts the daemon - and when the daemon starts, it updates resolv.conf in a way that breaks DNS. There's

[Puppet Users] Re: Anyway to get the $name or $title of the resource being called?

2012-07-14 Thread loki77
Nick actually was right - but I then ran into exactly what you're saying Erik :) I fixed it by using a defined resource in place of the plain file statement, basically how Nick was saying, and it worked great. Thanks for your help guys! On Jul 14, 1:09 am, Erik Dalén wrote: > On 14 July 2012 01

[Puppet Users] Re: Anyway to get the $name or $title of the resource being called?

2012-07-14 Thread loki77
Thanks Nick - it turned out that it was an issue on my end which was exacerbated by a misunderstanding of the log message and then misreading some online posts.  Everything is working fine now.  Thanks! On Jul 13, 4:22 pm, Nick Fagerlund wrote: > You may be doing something weird, because $name an

[Puppet Users] Anyway to get the $name or $title of the resource being called?

2012-07-13 Thread loki77
Hi - is there way to get the name of the resource being called when its inside a class? For example, if I have something defined as 'my_file' and I call it like this inside of a class: my_file { "/etc/bashrc": ; } Is there anyway to get the "/etc/bashrc" part in the definition logic its

[Puppet Users] Re: execute resources only when told to

2011-02-16 Thread loki77
include" when you're done... > > > > > > > > On Wed, Feb 16, 2011 at 11:18 AM, loki77 wrote: > > Hi, I'm looking for a way to have puppet kick off an upgrade of my > > companies software, but only when it's somehow 'told' to.  In c

[Puppet Users] execute resources only when told to

2011-02-16 Thread loki77
Hi, I'm looking for a way to have puppet kick off an upgrade of my companies software, but only when it's somehow 'told' to. In cfengine you can provide classes from the command line (such as upgrade_code) and then have parts of the policy only work if those classes are defined. Is there anyway t