Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

azure_pipelines_agent_macos (6) Versions 3.0.2

A dedicated cookbook for configuring an Azure DevOps build or release agent on macOS.

Policyfile
Berkshelf
Knife
cookbook 'azure_pipelines_agent_macos', '= 3.0.2', :supermarket
cookbook 'azure_pipelines_agent_macos', '= 3.0.2'
knife supermarket install azure_pipelines_agent_macos
knife supermarket download azure_pipelines_agent_macos
README
Dependencies
Quality 33%

Azure DevOps Build and Release Agent Cookbook for macOS

Build status

Visual Studio Team Services is now Azure DevOps Services
We're working on the best way to rename the cookbook and recipes while maintaining backwards compatibility.

Recipes

Bootstrap

Usage: azure_piplines_agent_macos::bootstrap

Add the node to the agent pool or deployment group.

Teardown

Usage: azure_piplines_agent_macos::teardown

Remove an existing agent from the build pool or deployment group.

Attributes

Agent Name

The name of the agent.

Default value: node['hostname']

default['azure_piplines_agent']['agent_name']

Agent Version

The version of the agent to install.

Default value: '2.150.3'

default['azure_piplines_agent']['version']

Agent Pool

The name of the agent pool you wish to add the agent to.

Default value: American Hanko's Agents

default['azure_piplines_agent']['agent_pool']

Organization Name

The name of your Azure DevOps organization. (e.g. 'americanhanko' in https://dev.azure.com/americanhanko)

Default value: americanhanko

default['azure_piplines_agent']['account']

Admin User

The username of an adminstrator on the macOS system.

Default value: 'vagrant'

default['azure_piplines_agent']['admin_user']

Agent Home Directory

The location that contains all builds, source, release, etc.

Default value: '/Users/#{node['azure_piplines_agent']['admin_user']}/azure-piplines-agent'

default['azure_piplines_agent']['agent_home']

Additional Environment Variables

An optional hash may be set to pass environment variables to the agent. The agent
will then be configured with these environment variables which it will then
report back to the servers.

Default value: {}

default['azure_piplines_agent']['additional_environment']

Deployment Group

This cookbook supports adding agents to Azure DevOps deployment groups. To use this feature, simply
set the default['azure_piplines_agent']['deployment_group'] attribute. In addition, make sure you have
the appropriate values set for the following attributes shown below. By default, we assume that
if the default['azure_piplines_agent']['deployment_group'] attribute is nil, we are bootstrapping
a build agent and not a deployment agent. This means if you set this attribute, it will
override the default functionality. You may optionally specifiy deployment group tags using
default['azure_piplines_agent']['deployment_group_tags'].

default['azure_piplines_agent']['deployment_group'] = nil
default['azure_piplines_agent']['project'] = nil
default['azure_piplines_agent']['work'] = nil
default['azure_piplines_agent']['deployment_group_tags'] = nil

Authentication

This cookbook uses a personal access token
to authenticate to your organization on the Azure DevOps servers. The cookbook allows access to the token via either an attribute, within a data bag or using a chef vault item.

Plaintext Attribute

Example:

default['azure_piplines_agent']['pat'] = '0fbdebc988934add98179ddaae019a01711'

Data Bag or Chef Vault Item

Name your vault or bag and corresponding item whatever you like and
make sure to set the corresponding attributes to reference it
accordingly:

Example:

default['azure_piplines_agent']['data_bag'] = 'tea_bag'
default['azure_piplines_agent']['data_bag_item'] = 'green_tea'

However, it must contain a personal_access_token key with
the token itself as the value. The token must have rights to read and modify
build agents. The permissions are selected at the time of the PAT creation, which
you can read more about here.

Example:

{
  "id": "azure_piplines_build_agent",
  "personal_access_token": "iu8tfaxxrhce7yeu434yo9zfjtxif3jygzk24wegi855er2moobs"
}

Dependent cookbooks

chef-vault ~> 3.1.0
homebrew ~> 5.0.0
tar ~> 2.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

3.0.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

3.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 contain a CONTRIBUTING.md file

Foodcritic Metric
            

3.0.2 passed this metric

No Binaries Metric
            

3.0.2 passed this metric

Testing File Metric
            

3.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 contain a TESTING.md file

Version Tag Metric
            

3.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