# Chef Infra (archive)

**URL:** https://discourse.chef.io/c/chef/6.md?page=4

[Latest](https://discourse.chef.io/latest.md) · [Categories](https://discourse.chef.io/categories.md)

**Page:** 5

---

## [Sending notifications from a custom resource](https://discourse.chef.io/t/sending-notifications-from-a-custom-resource/19623)

<div class="topic-metadata">

**Author:** [@christo](https://discourse.chef.io/u/christo)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 1:27pm UTC](https://discourse.chef.io/t/sending-notifications-from-a-custom-resource/19623 "2021-03-02T13:27:49Z")

</div>

Hi, I'm writing a custom resource to configure a service. The service has to be stopped before reconfiguration can happen. The brute-force solution would be to systemctl stop service (with Mixlib::ShellOut or execute)…

---

## [Notification sent too soon?](https://discourse.chef.io/t/notification-sent-too-soon/19599)

<div class="topic-metadata">

**Author:** [@grove](https://discourse.chef.io/u/grove)\
**Replies:** 4\
**Last updated:** [February 24, 2021, 9:15pm UTC](https://discourse.chef.io/t/notification-sent-too-soon/19599 "2021-02-24T21:15:25Z")

</div>

When I wanted to test some new chef code I had written, I found what looks like an error to me. I have reduced it down to the recipe shown at: https://paste.debian.net/1186447/ If I move the # to choose the other comm…

---

## [Need help locating equivalent helpers from windows community cookbook in Chef Infra Client](https://discourse.chef.io/t/need-help-locating-equivalent-helpers-from-windows-community-cookbook-in-chef-infra-client/19609)

<div class="topic-metadata">

**Author:** [@joshuariojas](https://discourse.chef.io/u/joshuariojas)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 8:22pm UTC](https://discourse.chef.io/t/need-help-locating-equivalent-helpers-from-windows-community-cookbook-in-chef-infra-client/19609 "2021-02-24T20:22:27Z")

</div>

Since the windows community cookbook has been deprecated, I am working on stripping out any leftover dependencies to the cookbook. I have been unable to locate an equivalent helper for the installed\_packages method in th…

---

## [Windows NFS mounts](https://discourse.chef.io/t/windows-nfs-mounts/19605)

<div class="topic-metadata">

**Author:** [@Polar](https://discourse.chef.io/u/Polar)\
**Replies:** 0\
**Last updated:** [February 24, 2021, 9:43am UTC](https://discourse.chef.io/t/windows-nfs-mounts/19605 "2021-02-24T09:43:34Z")

</div>

I don't want to write a lot, because after 7 years none of this appears to be fixed or even slightly working. This: https://stackoverflow.com/questions/21442874/unable-to-mount-nfs-shares-on-windows-clients. I've spent…

---

## [Custom report handler runs multiple times](https://discourse.chef.io/t/custom-report-handler-runs-multiple-times/19602)

<div class="topic-metadata">

**Author:** [@abuk](https://discourse.chef.io/u/abuk)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 9:16am UTC](https://discourse.chef.io/t/custom-report-handler-runs-multiple-times/19602 "2021-02-24T09:16:11Z")

</div>

Hi - I created a very simple report handler, which works but runs multiple times via the chef-client daemon. It appears to run once for each successful chef-client run. If I tail the log and wait or send a USR1 signal to…

---

## [Chef Infra Client 16.7.61 Install Error in WS2019](https://discourse.chef.io/t/chef-infra-client-16-7-61-install-error-in-ws2019/19525)

<div class="topic-metadata">

**Author:** [@MAN98EVER](https://discourse.chef.io/u/MAN98EVER)\
**Replies:** 15\
**Last updated:** [February 22, 2021, 10:29am UTC](https://discourse.chef.io/t/chef-infra-client-16-7-61-install-error-in-ws2019/19525 "2021-02-22T10:29:15Z")

</div>

Hi - I am getting a weird error when installing Chef Infra Client version 16.7.61 in some of our new WS 2019 servers. Essentially there is an error in the customactionscript that forces the MSI Install to rollback Star…

---

## [Omnitruck-direct.chef.io down?](https://discourse.chef.io/t/omnitruck-direct-chef-io-down/19572)

<div class="topic-metadata">

**Author:** [@techguychris](https://discourse.chef.io/u/techguychris)\
**Replies:** 2\
**Last updated:** [February 18, 2021, 6:03pm UTC](https://discourse.chef.io/t/omnitruck-direct-chef-io-down/19572 "2021-02-18T18:03:52Z")

</div>

Hi. Is 'https://omnitruck-direct.chef.io/chef/install.sh' down? It looks like when knife bootstrap is run it errors downloading the install script from omnibus. Installing Chef Omnibus (-v 15.2.20) downloading https://o…

---

## [How to print or get IP and Hostname of VM in config file using Chef Template?](https://discourse.chef.io/t/how-to-print-or-get-ip-and-hostname-of-vm-in-config-file-using-chef-template/19568)

<div class="topic-metadata">

**Author:** [@Alfred](https://discourse.chef.io/u/Alfred)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 2:31pm UTC](https://discourse.chef.io/t/how-to-print-or-get-ip-and-hostname-of-vm-in-config-file-using-chef-template/19568 "2021-02-16T14:31:11Z")

</div>

Hi, I am a beginner in Chef Infra and I am trying to achieve this. I went through documentation here https://docs.chef.io/resources/template/ and was able create a sudoers file as mentioned, be defining the values in at…

---

## [My custom providers are not working with Chef Client \>16](https://discourse.chef.io/t/my-custom-providers-are-not-working-with-chef-client-16/19513)

<div class="topic-metadata">

**Author:** [@Banzy](https://discourse.chef.io/u/Banzy)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 3:52pm UTC](https://discourse.chef.io/t/my-custom-providers-are-not-working-with-chef-client-16/19513 "2021-02-05T15:52:18Z")

</div>

Hello! I have custom AWS provider for Chef. It's working with Chef Client 12, but can't working with Client 16+. I added "provides = :amazon" to code, but it didn't help. AWS resurce: class Chef class Resource cla…

---

## [I downloaded chef for EL8 but says EL7 why?](https://discourse.chef.io/t/i-downloaded-chef-for-el8-but-says-el7-why/19454)

<div class="topic-metadata">

**Author:** [@pacotejeda](https://discourse.chef.io/u/pacotejeda)\
**Replies:** 4\
**Last updated:** [January 22, 2021, 1:09pm UTC](https://discourse.chef.io/t/i-downloaded-chef-for-el8-but-says-el7-why/19454 "2021-01-22T13:09:40Z")

</div>

Hi every one, I am new here and I am lerning how this works, mi question is: I downloaded chef server and ws for RHEL8 but packege name says EL7 I was waiting to it will say EL8. Why is this like. Do I need to install…

---

## [Chef code version control](https://discourse.chef.io/t/chef-code-version-control/19482)

<div class="topic-metadata">

**Author:** [@Odysseaus](https://discourse.chef.io/u/Odysseaus)\
**Replies:** 3\
**Last updated:** [January 22, 2021, 1:03pm UTC](https://discourse.chef.io/t/chef-code-version-control/19482 "2021-01-22T13:03:23Z")

</div>

At the moment my team and I just use a simple knife cookbook upload command from our workstation to push updated cookbooks to our chef infra server. We do too much back and forth with each other to ensure we don't step …

---

## [ChefDK to Chef Workstation -- GitLab CI/CD and Docker](https://discourse.chef.io/t/chefdk-to-chef-workstation-gitlab-ci-cd-and-docker/19481)

<div class="topic-metadata">

**Author:** [@Swampcritter](https://discourse.chef.io/u/Swampcritter)\
**Replies:** 2\
**Last updated:** [January 22, 2021, 1:00am UTC](https://discourse.chef.io/t/chefdk-to-chef-workstation-gitlab-ci-cd-and-docker/19481 "2021-01-22T01:00:40Z")

</div>

Back in December 2020, there was an email about ChefDK being slated as EOL. “It's time for what is more than likely the last release of ChefDK to ship. This last release includes updated tools as well as an OpenSSL secu…

---

## [How to code recipe to look for version number and automatically install package](https://discourse.chef.io/t/how-to-code-recipe-to-look-for-version-number-and-automatically-install-package/19439)

<div class="topic-metadata">

**Author:** [@hunt](https://discourse.chef.io/u/hunt)\
**Replies:** 3\
**Last updated:** [January 18, 2021, 4:40pm UTC](https://discourse.chef.io/t/how-to-code-recipe-to-look-for-version-number-and-automatically-install-package/19439 "2021-01-18T16:40:36Z")

</div>

Community Members, (Windows Installation) Does anyone have any code for a recipe that when it runs will: check a repo/share/etc... for a file version if its greater than the existing version install I could use some…

---

## [Chef Infra server backup and restore](https://discourse.chef.io/t/chef-infra-server-backup-and-restore/18069)

<div class="topic-metadata">

**Author:** [@Sri](https://discourse.chef.io/u/Sri)\
**Replies:** 0\
**Last updated:** [December 31, 2020, 3:57am UTC](https://discourse.chef.io/t/chef-infra-server-backup-and-restore/18069 "2020-12-31T03:57:41Z")

</div>

Hi, I have a Chef infra server 12.x on a machine which needs to be backed up and restored to another machine that has Chef infra server 14.x. Chef-Infra-Client on the child nodes is using Chef client 16.x. I use chef-s…

---

## [Getting error while runnung chef-client.](https://discourse.chef.io/t/getting-error-while-runnung-chef-client/18065)

<div class="topic-metadata">

**Author:** [@Faizan](https://discourse.chef.io/u/Faizan)\
**Replies:** 0\
**Last updated:** [December 30, 2020, 8:25pm UTC](https://discourse.chef.io/t/getting-error-while-runnung-chef-client/18065 "2020-12-30T20:25:14Z")

</div>

template\[/etc/sysconfig/network-scripts/ifcfg-bond0\] action create Error executing action create on resource 'template\[/etc/sysconfig/network-scripts/ifcfg-bond0\]' Chef::Mixin::Template::TemplateError ----------------…

---

## [Getting error while executing kitchen converge](https://discourse.chef.io/t/getting-error-while-executing-kitchen-converge/18048)

<div class="topic-metadata">

**Author:** [@kapil](https://discourse.chef.io/u/kapil)\
**Replies:** 0\
**Last updated:** [December 22, 2020, 10:40am UTC](https://discourse.chef.io/t/getting-error-while-executing-kitchen-converge/18048 "2020-12-22T10:40:24Z")

</div>

Getting error while executing kitchen converge. Please help me out with this one. I am a beginner. ------Exception------- Class: Kitchen::ActionFailed Message: 2 actions failed. Failed to complete #converge act…

---

## [Not able to execute the chef-client with error - The interface is unknown. - OpenEventLog](https://discourse.chef.io/t/not-able-to-execute-the-chef-client-with-error-the-interface-is-unknown-openeventlog/18041)

<div class="topic-metadata">

**Author:** [@achettri](https://discourse.chef.io/u/achettri)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 2:16pm UTC](https://discourse.chef.io/t/not-able-to-execute-the-chef-client-with-error-the-interface-is-unknown-openeventlog/18041 "2020-12-18T14:16:45Z")

</div>

In on of my test learning node i am getting issue running the chef-client. it give me the error "FATAL: SystemCallError: The interface is unknown. - OpenEventLog" When i run chef-client -v i am able to get the output of…

---

## [Ann: Building OCI images for Chef-Zero Policyfile installations](https://discourse.chef.io/t/ann-building-oci-images-for-chef-zero-policyfile-installations/18029)

<div class="topic-metadata">

**Author:** [@bbros-dev](https://discourse.chef.io/u/bbros-dev)\
**Replies:** 0\
**Last updated:** [December 18, 2020, 3:55am UTC](https://discourse.chef.io/t/ann-building-oci-images-for-chef-zero-policyfile-installations/18029 "2020-12-18T03:55:38Z")

</div>

Hi, We've decided to open source a part of our build infrastructure. Specifically, the creation of 'base' container images that are, in turn, used to build images from Policyfiles using Chef Zero. The code is dual MIT…

---

## [A proof of concept cookbook for the on\_failure Chef RFC](https://discourse.chef.io/t/a-proof-of-concept-cookbook-for-the-on-failure-chef-rfc/5207)

<div class="topic-metadata">

**Author:** [@Kannan\_Manickam](https://discourse.chef.io/u/Kannan_Manickam)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 10:04pm UTC](https://discourse.chef.io/t/a-proof-of-concept-cookbook-for-the-on-failure-chef-rfc/5207 "2020-12-08T22:04:37Z")

</div>

\[image: Ohai Chefs!\] I have playing with a proof of concept cookbook for the on\_failure Chef RFCproposed recently. I made some good progress on that and it works for most use cases. So I just wanted to share it wit…

---

## [Test Kitchen: need to have domain included in kitchen.yml](https://discourse.chef.io/t/test-kitchen-need-to-have-domain-included-in-kitchen-yml/17987)

<div class="topic-metadata">

**Author:** [@dbou](https://discourse.chef.io/u/dbou)\
**Replies:** 0\
**Last updated:** [November 27, 2020, 4:04pm UTC](https://discourse.chef.io/t/test-kitchen-need-to-have-domain-included-in-kitchen-yml/17987 "2020-11-27T16:04:53Z")

</div>

Hi...i'm trying to test a recipe in Test Kitchen that is based on the domain that the computer is located in. I've tried "vm\_hostname: servername.local", but i get an error that i specified a FQDN instead of just a host …

---

## [Error when attempting to use chef commands](https://discourse.chef.io/t/error-when-attempting-to-use-chef-commands/17981)

<div class="topic-metadata">

**Author:** [@sReiners](https://discourse.chef.io/u/sReiners)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 2:26pm UTC](https://discourse.chef.io/t/error-when-attempting-to-use-chef-commands/17981 "2020-11-25T14:26:27Z")

</div>

After setting up my workstation I added some files to the git-ignore and svn ignore files, but after that, my chef-client stopped working. Tried reinstalling and 'knife ssl fetch' didn't work either. For the 'knife SUB-C…

---

## [Unauthorized\_cookbooks](https://discourse.chef.io/t/unauthorized-cookbooks/17965)

<div class="topic-metadata">

**Author:** [@Bones](https://discourse.chef.io/u/Bones)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 8:18am UTC](https://discourse.chef.io/t/unauthorized-cookbooks/17965 "2020-11-20T08:18:45Z")

</div>

I have looked though the old topics and see items similar that deal with ACLs, but do no look fully like the issue I am seeing. When running chef-client, getting a 403 back but when running knife cookbook show|download …

---

## [Upgrade Chef-Server 12.16 to 14](https://discourse.chef.io/t/upgrade-chef-server-12-16-to-14/17944)

<div class="topic-metadata">

**Author:** [@CarChef](https://discourse.chef.io/u/CarChef)\
**Replies:** 4\
**Last updated:** [November 18, 2020, 8:42am UTC](https://discourse.chef.io/t/upgrade-chef-server-12-16-to-14/17944 "2020-11-18T08:42:38Z")

</div>

Hi, I'm searching on internet but i don't find a valid how to for an upgrade and a compatibility matrix (I read a message here where it seems it doesn't exist at all) Actual: chef-server 12.16 on CentOS 6.5, + various …

---

## [Unable to satisfy contraints on package httpd](https://discourse.chef.io/t/unable-to-satisfy-contraints-on-package-httpd/17931)

<div class="topic-metadata">

**Author:** [@itinneed](https://discourse.chef.io/u/itinneed)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 9:42pm UTC](https://discourse.chef.io/t/unable-to-satisfy-contraints-on-package-httpd/17931 "2020-11-12T21:42:15Z")

</div>

I'm following pluralsights "Getting Productive with Chef Cookbooks". I tried the courses at learn.chef.io but I wasn't able to understand chef with them. Running berks install after setting up a metadata.rb file I'm ge…

---

## [Windows bootstarp issue](https://discourse.chef.io/t/windows-bootstarp-issue/9348)

<div class="topic-metadata">

**Author:** [@sumanth](https://discourse.chef.io/u/sumanth)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 7:24am UTC](https://discourse.chef.io/t/windows-bootstarp-issue/9348 "2020-11-12T07:24:17Z")

</div>

I am trying a test cookbook to create a file on windows node and hitting the following error PS C:\\CHEFworkstation\\CBS\_CHEF\\chef-starter\\chef-repo\> knife bootstrap windows winrm 192.23.112.69 --winrm-user Administrator…

---

## [Chef-client outputting stacktrace to /Cefche?](https://discourse.chef.io/t/chef-client-outputting-stacktrace-to-cefche/17934)

<div class="topic-metadata">

**Author:** [@itinneed](https://discourse.chef.io/u/itinneed)\
**Replies:** 0\
**Last updated:** [November 12, 2020, 4:51am UTC](https://discourse.chef.io/t/chef-client-outputting-stacktrace-to-cefche/17934 "2020-11-12T04:51:39Z")

</div>

I upgraded my Chef-client on some of my nodes and now each time I try to run chef-client I get an error and the stacktrace is being output to /Cefche/chef-stacktrace.out How can I force chef-client to drop the stacktrac…

---

## [Pair a Search with a standard command](https://discourse.chef.io/t/pair-a-search-with-a-standard-command/17903)

<div class="topic-metadata">

**Author:** [@hunt](https://discourse.chef.io/u/hunt)\
**Replies:** 8\
**Last updated:** [November 10, 2020, 10:49am UTC](https://discourse.chef.io/t/pair-a-search-with-a-standard-command/17903 "2020-11-10T10:49:29Z")

</div>

Community, Looking for the right syntax I can use to merge a search and loop the results with a command that performs a function. i.e. I want to search for all server tagged "Dev" and add a recipe to their run-list . …

---

## [CookBook reading csv and at runtime assigning values depending o nodes](https://discourse.chef.io/t/cookbook-reading-csv-and-at-runtime-assigning-values-depending-o-nodes/17907)

<div class="topic-metadata">

**Author:** [@Priyanka7340](https://discourse.chef.io/u/Priyanka7340)\
**Replies:** 0\
**Last updated:** [November 5, 2020, 7:07am UTC](https://discourse.chef.io/t/cookbook-reading-csv-and-at-runtime-assigning-values-depending-o-nodes/17907 "2020-11-05T07:07:20Z")

</div>

I have a cookbook; however , this cookbook has static path. I want the path should be taken dynamically at run time. Also, I have a csv that has different path details w.r.t to each node for 2000 servers. I want it shoul…

---

## [Multiple arguments in one \`tagged?()\` call?](https://discourse.chef.io/t/multiple-arguments-in-one-tagged-call/17762)

<div class="topic-metadata">

**Author:** [@mcascone](https://discourse.chef.io/u/mcascone)\
**Replies:** 3\
**Last updated:** [October 30, 2020, 2:00am UTC](https://discourse.chef.io/t/multiple-arguments-in-one-tagged-call/17762 "2020-10-30T02:00:34Z")

</div>

Is there a way to use multiple arguments in the tagged? method? The docs say it takes a list, but I haven't been able to get it to work. Maybe it's super simple and I'm just missing it. I'd like do something along the l…

---

## [Knife-vrealize always fails, seems to be in wrong path](https://discourse.chef.io/t/knife-vrealize-always-fails-seems-to-be-in-wrong-path/17806)

<div class="topic-metadata">

**Author:** [@mcascone](https://discourse.chef.io/u/mcascone)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 2:51am UTC](https://discourse.chef.io/t/knife-vrealize-always-fails-seems-to-be-in-wrong-path/17806 "2020-10-20T02:51:43Z")

</div>

I posted this on github/chef, got some help but still having the issue. When i have knife-vrealize installed, almost any call to knife fails. Uninstalling knife-vrealize fixes the issue, but then i can't spin machines f…

[Previous page](https://discourse.chef.io/c/chef/6.md?page=3)

[Next page](https://discourse.chef.io/c/chef/6.md?page=5)
