neillturner / puppet-pm2 Goto Github PK
View Code? Open in Web Editor NEWPuppet Module to deploy a nodejs application using PM2
Puppet Module to deploy a nodejs application using PM2
Some people like myself who are trying to learn puppet & nodejs will likely just copy/paste your examples initially like I did and suddenly they can't install any packages via npm. Might change it to not require auth initially then they can add it later if they like.
class { 'pm2':
npm_repository => "https://registry.npmjs.org",
npm_auth => '',
npm_always_auth => false,
pm2_version => "latest",
I don't see anything in the wildurand nodejs repo that uses this line:
nodejs::create_symlinks: false
I search for create_symlinks in that repo and nothing is found.
Can you tell me how/where you are using it?
The parameter $name redefines a built in parameter in the Host Class Definition
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Cannot alias File[/opt/nodejs/] to ["/opt/nodejs"] at /etc/puppetlabs/code/environments/production/modules/pm2/manifests/create_app.pp:21; resource ["File", "/opt/nodejs"] already declared at /etc/puppetlabs/code/environments/production/modules/pm2/manifests/init.pp:40 at /etc/puppetlabs/code/environments/production/modules/pm2/manifests/create_app.pp:21:3 on node node1
https://github.com/neillturner/puppet-pm2/blob/master/manifests/init.pp#L73
In PE 3.7/3.8, the exec seems to happen first, which is perplexing enough. Because I'm not sure what the point of it is, I removed it from my fork and it seems to at least get past the error I was getting:
"Error: Failed to apply catalog: Validation of Exec[pm2 init] failed: 'pm2 status' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppetlabs/puppet/environments/sand/modules/pm2/manifests/init.pp:73"
However, if it really is needed, then I'll need to revisit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.