FAQ
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Joe at May 15, 2013 at 5:04 pm
    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 [email protected].
    To post to this group, send email to [email protected].
    Visit this group at http://groups.google.com/group/puppet-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Tom De Vylder at May 29, 2013 at 12:13 pm
    Hi,

    Class ['pythonpip'] -> Class ['myapp']

    … should do the trick for you.

    Regards,
    Tom
    On 14 May 2013, at 20:36, 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 [email protected].
    To post to this group, send email to [email protected].
    Visit this group at http://groups.google.com/group/puppet-users?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 Users" 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-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMay 14, '13 at 6:36p
activeMay 29, '13 at 12:13p
posts3
users3
websitepuppetlabs.com

3 users in discussion

Matt F: 1 post Tom De Vylder: 1 post Joe: 1 post

People

Translate

site design / logo © 2023 Grokbase