Hello. I can't seem to get anything to work with the 'LinuxChefExtension' example in this template. When generating just a plain (empty) vm and removing the 'LinuxChefExtension' resource block (and associated variables/parameters) the same settings work to generate a vm. Note that with the 'LinuxChefExtension' settings included a vm is created, but then errors out I presume when trying to bootstrap the node. What is befuddling is that the error indicates there is no '/etc/chef/client.rb' file, when there is and is readable. Been tearing my hair out, any assistance greatly appreciated.
[From ~/.azure/azure.err:]
Error message: "chef-service enable failed - "Error enabling chef-client service - No such file or directory @ rb_sysopen - /etc/chef/client.rb - Check log file for details"
Repro steps (if necessary, delete otherwise)
azuredeploy.json & azuredeploy.parameters.json with placeholders/params/variables set
Login via 'azure login', set correct account, and execute: 'azure group deployment create -g MY_RESOURCE_GROUP -n "my-vmname-01" -v -f azuredeploy.json -e azuredeploy.parameters.json'
chef-json-parameters-linux-vm
Issue Details
Hello. I can't seem to get anything to work with the 'LinuxChefExtension' example in this template. When generating just a plain (empty) vm and removing the 'LinuxChefExtension' resource block (and associated variables/parameters) the same settings work to generate a vm. Note that with the 'LinuxChefExtension' settings included a vm is created, but then errors out I presume when trying to bootstrap the node. What is befuddling is that the error indicates there is no '/etc/chef/client.rb' file, when there is and is readable. Been tearing my hair out, any assistance greatly appreciated.
[From ~/.azure/azure.err:] Error message: "chef-service enable failed - "Error enabling chef-client service - No such file or directory @ rb_sysopen - /etc/chef/client.rb - Check log file for details"
Repro steps (if necessary, delete otherwise)
MORE INFO:
/etc/chef/client.rb: log_level :info log_location STDOUT chef_server_url 'https://chef-armdev-01:443/organizations/testorg' validation_client_name 'testorg-validator'