Try a define resource that wraps an exec. While this is nowhere near
complete, something in the order of the example below might be a good
place to start.

    define mycustompackage {
      exec { "mycustompackages-${name}":
        command => "rpm -ivh --dbpath /yourdbpath/ ${name}"
        unless => "rpm -q --dbpath /yourdbpath/ ${name}"
      }
    }

Or something like that.

ken.

On Wed, Feb 20, 2013 at 5:40 PM, David Gordon <[email protected]> wrote:
> Thanks, but I've got to do this without any root access at all...
>
> The more I look at this, the more I think it's impossible with the
> provider/resource API.. One of its prerequisites seems to be that the
> prefetch class method is called first, and maps installed packages to that
> provider.  I can't think of any way of getting any config (i.e. the dbpath)
> to it.
>
> Thanks again for the suggestion though..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to