This chef cookbook automates preparing new Gatling injector
All you need is to add injector recipe to specific node run list.
knife node run_list add [NODE_NAME] 'recipe[injector]'
.
├── cookbooks
│ └── chef-cookbook-gatling-injector
│ ├── Berksfile
│ ├── metadata.rb
│ ├── recipes
│ │ ├── default.rb
│ │ ├── java.rb
│ │ ├── limits.rb
│ │ ├── sbt.rb
│ │ └── users.rb
└── data_bags
└── users
└── injector.json
Create injector.json file with user data, for example:
{
"id" : "injector",
"comment" : "gatling injector",
"home" : "/home/injector",
"password" : "$1$RCJcI/fw$4mRELkyZ.6b6MP7xFgoiO.",
"shell": "\/bin\/bash",
"groups" : ["gatling"],
"ssh_keys" : []
}
create data bag
knife data_bag create users
For more information about creating users, visit Users Cookbook