Comments (4)
Hi @labkey-stuartm yes, we will do as soon as we can.
from wazuh-chef.
Thank you.
from wazuh-chef.
Just checking... when do you guys intent to publish the cookbooks to Chef Supermarket as we in middle of implementation and would like to include them @jlruizmlg
from wazuh-chef.
Hi all!
Today we made a Demo about the best way to maintain and share Wazuh Chef's cookbooks, roles, etc.
Steps to follow:
1- We first should create an account in Chef https://manage.chef.io/signup
-
- Save our private key file
2- Grant Access Permission
for Chef Supermarket so we then would be able to upload cookbooks to Chef Supermarket.
3- Create an organization for Wazuh.
-
- Add the corresponding users with the proper permissions.
-
- Download the client validation key.
-
- Download Knife configuration file.
In local machine and inside our wazuh-chef folder
4- Create folder .chef
5- Copy Knife configuration file into wazuh-chef/.chef
: knife.rb
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "<username>"
validation_client_name "<organiztion name>-validator"
validation_key "#{current_dir}/<organiztion name>-validator.pem"
client_key "#{current_dir}/<user key file name>.pem"
chef_server_url "https://api.chef.io/organizations/<organiztion name>"
cookbook_path ["#{current_dir}/../cookbooks"]
6- Copy the Client Validation Key
into wazuh-chef/.chef
: .pem
-
- A default one is created automatically.
7- Copy our user private key
into wazuh-chef/.chef
: .pem
Then we are ready to upload and share.
Uploading to the Organization
Upload the entire chef-repo
Browse to the top level of the chef-repo and enter:
$ knife upload .
or from anywhere in the chef-repo, enter:
$ knife upload /
to upload all cookbooks and data bags, plus all roles and environments that are stored as JSON data. (Roles and environments stored as Ruby data will not be uploaded.)
For more details, check here
Note
: Uploading the files cookbooks, roles, etc ..
to the organization is not equivalent to upload the cookbook to the supermarket, this needs to be done separately, as follows:
knife supermarket share "<cookbook name>" -o <path to cookbooks>
Issue
We got error message when trying to unshare a cookbook from the supermarket owned by us:
ERROR: Forbidden: You must be the maintainer of <...>to unshare it.
We thought that maybe it's related because we didn't specify ourselves as maintainers for the shared cookbooks but it either works with the ones we maintain.
This issue is already reported here: chef/chef#8056
Kr,
Rshad
from wazuh-chef.
Related Issues (20)
- Create an independent cookbook for Kibana
- Declare more attributes in all cookbooks to make it more easy to adapt the installation
- Move filebeat cookbook inside manager's
- Keep Elastic with ODFE
- Apply Wazuh tools name changing to the wazuh-chef
- Apply Wazuh daemons name changing to wazuh-chef
- Wazuh v5: Core changes
- Adapt cookbooks installation to Wazuh v4.1.0 new features HOT 2
- Rename wazuh-chef users and groups according to the new Wazuh naming standard
- Rename ossec.conf to manager.conf and agent.conf in Chef
- Rename ossec.log to wazuh.log and ossec.json to wazuh.json in Chef
- Release v0.1.0 in Chef supermarket HOT 1
- Update references to deprecated authd options and consider the new ones. HOT 1
- Update to Wazuh 4.2.4 HOT 7
- Error in Wazuh Manager and Agent 4.3.0 pre-release installation
- Review API configuration parameters to match the new standard
- Review of pipelines executed after push HOT 1
- Update the `api.yaml` configuration file with the new `format` API configuration parameter
- Update the `api.yaml` configuration file with the new `upload_configuration` section and limits option
- Feature request: Chef recipe for Wazuh Agent installation in macOS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wazuh-chef.