cookbook 'chef_software', '= 2.0.2'
chef_software (14) Versions 2.0.2 Follow3
Installs/Configures chef server, chef automate2, chef supermarket
cookbook 'chef_software', '= 2.0.2', :supermarket
knife supermarket install chef_software
knife supermarket download chef_software
chef_software
This Cookbook wraps the chef-ingredient cookbook and will install and configure chef-server, chef-automatev2, and an internal chef-supermarket. Configuration is all attribute driven.
Requirements
Please refer to the chef-ingredient cookbook https://github.com/chef-cookbooks/chef-ingredient for additional information on configuration options to add to the atribute hashes.
Platforms
- Linux
Attributes
default attributes
Attribute | Default | Comment |
---|---|---|
['chef_software']['chef_server_api_fqdn'] | 'chef-server.example.com' | (String) Hostname to connect to chef-server |
['chef_software']['chef_automate_api_fqdn'] | 'chef-automate.example.com' | (String) Hostname to connect to chef-automatev2 |
['chef_software']['chef_supermarket_api_fqdn'] | 'chef-supermarket.example.com' | (String) Hostname to connect to chef-supermarket |
['chef_software']['automate_admin_token'] | nil | (String) Token used for api access by cookbook |
['chef_software']['chef_automatev2'] | {accept_license: true, config: <<~EOC [global.v1] fqdn = "#{node['chef_software']['chef_automate_api_fqdn']}" EOC} | (Hash) Used to add configuration options to chef-automatev2 |
['chef_software']['chef_automatev2']['local_users'] | {test1:{ full_name: 'Test 1', password: 'Test1234!',},} | (Hash) Hash of hashes definign automatev2 users |
['chef_software']['chef_automatev2']['iam_policies'] | {team_ldap: {policy_json: {subjects: ['user:local:test1'], action: '', resource: '',},},} | (Hash) Hash of hashes defining automate IAM policies in json format |
['chef_software']['chef_server'] | {accept_license: true, addons: {'manage' => {accept_license: true,},}, config: <<~EOC api_fqdn "#{node['chef_software']['chef_server_api_fqdn']}" topology "standalone" #{"data_collector['root_url'] = 'https://#{node['chef_software']['chef_automate_api_fqdn']}/data-collector/v0/' data_collector['proxy'] = true profiles['root_url'] = 'https://#{node['chef_software']['chef_supermarket_api_fqdn']}'" if node['chef_software']['chef_automate_api_fqdn']} #{"oc_id['applications'] | |
['chef_software']['chef_user'] | {test1: {first_name: 'Test',last_name: '1',email: 'test1@example.com',password: 'Test1234!',},} | (Hash) Hash of hashes used to manage chef-server users |
['chef_software']['chef_org'] | {testing: {org_full_name: 'Testing Chef Server', admins: %w(test1), users: %w(),},} | (Hash) Hash of hashes used to manage chef-server organizations |
['chef_software']['chef_supermarket'] | {chef_server_url: "https://#{node['chef_software']['chef_server_api_fqdn']}", chef_oauth2_app_id: 'testGUID', chef_oauth2_secret: 'testGUID', chef_oauth2_verify_ssl: false, accept_license: true, config: {fqdn: node['chef_software']['chef_supermarket_api_fqdn'], smtp_address: 'localhost', smtp_port: 25, from_email: 'chef-supermarket.example.com', features: 'tools,gravatar,github,announcement,fieri', fieri_key: 'randomstuff', fieri_supermarket_endpoint: node['chef_software']['chef_supermarket_api_fqdn'],},} | (Hash) Used to add configuration options to chef-supermarket |
Recipes
default recipe
Recipe does nothing but log warning that it does nothing
chef_automatev2
Recipe to install chef-automatev2
chef_server
Recipe to install chef-server and manage users & organizations
chef_supermarket
Recipe to install chef-supermarket
Usage
- Set attributes via wrapper cookbook, policy files, role or environment files.
- Build chef-automatev2 server first. Create an admin token and update
automate_admin_token
attribute. - Build chef-server second. Update
chef_supermarket
attribute with the correct settings found on the chef server at/etc/opscode/oc-id-applications/supermarket.json
- Build chef-supermarket third.
Dependent cookbooks
chef-ingredient >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
chef_software CHANGELOG
This file is used to list changes made in each version of the chef_software cookbook.
2.0.2 (2022-09-29)
- [Corey Hemminger] - Removed chef-ingredient reference to fork from policyfile
2.0.1 (2022-08-12)
- [Corey Hemminger] - Update changelog
2.0.0 (2022-08-12)
- [Corey Hemminger] - Update chef_automatev2 recipe to use iamv2 for user and policy creation
- [Corey Hemminger] - update chef_server to run chef-server-ctl upgrade vs chef-server-ctl reconfigure
1.1.1 (2022-08-02)
- [Corey Hemminger] - Fix server and supermarket's to run reconfigure after an update
- [Corey Hemminger] - Add github actions CI/CD pipelines and testing
1.1.0 (2020-08-07)
- [Corey Hemminger] - Modernize cookbook with policy file and other skeleton files
1.0.4 (2019-04-01)
- [Corey Hemminger] - Work around to make org admins idempotent
1.0.3 (2019-03-11)
- [Corey Hemminger] - Make description the same as long description
1.0.2 (2019-03-11)
- [Corey Hemminger] - Updated metadata description
1.0.1 (2019-01-14)
- [Corey Hemminger] - Updated readme and .kitchen.yml
1.0.0 (2018-12-21)
- [Corey Hemminger] - Initial Release
Collaborator Number Metric
2.0.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Cookstyle Metric
2.0.2 passed this metric
No Binaries Metric
2.0.2 passed this metric
Testing File Metric
2.0.2 passed this metric
Version Tag Metric
2.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.2 failed this metric
2.0.2 passed this metric
No Binaries Metric
2.0.2 passed this metric
Testing File Metric
2.0.2 passed this metric
Version Tag Metric
2.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.2 passed this metric
2.0.2 passed this metric
Version Tag Metric
2.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.2 failed this metric