
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Configure and manage your Vagrant environments using structured data.
Masonry is the craft of shaping rough pieces of rock into accurate geometrical shapes, at times simple, but some of considerable complexity, and then arranging the resulting stones to form structures.
This plugin provides an interface to the Vagrant configuration constructs in a
logic free manner. You can format your input data to fit your needs and use
vagrant-masonry
to transform that into the needed Vagrant config.
This example loads all yaml files in the config directory and generates a Vagrant config based on that information. File names are arbitrary and chosen for clarity.
.
├── config
│ ├── roles.yaml
│ └── vms.yaml
└── Vagrantfile
For pure yaml configurations, use yaml loader:
require 'masonry'
Vagrant.configure('2', &ConfigBuilder.load(
:yaml,
:yamldir,
File.expand_path('../config', __FILE__)
))
For yaml erb configurations, use yaml_erb loader:
require 'masonry'
Vagrant.configure('2', &ConfigBuilder.load(
:yaml_erb,
:yamldir,
File.expand_path('../config', __FILE__)
))
The yaml_erb loader would allow configuration such as:
---
roles:
puppet_apply:
provisioners:
- type: puppet
manifests_path: 'tests'
module_path: 'spec/fixtures/modules'
manifest_file: <%= ENV['VAGRANT_MANIFEST'] || 'init.pp' %>
---
boxes:
centos-65-x64: http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box
debian-73-x64: http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-puppet.box
roles:
bigvm:
provider:
type: virtualbox
customize: [[modifyvm, !ruby/sym id, '--memory', 1024]]
synced_folders:
- host_path: '.'
guest_path: '/vagrant'
disabled: true
smallvm:
provider:
type: vmware
vmx:
memsize: 512
numvcpus: 1
---
vms:
-
name: db
private_networks: [ {ip: '10.20.1.2'} ]
box: centos-65-x64
hostname: db.puppetlabs.vm
roles: bigvm
-
name: web
private_networks: [ {ip: '10.20.1.3'} ]
box: debian-73-x64
vagrant plugin install vagrant-masonry
Build the gem:
gem build vagrant-masonry.gemspec
Install the gem:
gem install vagrant-masonry-<version>.gem
Vagrant Masonry plugin is based on vagrant-config_builder plugin.
Vagrant Masonry is licensed under Apache 2.0 license.
FAQs
Unknown package
We found that vagrant-masonry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.