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

cyberark (2) Versions 1.0.1

Custom resource to retrieve credential from CyberArk vault using AIM Central Credential Provider

Policyfile
Berkshelf
Knife
cookbook 'cyberark', '~> 1.0.1', :supermarket
cookbook 'cyberark', '~> 1.0.1'
knife supermarket install cyberark
knife supermarket download cyberark
README
Dependencies
Changelog
Quality 17%

cyberark Cookbook

Contains custom resource cyberark_credential and a default sample cookbook. It retrieves credential from CyberArk vault using AIM API (connecting to AIM Central Credential Provider.)

It requires cyberark_credential gem.

Requirements

Platforms

  • All platforms supported by Chef

Chef

  • Chef 12.1+

Cookbooks

  • none

Custom Resources

cyberark_credential

Actions

  • :read - Retrieves credential from CyberArk vault using AIM API (connecting to AIM Central Credential Provider)

Properties

  • name - Name attribute. The name of the value to be stored in the registry
  • app_id - ID for Application defined in CyberArk
  • query - The query to match the credential to be retrieved
  • base_url - The base URL for CyberArk AIM Central Credential Provider
  • use_ssl - Whether to use HTTP (false) or HTTPS (true) when making the API call

Examples

Retrieves CyberArk credential for account which matches criteria "Safe=Test;Folder=Root;Object=Object",
and creates a file named /tmp/test.txt with information received from CyberArk.

chef_gem 'cyberark_credential' do
  compile_time true
end

cyberark_credential "cred1" do
  app_id 'Chef_App' # it could be defaulted or use #{node['cyberark']['app_id']}
  query 'Safe=Test;Folder=Root;Object=Object' # it could be defaulted or use #{node['cyberark']['query']}
  notifies :create, "file[/tmp/test.txt]", :immediately
  base_url 'http://192.168.86.162' # it could be defaulted or use #{node['cyberark']['base_url']}
  use_ssl  false # it could be defaulted or use #{node['cyberark']['use_ssl']}
end

file '/tmp/test.txt' do
    sensitive true
    content lazy { "!USERNAME=#{node.run_state['cred1']['UserName']}\nPASSWORD=#{node.run_state['cred1']['Content']}\nDatabase=#{node.run_state['cred1']['Database']}\n" }
    only_if { node.run_state.key?('cred1') }
end

License & Authors

Copyright 2017, CyberArk Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

initial CHANGELOG

This file is used to list changes made in each version of the cyberark cookbook.

1.0.1

  • [Edward Nunez] - Updated reference to resource properties for current Chef version

1.0.0

  • [Edward Nunez] - Initial release of cyberark

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric
            

1.0.1 failed this metric

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

Contributing File Metric
            

1.0.1 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
            

1.0.1 failed this metric

FC064: Ensure issues_url is set in metadata: cyberark/metadata.rb:1
FC065: Ensure source_url is set in metadata: cyberark/metadata.rb:1
FC066: Ensure chef_version is set in metadata: cyberark/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: cyberark/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: cyberark/resources/cyberark_credential_resource.rb:48
FC108: Resource should not define a property named 'name': cyberark/resources/cyberark_credential_resource.rb:26
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.1 passed this metric

Testing File Metric
            

1.0.1 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
            

1.0.1 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