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

Webhook cannot do new puppet module install #280

Closed
andrewwippler opened this issue Sep 11, 2016 · 0 comments
Closed

Webhook cannot do new puppet module install #280

andrewwippler opened this issue Sep 11, 2016 · 0 comments

Comments

@andrewwippler
Copy link
Contributor

When I add a new module to the Puppetfile I get the below error message

-> Deploying module /etc/puppetlabs/code/environments/production/modules/make\nERROR\t
-> Command exited with non-zero exit code:\nCommand: puppet module --modulepath /etc/puppetlabs/code/environments/production/modules --color false install --version=0.0.5 --force croddy/make\nStderr:\nErrno::ENOENT: No such file or directory - puppet\nExit code: 254\nINFO\t 

Running puppet module --modulepath /etc/puppetlabs/code/environments/production/modules --color false install --version=0.0.5 --force croddy/make as root completes successfully. The webhook is running as root. Is there a path I am not passing into my manifest?

I am using commit e584e3a with the below puppet code:

  class { 'r10k':
    remote       => 'puppet-control_repo:githost/puppet-control_repo.git',
    git_settings => {
       'private_key' => '/etc/puppetlabs/puppetserver/r10kgit',
    }
  }

  class {'r10k::webhook::config':
    use_mcollective  => false,
    github_secret    => 'XXXXXXXXXXX',
    public_key_path  => '/etc/puppetlabs/puppet/ssl/certs/puppet.server.pem',
    private_key_path => '/etc/puppetlabs/puppet/ssl/private_keys/puppet.server.pem',
  }

  class {'r10k::webhook':
    use_mcollective => false,
    user            => 'root',
    group           => '0',
    require         => Class['r10k::webhook::config'],
  }

Also, running r10k deploy environment -p works successfully.

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