Questions tagged [chef]

1 votes
1 replies
How to pass ssl_verify_mode option to chef-client.exe
I want to pass explicitly ssl_verify_mode option to chef-client (executable). On this page https://docs.chef.io/ctl_chef_client.html I am not abl...
asked 1 month ago
0 votes
1 replies
How to use ruby_block variables, out side of ruby_block
I have a code, in that code it contains ruby_block. What are the values generating in that ruby_block, I want use them in out side/in another res...
asked 1 month ago
0 votes
2 replies
Get instance public ip with chef recepie
I try to get ip address of the instance and create my cron job: command "curl --silent \"http://#{instance['public_ip']}/module.php/cron/cron.ph...
asked 1 month ago
0 votes
1 replies
Chef server : FATAL: password authentication failed for user “opscode-pgsql”
I am working on installing chef server on my local system. I already have postgresql installed running on port 5432. When I try to reconfigure ch...
asked 1 month ago
0 votes
2 replies
Chef understanding only_if in execute resource
I have here an execute block that looks like this execute 'uninstall_datadog' do command 'sudo apt-get --purge remove datadog-agent -y' only...
asked 1 month ago
0 votes
1 replies
Passing an integer value through a node attribute in chef
I am new to chef. Please let me know how can I pass an integer value as a node attribute (chef-client -j). Tried with json input, but I was not...
asked 1 month ago
0 votes
2 replies
Auto-uploading cookbooks to chef server
I recently started working with chef and am managing my cookbooks in a github repository. Every time I make a change, I am pushing my changes to...
asked 1 month ago
0 votes
0 replies
Infrastructure Compliance via Inspec
I am describing in brief the CHEF usage in our env and what we wish to accomplish from Inspec. • We have two generic cookbooks available for W...
asked 1 month ago
0 votes
1 replies
Error `create` on resource 'template[/etc/awslogs//cwlogs.cfg]'
I am trying to do a chef run but keep receiving the error in the title. The log output is as follows; Error executing action `create` on resourc...
1 votes
0 replies
How do you improve the performance of the ChefDK commands on Windows 10?
In the past, I've installed the ChefDK on Windows 7 and it ran fairly quickly. Recently, I installed a new version of the ChefDK on Windows 10 Pr...
asked 2 months ago
0 votes
0 replies
Issue with Windows_ad_join
I trying to get the resource to work on a new system which I am trying to automate as much as possible but not having much luck setting the OU pa...
asked 2 months ago
0 votes
0 replies
Set Docker_Host back to default?
Following this post: How to detect a docker daemon port I set my Docker_Host to tcp:2375 and removed TLS. I'm strictly doing this so I can follo...
asked 3 months ago
0 votes
0 replies
How to distinguish node['cloud']['name] and node['cloud_name'] in search
I have the following issue with cluster search - there are cluster servers nodes and cluster client nodes. First ones have attribute node['cluste...
asked 3 months ago
0 votes
1 replies
Last Check-in keeps on updating in Chef - Scheduling
I have removed the chef-client recipe from Node and no roles were assigned to nodes now but still Node is getting scheduled for every 5minutes....
asked 3 months ago
0 votes
2 replies
How to rerun a recipe when something is changed in data bag without logging in to chef-client machine
I have a chef-client machine in which recipe accesses data bag values. I need to rerun the chef-recipe on client machine without logging into the...
asked 2 months ago
1 votes
2 replies
chef database cookbook failing on raw sql
I am trying execute a raw sql for creating a user with few grants, but I am getting a undefined method error. I am using v4.0.9 of the database c...
asked 2 months ago
1 votes
1 replies
Chef delay attribute assignment via data bag
So i have a bit of a pickle. I have an encrypted data bag to store LDAP passwords. In my node run list, one of my recipes installs the secret ke...
asked 3 months ago
0 votes
1 replies
Chef new_resource.<value> vs. <value>
I inherited a cookbook utilizing another cookbook with a custom resource. I'm trying to figure out the use of the new_resource in this code. In...
asked 3 months ago
0 votes
1 replies
knife bootstrap: “ERROR: SSL Error connecting”
While trying to bootstrap a new SERVER: Chef-Workstation:~ # knife bootstrap SERVER -N SERVER -E PROJECTNAMEHERE -x USERNAMEHERE-A --sudo --ver...
asked 2 months ago
0 votes
1 replies
Install cookbook only on a specific platform version
I have a cookbook that i need to install only on one particular platform version. Is there a way to do it? I know i can write the recipe to have...
asked 3 months ago
0 votes
1 replies
Install Lets Encrypt on Chef Server
I want to install a Letsencrypt certificate on my Chef server. I followed this guide: git clone https://github.com/letsencrypt/letsencrypt cd le...
asked 3 months ago
0 votes
1 replies
ChefSpec testing directory exists
I am trying to write a ChefSpec test to check that the recipe creates a directory only if it doesn't exist. I get my first test of "creating dire...
asked 5 months ago
0 votes
0 replies
Data Bags: Can't upload entire data bag
We're running Chef 12.13 and I'm trying to upload all my data bags using the following command: knife data bag from file -a The command runs wi...
asked 1 month ago
0 votes
0 replies
Chef how to run 2 variables, one or the other
I have a chef recipe to install a software, but my environment some has java set to "/opt/jdk" and some to other "/usr/lib". I want to handle thi...
asked 4 months ago
0 votes
1 replies
Chef Berks Install (Berkshelf) Timesout contacting Artifactory repository (Faraday Timeout / Actor Crashed)
Artifactory 5.8.4 Professional Chef Development Kit Version: 1.1.16 chef-client version: 12.17.44 delivery version: master (83358fb62c0f711c70...
asked 3 months ago