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

arcgis-repository (11) Versions 4.2.0

Downloads ArcGIS software setups from remote to local repositories

Policyfile
Berkshelf
Knife
cookbook 'arcgis-repository', '= 4.2.0', :supermarket
cookbook 'arcgis-repository', '= 4.2.0'
knife supermarket install arcgis-repository
knife supermarket download arcgis-repository
README
Dependencies
Quality 17%

layout: default
title: "arcgis-repository cookbook"
category: cookbooks
item: arcgis-repository
version: 4.2.0

latest: true

arcgis-repository cookbook

arcgis-repository cookbook downloads ArcGIS software setup archives from remote to local repositories.

Supported ArcGIS versions

  • 10.8
  • 10.8.1
  • 10.9
  • 10.9.1
  • 11.0
  • 11.1

Platforms

  • Windows 8 (8.1)
  • Windows 10
  • Windows Server 2012 (R2)
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022
  • Ubuntu Server 18.04 and 20.04 LTS
  • Red Hat Enterprise Linux Server 8
  • SUSE Linux Enterprise Server 15
  • Oracle Linux 8
  • Rocky Linux 8
  • AlmaLinux 9

Dependencies

The following cookbooks are required:

  • s3_file

Attributes

  • node['arcgis']['repository']['setups'] = Path to folder with the ArcGIS software setups. Default path is %USERPROFILE%\Documents on Windows and /opt/arcgis on Linux.
  • node['arcgis']['repository']['archives'] = Local or network ArcGIS software repository path. The default path on Windows is %USERPROFILE%\\Software\\Esri. On Linux, it is /opt/software/esri.
  • node['arcgis']['repository']['local_archives'] = Local ArcGIS software repository path. The default path on Windows is %USERPROFILE%\\Software\\Esri. On Linux, it is /opt/software/esri.
  • node['arcgis']['repository']['shared'] = If true, a network share is created for the local repository path. Default value is false.
  • node['arcgis']['repository']['patches'] = Path to folder with hot fixes and patches for ArcGIS Enterprise software. The default path on Windows is %USERPROFILE%\Software\Esri\patches. On Linux, it is /opt/software/esri/patches.
  • node['arcgis']['repository']['server']['url'] = Remote ArcGIS software repository URL. The default URL is https://devops.arcgis.com/arcgis.
  • node['arcgis']['repository']['server']['key'] = Remote ArcGIS software repository key.
  • node['arcgis']['repository']['server']['s3bucket'] = Remote ArcGIS software repository S3 bucket name.
  • node['arcgis']['repository']['server']['region'] = Remote ArcGIS software repository S3 bucket region id.
  • node['arcgis']['repository']['server']['aws_access_key'] = AWS access key ID. IAM role credentials are used if access key is not specified.
  • node['arcgis']['repository']['server']['aws_secret_access_key'] = AWS secret access key.
  • node['arcgis']['repository']['files'] = File names mapped to SHA256 checksum and the remote path subfolder attributes. Default value is nil.
  • node['arcgis']['repository']['patch_notification']['url'] = ArcGIS patch notification file URL. The default URL is https://downloads.esri.com/patch_notification/patches.json.
  • node['arcgis']['repository']['patch_notification']['products'] = An array or ArcGIS product names used to filter downloaded patches. If the array is empty, patches are downloaded for all products. The default value is [].
  • node['arcgis']['repository']['patch_notification']['versions'] = An array of ArcGIS versions used to filter downloaded patches. The default value is [node['arcgis']['version']].

Recipes

aws_cli

Downloads and installs AWS CLI on the machine.

{
  "run_list": [
    "recipe[arcgis-repository::aws_cli]"
  ]
}

default

Calls arcgis-repository::files recipe.

files

Downloads files from the ArcGIS software repository.

Attributes used by the recipe:

{
  "arcgis": {
    "repository": {
      "local_archives": "C:\\Software\\Archives",
      "server": {
        "url": "https://downloads.arcgis.com",
        "token_service_url": "https://www.arcgis.com/sharing/rest/generateToken",
        "username": "<ArcGIS Online username>",
        "password": "<ArcGIS Online>"
      },
      "files": {
        "<file name>": {
          "subfolder": "<folder>",
          "md5": "<MD5 checksum>",
          "sha256": "<SHA256 checksum>"
        }
      }
    }
  },
  "run_list": [
    "recipe[arcgis-repository::files]"
  ]
}

fileserver

Creates a repository directory and a network share for it if the arcgis.repository.shared attribute is set to true.

{
   "arcgis":{
      "repository":{
         "shared": false,
         "local_archives":"C:\\Software\\Archives"
      }
   },
   "run_list":[
      "recipe[arcgis-repository::fileserver]"
   ]
}

patches

Downloads patches for specific ArcGIS products and versions from the ArcGIS software repository.

Attributes used by the recipe:

{
  "arcgis": {
    "version": "11.1",
    "repository": {
      "local_patches": "C:\\Software\\Archives\\Patches",
      "patch_notification": {
        "products": ["ArcGIS Server"]
      }
    }
  },
  "run_list": [
    "recipe[arcgis-repository::patches]"
  ]
}

s3files

Downloads files from the ArcGIS software repository in S3 to the local repository specified by the node['arcgis']['repository']['local_archives'] attribute.

Attributes used by the recipe:

{
   "arcgis":{
      "repository":{
         "local_archives":"C:\\Software\\Archives",
         "server":{
            "region": "us-east-1",
            "s3bucket":"arcgisstore-us-east-1",
            "aws_access_key":"<access_key>",
            "aws_secret_access_key":"<secret_key>"
         },
         "files": {
          "<file name>": {
            "subfolder": "<folder>"
          }
        }
      }
   },
   "run_list":[
      "recipe[arcgis-repository::s3files]"
   ]
}

s3files2

Downloads files from the ArcGIS software repository in S3 to the local repository specified by the node['arcgis']['repository']['local_archives'] attribute.

The s3files2 recipe invokes arcgis-repository::aws_cli recipe to install AWS CLI on the machine.

Attributes used by the recipe:

{
   "arcgis":{
      "repository":{
         "local_archives":"C:\\Software\\Archives",
         "server":{
            "region": "us-east-1",
            "s3bucket":"arcgisstore-us-east-1",
            "aws_access_key":"<access_key>",
            "aws_secret_access_key":"<secret_key>"
         },
         "files": {
          "<file name>": {
            "subfolder": "<folder>"
          }
        }
      }
   },
   "run_list":[
      "recipe[arcgis-repository::s3files2]"
   ]
}

Dependent cookbooks

s3_file ~> 2.8
nfs ~> 2.6

Contingent cookbooks

arcgis-desktop Applicable Versions
arcgis-enterprise Applicable Versions
arcgis-geoevent Applicable Versions
arcgis-insights Applicable Versions
arcgis-license-manager Applicable Versions
arcgis-mission Applicable Versions
arcgis-notebooks Applicable Versions
arcgis-pro Applicable Versions
arcgis-video Applicable Versions
arcgis-workflow-manager Applicable Versions

Collaborator Number Metric
            

4.2.0 failed this metric

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

Contributing File Metric
            

4.2.0 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

Cookstyle Metric
            

4.2.0 failed this metric

Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): arcgis-repository/resources/files.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): arcgis-repository/resources/patches.rb: 1
Chef/Deprecations/UseInlineResourcesDefined: use_inline_resources is now the default for resources in Chef Infra Client 13+ and does not need to be specified. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_useinlineresourcesdefined): arcgis-repository/resources/files.rb: 33
Chef/Deprecations/UseInlineResourcesDefined: use_inline_resources is now the default for resources in Chef Infra Client 13+ and does not need to be specified. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_useinlineresourcesdefined): arcgis-repository/resources/patches.rb: 32
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/files.rb: 22
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/files.rb: 23
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/files.rb: 24
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/patches.rb: 22
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/patches.rb: 23
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/patches.rb: 24
Chef/Modernize/CustomResourceWithAttributes: Custom Resources should contain properties not attributes (https://docs.chef.io/workstation/cookstyle/chef_modernize_customresourcewithattributes): arcgis-repository/resources/patches.rb: 25
Chef/Modernize/DefaultActionFromInitialize: The default action of a resource can be set with the "default_action" helper instead of using the initialize method. (https://docs.chef.io/workstation/cookstyle/chef_modernize_defaultactionfrominitialize): arcgis-repository/resources/files.rb: 30
Chef/Modernize/DefaultActionFromInitialize: The default action of a resource can be set with the "default_action" helper instead of using the initialize method. (https://docs.chef.io/workstation/cookstyle/chef_modernize_defaultactionfrominitialize): arcgis-repository/resources/patches.rb: 29
Chef/Modernize/PowerShellGuardInterpreter: PowerShell is already set as the default guard interpreter for `powershell_script` and `batch` resources in Chef Infra Client 13 and later and does not need to be specified. (https://docs.chef.io/workstation/cookstyle/chef_modernize_powershellguardinterpreter): arcgis-repository/recipes/fileserver.rb: 38
Chef/Modernize/RespondToInMetadata: It is no longer necessary to use respond_to? or defined? in metadata.rb in Chef Infra Client 12.15 and later (https://docs.chef.io/workstation/cookstyle/chef_modernize_respondtoinmetadata): arcgis-repository/metadata.rb: 8
Chef/RedundantCode/CustomResourceWithAllowedActions: It is not necessary to set `actions` or `allowed_actions` in custom resources as Chef Infra Client determines these automatically from the set of all actions defined in the resource (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_customresourcewithallowedactions): arcgis-repository/resources/files.rb: 20
Chef/RedundantCode/CustomResourceWithAllowedActions: It is not necessary to set `actions` or `allowed_actions` in custom resources as Chef Infra Client determines these automatically from the set of all actions defined in the resource (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_customresourcewithallowedactions): arcgis-repository/resources/patches.rb: 20
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): arcgis-repository/metadata.rb: 6
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 22
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 23
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 24
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 25
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 26
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 27
Chef/RedundantCode/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata): arcgis-repository/metadata.rb: 28

Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations

No Binaries Metric
            

4.2.0 passed this metric

Testing File Metric
            

4.2.0 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
            

4.2.0 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