chef

WARN: Missing gem 'right_aws'

白昼怎懂夜的黑 提交于 2019-12-13 05:45:54
问题 I am working my way through a video tutorial at http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ I am working on win7 and using git-bash for my terminal. I have installed the latest virtualbox - 4.2.12 and the latest vagrant - 1.22. I have chef 11.4.4 installed In the forums for this tutorial I came across a modified vagrantFile at https://dl.dropboxusercontent.com/u/1343706/gswd-vagrantfile. I replaced the original vagrant file with this. I tried to run vagrant up and

What do Berkshelf-api and Chef Supermarket do differently than traditional artifact repositories?

好久不见. 提交于 2019-12-13 04:48:18
问题 I am familiar with artifact repositories such as Artifactory, Maven & Nexus. What do Berkshelf-API / Chef Supermarket do differently than the above Artifact Repositories? On first glance it appears they are duplicating features in already existing artifact repositories (immutability, transitive dependency resolution, etc). Clarification: This is not an opinion-based question, I am seeking the technical reasons why Berkshelf-API / Chef Supermarket are used for Chef Cookbooks instead of other

Managing custom cookbooks in a chef repo

感情迁移 提交于 2019-12-13 04:39:37
问题 I was wondering how Chef users organize custom cookbooks with relation to the main Chef repository. I started a repository based on a blank Chef Repo, and then installed custom cookbooks into the chef repo (i.e. the cookbook code is managed in the chef repo codebase). It's becoming a bit unmanageable though - especially when we want to work on different versions of a cookbook, and I'm wondering if it makes more sense to create independent cookbook projects and then pull in the cookbooks with

chef how to overwrite attribtues in json file

醉酒当歌 提交于 2019-12-13 04:07:36
问题 I'm trying to run the same recipe twice with different attributes. Is there a way to specify it in the run list? Example: "myRecipe":{ "run-list": "recipe[test], recipe[test]" } and the first one should have flag=false while second one should execute with flag=true. 回答1: No, that's not possible. You have to implement such logic in your recipe and e.g iterate over an array. 回答2: I answered a similar question previously: The short version is, you need to modify your thinking. If you need to

Installing Chef Server on Windows - 2

你说的曾经没有我的故事 提交于 2019-12-13 03:32:38
问题 I was following this link Installing Chef Server on Windows. Here he was facing issue to install gem package for chef-server, chef-server-api But, with some trying, I can able to install Now, the problem is the link enashnash shared, but it is removed I tried googling URL, plagarism nothing worked until I checked web archive. https://web.archive.org/web/20111204204532/http:/wiki.opscode.com/display/chef/Installing+Chef+Server+Manually As it is using CouchDB, Rabbit MQ,Java, zlib, libxml,

Chef 10: How to use remote_file or similar to get a file from a Windows share?

∥☆過路亽.° 提交于 2019-12-13 02:57:23
问题 I'm trying to use remote_file to cache a local copy of a large package on a Windows share. How is this done? I can't get it to work with a drive-letter-based path, a UNC-based path, or a file: URL. 回答1: Don't have windows to test, but something like this should work: require 'fileutils' remote_path = '...' local_path = '...' ruby "cache-#{remote_path}" do block { FileUtils.copy_file(remote_path, local_path) } not_if { File.exists?(local_path) } end 回答2: I worked out a trick that I think is

How can I deploy code 'on-demand' using chef client-server architecture?

孤街浪徒 提交于 2019-12-13 02:35:23
问题 Here's the scenario: I can SSH into my Chef-Server . But I can't SSH into any of the Chef-Clients. So this is how I work : I have a workstation to change or create Roles . All the chef-clients are running as daemons , so when they wake up , they notice state changes and start updating themselves . Now , I need to configure code deployments on these clients . I was thinking I could use application cookbook for that , and add recipes to the roles using my workstation . But won't that result in

Chef conditional resource argument

為{幸葍}努か 提交于 2019-12-13 01:39:20
问题 I'm creating a user via Chef. His properties are stored in data bag: { "id": "developer", "home": "/home/developer", "shell": "/bin/zsh", "password": "s3cr3t" } The recipe is: developer = data_bag_item('users', 'developer') user developer['id'] do action :create supports :manage_home => true home developer['home'] comment developer['comment'] shell developer['shell'] password developer['password'] end The problem is that if zsh is not installed on node, I cannot login as developer . So, I

How to fix ruby error: sh: 1: make: not found

老子叫甜甜 提交于 2019-12-12 18:44:18
问题 I am working my way through a video tutorial at http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ I am working on win7 and using git-bash for my terminal. I have installed the latest virtualbox - 4.2.12 and the latest vagrant - 1.22. I tried to run vagrant up and got: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [default] Creating shared folders

while bootstrapping a recipe on windows machine ..facing issues like ConnectTimeoutError: execution expired

时光总嘲笑我的痴心妄想 提交于 2019-12-12 18:29:24
问题 When I am bootstrapping a recipe on windows machine. I am facing an error which is shown below: $ knife bootstrap windows winrm IP-address -x Username -P password -r recipe[notepad] ERROR: HTTPClient::ConnectTimeoutError: execution expired I have installed knife windows pluggin and also configured the winrm but after doing this also .. I am facing this issue. I could not resolve this. Has anyone come across this problem and found a solution? 回答1: actually .. i got the solution for the issue