In class myapp::install, just require the other class:

require Class['pythonpip::install']

before the package statement.

On Tuesday, May 14, 2013 12:36:22 PM UTC-6, Matt F wrote:
>
> I have two modules, and I'm having some dependacy problems: 
>
> 1 - Install python "pip":
>
> class pythonpip::install {
>     file {"/root/.pip":
>         ensure => directory,
>         owner  => root,
>         group  => root,
>         mode   => 755
>     }
>     file {"/root/.pip/pip.conf":
>         ensure  => present,
>         source => 'puppet:///modules/pythonlinux/pip.conf',
>         mode    => 0644,
>     }
> }
>
>
> 2 - install some python packages via "pip":
>
> class myapp::install {
>     package {
>         "mechanize":
>             provider => pip;
>         "numpy":
>             provider => pip;
>         "pandas":
>             provider => pip;
>         "reportlab":
>             provider => pip;
>     }
> }
>
> I want to make sure tha the "pythonpip::install" is alway run before the 
> "myapp::install". How can I do that?
>

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


Reply via email to