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

Puppet runs Exec[npm_install_NPM dependencies] every run #445

Open
ghost opened this issue May 28, 2021 · 0 comments
Open

Puppet runs Exec[npm_install_NPM dependencies] every run #445

ghost opened this issue May 28, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented May 28, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.21.1
  • Ruby:
  • Distribution: CentOS 7
  • Module version: 9.0.0

How to reproduce (e.g Puppet code you use)

    nodejs::npm { 'NPM dependencies':
        ensure           => present,
        target           => '/var/www/',
        use_package_json => true,
    }

package.json

{
  "name": "MyApp",
  "private": true,
  "version": "0.0.0",
  "description": "a Sails application",
  "keywords": [],
  "dependencies": {
    "archiver": "^0.16.0",
    "ejs": "~0.8.4",
    "fast-csv": "^0.6.0",
    "fs-extra": "^0.26.5",
    "gm": "^1.21.1",
    "grunt": "0.4.2",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-coffee": "~0.10.1",
    "grunt-contrib-concat": "~0.3.0",
    "grunt-contrib-copy": "~0.5.0",
    "grunt-contrib-cssmin": "~0.9.0",
    "grunt-contrib-jst": "~0.6.0",
    "grunt-contrib-less": "0.11.1",
    "grunt-contrib-uglify": "~0.4.0",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-sails-linker": "~0.9.5",
    "grunt-sync": "~0.0.4",
    "include-all": "~0.1.3",
    "jsdom": "^11.3.0",
    "jsonfile": "^2.2.2",
    "md5": "^2.0.0",
    "mime": "^1.3.4",
    "mime-types": "^2.1.7",
    "nodemailer": "^1.11.0",
    "rc": "~0.5.0",
    "sails": "~0.11.0",
    "sails-disk": "~0.10.0",
    "sails-mongo": "^0.11.4",
    "soap": "^0.11.0",
    "type-of": "^2.0.1",
    "underscore": "^1.8.3",
    "unzip": "^0.1.11",
    "xml2js": "^0.4.15",
    "xmldoc": "^0.4.0"
  },
  "scripts": {
    "start": "node app.js",
    "debug": "node debug app.js"
  },
  "main": "app.js",
  "repository": {
    "type": "git",
    "url": "git://INTERNALREPO"
  },
  "author": "",
  "license": ""
}

What are you seeing

Every puppet run contains
Nodejs::Npm[NPM dependencies]/Exec[npm_install_NPM dependencies]/returns: executed successfully (corrective)

What behaviour did you expect instead

Puppet should find no changes

Output log

Any additional information you'd like to impart

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

0 participants