Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/bin/perlbrew no such file or directory #22

Open
LLFourn opened this issue Feb 10, 2014 · 0 comments
Open

/usr/local/bin/perlbrew no such file or directory #22

LLFourn opened this issue Feb 10, 2014 · 0 comments

Comments

@LLFourn
Copy link

LLFourn commented Feb 10, 2014

first time using this module on a fresh install I get:

Error: /usr/bin/env: /usr/local/bin/perlbrew: No such file or directory

Running puppet again everything works. Which means it's a dependency order issue.

 exec {
    'perlbrew_init':
      command => "/bin/sh -c 'umask 022; /usr/bin/env PERLBREW_ROOT=${perlbrew::params::perlbrew_root} ${perlbrew::params::perlbrew_bin} init'",
      creates => "${perlbrew::params::perlbrew_root}/perls",
      user    => 'perlbrew',
      group   => 'perlbrew',
      require => [ Group['perlbrew'], User['perlbrew'] ],
  }

The require should also have

File[$perlbrew::params::perlbrew_bin]

as part of the array. Puppet is pretty dumb sometimes. To reproduce:

node 'mah.cool.host' {
  class {'perlbrew':}
  perlbrew::build {"5.18.2":
    version => "5.18.2",
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant