
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
shipit-roles
Advanced tools
Assign roles to servers and execute commands on sets of servers with specific roles
The shipit-roles module lets addresses the requirement outlined in this github issue:
https://github.com/shipitjs/shipit/issues/122
If you have a fleet of servers and that are configured in a specialized manner per role, shipit-roles lets you address them as a group during the deploy process. This allows you to restart the web server on only hosts that actually have a web server running or clear the cache on servers that actually keep a cache.
npm install --save shipit-roles
When you define your servers, use the following format:
...
servers: [
{
user: 'root',
host: 'app1.example.com',
role: 'appserver'
},{
user: 'root',
host: 'app2.example.com',
role: 'appserver'
},{
user: 'root',
host: 'worker1.example.com',
role: 'worker'
},{
user: 'root',
host: 'worker2.example.com',
role: 'worker'
},{
user: 'root',
host: 'db1.example.com',
role: 'database'
}
]
...
You can have as many roles as you want and they can be identified with whatever
word you choose. appserver
, worker
, and database
are merely provided as
examples.
shipit-roles monkey patches the remote()
and remoteCopy()
functions to accept a
role
option. If no role
is provided, then it defaults to all servers. If
a role is specified, then the command will only address the servers with that
role.
const roles = require('shipit-roles')
module.exports = function (shipit) {
roles(shipit)
shipit.task('deploy:restart_appservers', () => {
return shipit.remote('service nginx restart', { role: 'appserver' })
})
shipit.task('deploy:restart_workers', () => {
return shipit.remote('service worker restart', { role: 'worker' })
})
}
Shipit-roles was written by Greg Kops and is based upon his work with Think Topography and The Cornell Cooperative Extension of Tompkins County
FAQs
Assign roles to servers and execute commands on sets of servers with specific roles
The npm package shipit-roles receives a total of 0 weekly downloads. As such, shipit-roles popularity was classified as not popular.
We found that shipit-roles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.