Vagrant (Saltstack) 如何使用盐状态安装 package.json?
Vagrant (Saltstack) how to install package.json with salt state?
我想用 vagrant "vagrant up" 安装我的环境。我编写了安装模块的代码,但我想安装 package.json 个文件,如何安装?我的模块安装程序代码如下所示:
mongodb:
pkg:
- installed
service:
- running
nodejs:
pkg:
- installed
npm:
pkg:
- installed
git:
pkg:
- installed
build-essential:
pkg:
- installed
bower:
npm:
- installed
nodemon:
npm:
- installed
有一个状态npm.bootstrap
例如:
my-deps:
npm.bootstrap:
- name: /vagrant
- user: vagrant
- require:
- pkg: nodejs
这个
will execute npm install --json on the specified directory
我想用 vagrant "vagrant up" 安装我的环境。我编写了安装模块的代码,但我想安装 package.json 个文件,如何安装?我的模块安装程序代码如下所示:
mongodb:
pkg:
- installed
service:
- running
nodejs:
pkg:
- installed
npm:
pkg:
- installed
git:
pkg:
- installed
build-essential:
pkg:
- installed
bower:
npm:
- installed
nodemon:
npm:
- installed
有一个状态npm.bootstrap
例如:
my-deps:
npm.bootstrap:
- name: /vagrant
- user: vagrant
- require:
- pkg: nodejs
这个
will execute npm install --json on the specified directory