Re: [Puppet Users] why do I get ensure changed 'purged' to 'present' on a package when it is already installed

2010-02-06 Thread Tim Schofield
On Fri, 2010-02-05 at 19:59 -0800, Dan Bode wrote:
> 
> 
> On Fri, Feb 5, 2010 at 4:24 PM, tim_schofield  wrote:
> Hi all,
> 
> I have created a squid class that also installs squidGuard.
>  When I
> run puppetd I always get
> 
> notice: //Node[.xx.xxx]/squid/squid::install/
> Package[squidGuard]/ensure: ensure changed 'purged' to
> 'present'
> 
> running with --debug will show some useful information about the
> underlying system calls being made. Run again in debug mode, then post
> the output (or just the output that we care about).

Ran in debug and the problem was with the

/usr/bin/dpkg-query -W --showformat '${status} ${Package} ${Version}\n'
squidGuard

when I run this on command line I get
No packages found matching squidGuard

If I run it again using the correct package name of squidguard rather
than squidGuard I get

install ok installed squidguard 1.2.0-8.4

so I changed my manifest file to use squidguard rather than squidGuard
problem solved.  Thanks

So why was squidGuard installed in first place so I apt-get remove
squidguard, set my manifest back to squidGuard and it reinstalled, did
the same again with -debug to find the system call which was

/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install
squidGuard

ran this on the command line and it install squidguard

also ran the lowercase version

/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install
squidguard

and this installed as well.


> 
> also, what version of Puppet are you running? what platform?
> 
puppet 0.24.5-3
Debian lenny 


> even though the package is already installed - why is this
> change in
> package status happening as it then triggers my exec resource
> which is
> only supposed to run the first time when squidguard is
> installed
> (thereafter it is run as a cron job).  So at the moment it is
> triggered every time puppetd is run
> 
> exec { "/usr/local/bin/getblacklist.sh":
>subscribe => Package["squidGuard"],
>refreshonly => true
>}
> 
> 
> Regards
> 
> Tim
> 
> 
> 
> 
> 
> --
> You received this message because you are subscribed to the
> Google Groups "Puppet Users" group.
> To post to this group, send email to
> puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users
> +unsubscr...@googlegroups.com.
> 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 puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users
> +unsubscr...@googlegroups.com.
> 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 puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] why do I get ensure changed 'purged' to 'present' on a package when it is already installed

2010-02-05 Thread Dan Bode
On Fri, Feb 5, 2010 at 4:24 PM, tim_schofield  wrote:

> Hi all,
>
> I have created a squid class that also installs squidGuard.  When I
> run puppetd I always get
>
> notice: //Node[.xx.xxx]/squid/squid::install/
> Package[squidGuard]/ensure: ensure changed 'purged' to 'present'
>
> running with --debug will show some useful information about the underlying
system calls being made. Run again in debug mode, then post the output (or
just the output that we care about).

also, what version of Puppet are you running? what platform?



> even though the package is already installed - why is this change in
> package status happening as it then triggers my exec resource which is
> only supposed to run the first time when squidguard is installed
> (thereafter it is run as a cron job).  So at the moment it is
> triggered every time puppetd is run
>
> exec { "/usr/local/bin/getblacklist.sh":
>subscribe => Package["squidGuard"],
>refreshonly => true
>}
>
>
> Regards
>
> Tim
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> 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 puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] why do I get ensure changed 'purged' to 'present' on a package when it is already installed

2010-02-05 Thread tim_schofield
Hi all,

I have created a squid class that also installs squidGuard.  When I
run puppetd I always get

notice: //Node[.xx.xxx]/squid/squid::install/
Package[squidGuard]/ensure: ensure changed 'purged' to 'present'

even though the package is already installed - why is this change in
package status happening as it then triggers my exec resource which is
only supposed to run the first time when squidguard is installed
(thereafter it is run as a cron job).  So at the moment it is
triggered every time puppetd is run

exec { "/usr/local/bin/getblacklist.sh":
subscribe => Package["squidGuard"],
refreshonly => true
}


Regards

Tim





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