Re: [Puppet Users] module dependancy
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 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. > > -- 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.
[Puppet Users] module dependancy
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.
[Puppet Users] Module Dependancy
I have this... node base_node { } node child_node inherits base_node { Yumrepo { mirrorlist => absent, enabled => 0, gpgcheck => 1 } yumrepo { "Core": enabled => 1, name => "Core", descr => "Software", baseurl => "http://$repo_server/repo/core";, priority => 1, gpgcheck => 0; } } node app_node inherits child_node { include app_module } My app module has... package { "jboss-4.2.3.GA-1.tf": ensure => installed, require => Yumrepo['Core']; } I am getting the error: Configuration could not be instantiated: Could not find dependency Yumrepo[Core] for Package[jboss-tfel1-4.2.3.GA-1.tf] at /etc/puppet/modules/jboss/manifests/init.pp:26; using cached catalog So obviously puppet can't find the Yumrepo['Core'] resource. How can I let a puppet module include/access resources defined in nodes? Doug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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] Module Dependancy
I have this... node base_node { } node child_node inherits base_node { Yumrepo { mirrorlist => absent, enabled => 0, gpgcheck => 1 } yumrepo { "Core": enabled => 1, name => "Core", descr => "Software", baseurl => "http://$repo_server/repo/core";, priority => 1, gpgcheck => 0; } } node app_node inherits child_node { include app_module } My app module has... package { "jboss-4.2.3.GA-1.tf": ensure => installed, require => Yumrepo['Core']; } I am getting the error: Configuration could not be instantiated: Could not find dependency Yumrepo[Core] for Package[jboss-tfel1-4.2.3.GA-1.tf] at /etc/puppet/modules/jboss/manifests/init.pp:26; using cached catalog So obviously puppet can't find the Yumrepo['Core'] resource. How can I let a puppet module include/access resources defined in nodes? Doug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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 -~--~~~~--~~--~--~---