To add a cookbook repository to a RepoPath object.
Table of Contents
Each ServerTemplate can only have a single RepoPath object. However, a RepoPath object can contain references to multiple cookbook repositories. In order to use a repository's Chef resources and providers (e.g. recipes, attributes, etc.) it must be properly referenced in a RepoPath object.
Before you can add your own Chef recipes as scripts to a ServerTemplate, you must first add a reference to your repository to a ServerTemplate's RepoPath object.
Note: If you are adding a reference to a private GitHub repository, you will need to specify the URL (Ex: firstname.lastname@example.org:username/cookbooks.git) and Git SSH Key. You will need to provide Git with the public key and enter the private key in the Dashboard. (The private key must not require a passphrase.) Although you can use the Override drop-down option to enter it here, we recommend creating a credential for it.
URL - The URL that will be used to fetch the contents of the repository. You should only use the 'read-only' url since you will only be retrieving cookbooks. (view screenshot)
Important! Make sure you use the Git protocol as shown above (git://<URL>). GitHub has changed the default protocol from Git to standard HTTP (http://<URL>). If you use the default HTTP protocol, you will receive an error when your server launches. For more information and an example of the error, please see our RightScale Forum posting on the topic here.
Type - Type of repository.
svn - SVN repository
download - Download a tarball of the code base
git - GitHub repository (recommended)
Tag/Branch - Specify a tag, branch identifier, or commit SHA. If you are actively developing and testing code in the repository, you may want to use the "master" branch. To use the master branch, you can either explicitly list "master" or leave this field blank. You can also enter the name of the branch, tag, or the complete SHA of a commit (e.g. 27eb23151853686c1e7727eb23151853686c1e7). For production use, it's strongly recommended that you use a SHA because branches and tags can be changed.
Cookbooks path - The path in the repository where the cookbooks are located. Typically, cookbooks are located inside the root directory of the repository in a "cookbooks" directory. (e.g. rightscale/rightscale_cookbooks) However, if they exist in a different location, specify the full path. If the cookbooks are in the root directory, leave this field blank.
Git SSH key - Enter access credentials to retrieve cookbooks from a private repository (if required). Leave the field blank if you are using a public repository.
If you are using a private repository, you must provide a valid SSH Key for authentication purposes. RightScale uses this information to retrieve the code from your private repository and save a copy in Repose. For example, in GitHub, use a Git SSH Key. You could either use a cloud SSH key or generate one of your own. If you created your own key, it's recommended that you create a credential (Design -> Credentials) to store your key material. Or you can override the dropdown and paste the contents of your Git SSH Key directly.
Click Save. Repeat the process to add more repositories to the RepoPath object.
|Glossary | 用語 | 용어||Site Map | Site Help||Community||Training||Corporate Site||Get Support||Dashboard Login|
|Doc Feedback||Product Feedback||Resources||Forums||MultiCloud Marketplace||Support Tickets|
© 2006-2013 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.