Hey, Im trying to use the puppet vcsrepo module, one of the issues I had with it is that its required to have a vcs installed before the plugin is used within a class or else it fails with: err: Could not run Puppet configuration client: Could not find a default provider for vcsrepo Iv solved this by requiring git installation before the first vcsprepo usage. This solution is not optimal since it requires me to keep track where vcsrepo is used for the first time so iv decided to create a seperate class for git installation, this class has parameter (user & email) for the git global configuration, In my site.pp im using: class basenode { class { git: user=> $www_user, email => $email} include "build_essential" include "vim-src" class { vim-configuration: user => $user} class { "zsh": user => $user} include "zsh_configuration" class { "z": user => $user} include "local_security" include "apt" include "apt::unattended-upgrade::automatic" } Yet iv found out that git gets isn''t installed before the first time vcsrepo is used (vim_configuration in this case), Is there a reason why class gets compiled after included modules? Is there a better way to solve this? Thanks Ronen -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ronen Narkis
2011-May-26 22:05 UTC
Re: [Puppet Users] node class include vs module include
I would also expect Class["git"] -> Vcsrepo <| |> to work, but it doesn''t Ronen On Fri, May 27, 2011 at 12:49 AM, Ronen <narkisr@gmail.com> wrote:> Hey, > > Im trying to use the puppet vcsrepo module, one of the issues I had > with it is that its required to have a vcs installed before the plugin > is used within a class or else it fails with: > > err: Could not run Puppet configuration client: Could not find a > default provider for vcsrepo > > Iv solved this by requiring git installation before the first vcsprepo > usage. > > This solution is not optimal since it requires me to keep track where > vcsrepo is used for the first time so iv decided to create a seperate > class for git installation, this class has parameter (user & email) > for the git global configuration, > > In my site.pp im using: > > class basenode { > class { git: user=> $www_user, email => $email} > include "build_essential" > include "vim-src" > class { vim-configuration: user => $user} > class { "zsh": user => $user} > include "zsh_configuration" > class { "z": user => $user} > include "local_security" > include "apt" > include "apt::unattended-upgrade::automatic" > } > > Yet iv found out that git gets isn''t installed before the first time > vcsrepo is used (vim_configuration in this case), > > Is there a reason why class gets compiled after included modules? > > Is there a better way to solve this? > > Thanks > Ronen > > -- > 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+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.