Puppet不会安装NPM软件包或在软件包上抛出错误确保

时间:2016-04-22 00:18:25

标签: npm puppet

I'm attempting to write a puppet script that does a jupyterhub server deployment.我似乎在设置步骤中很早就遇到了问题。

我有

class jupyterhub {

    # Used by JupyterHub as a web proxy to notebooks.
    class { 'nodejs':
        manage_package_repo       => false,
        nodejs_dev_package_ensure => 'present',
        npm_package_ensure        => 'latest',
    }

    # Proxy to be used
    package { 'configurable-http-proxy':
        ensure   => present,
        provider => 'npm',
        require  => Class['nodejs'],
    }

在我们的测试服务器上,我已经

puppet module install puppet-nodejs

拥有nodejsnpm模块

我正在运行此框的是Debian稳定框

Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux

但是,当我真正去服务器上运行时,我发现NPM已经安装但是没有安装包。

puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for jupyterhub.internal.com
Info: Applying configuration version '1461274246'
Notice: Finished catalog run in 1.68 seconds
$ npm
npm@1.4.21 /usr/share/npm

到目前为止一切都很好,但是当我跑步时

npm list
/root
└── (empty)

没有安装,我看不到任何错误。我很困惑为什么会这样。

0 个答案:

没有答案