Questions tagged [chef-windows]

20 questions
4
votes
2 answers

How to run chef without chef server (chef solo/chef zero)

I have a set of cookbooks for provisioning web and SQL servers and they are currently used in our continuous deployment pipeline. I would like developers to be able to use the same cookbooks for setting up their local development environments…
Mike Robinet
  • 823
  • 6
  • 19
3
votes
1 answer

Access the registry of another user with Chef

Is it possible to access the registry of another user with Chef? I have the chef-client running as System and I want to modify the registry of User1? Is there a way to do this? The registry_key resource provides a way to access HKEY_Users but I see…
TwistedTech
  • 275
  • 4
  • 13
2
votes
1 answer

Chef bad decrypt error even when secret is identical

So I created an encrypted data bag using knife on MacOS, specifying a secrets file. If I run knife data bag show bag key --secret /path/to/secret it decrypts fine and I see the correct result. Now, if I copy the secret file to windows, the decrypt…
user1832464
2
votes
2 answers

Chef client is not getting installed on Target windows machine

I am unable to figure why its not installing the client on the target machine. In C drive opscode directory is not available and hence client is not getting installed on target node. Can some help me out in this . 10.233.188.207 "Rendering…
2
votes
1 answer

Chef: windows_batch: how to pass the Windows Administrator password from Chef workstation to Chef node

I am starting up Windows servers (2008r2 Datacenter Edition) on Amazon EC2 using Chef. In this scenario, I run a script. railsdev@deb7> knife ec2 server create -VV -I ami-xxxxxxx --flavor=m1.medium --groups=windows_target --region=us-east-1…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
1
vote
1 answer

how to provide username and password for chef windows_zipfile recipe

I'm trying to use windows_zipfile resource from the Chef Supermarket windows cookbook, but the source URL that I am using needs to have user privilege's to fetch any artifacts. How can we add username and password to windows_zipfile…
Guru43
  • 101
  • 1
  • 9
1
vote
2 answers

Windows Chef to add ssl certificate and bind to IIS

I am using Windows Chef cookbook https://supermarket.chef.io/cookbooks/windows/versions/5.0.0#readme to create and bind ssl. First I tried: # Create/update certificate windows_certificate "create cert" do source "c://hn/ssl/cert.pfx" …
Minwu Yu
  • 311
  • 1
  • 6
  • 24
1
vote
1 answer

Local ruby gems fail to install on Windows 2008R2: Errno::EADDRNOTAVAIL

Edit: Bug in rubygems 2.4.4. (fixed in 2.4.5) I'm having trouble installing gems with the embedded ruby that comes with Chef Client v12.2.1, using the chef_gem resource: Mixlib::ShellOut::ShellCommandFailed ------------------------------------ …
Nils
  • 131
  • 6
1
vote
1 answer

Chef recipe fails using knife bootstrap but is successful using chef-client in windows target node

I am using Chef-server-11.04 and the chef-client 11.12.4-1 for windows server 2012 r2.I am trying to execute Active directory powershell cmds on the windows client. The recipe execution fails when I use knife bootstrap windows winrm 10.XX.XXX.XX -x…
1
vote
2 answers

How to restart a Windows VM using chef

My requirement is to restart the windows vm after the software gets installed, I am automating the entire process using chef. Is there any method for doing that? Can we do through power shell ? Is there any method for chef to that ?
1
vote
2 answers

Chef: Windows 2008r2 node: Can't install Ruby with rubyinstaller

I'm new to Chef, so my question may seem somewhat uninformed. I'm running a Chef server (v11.4). My Chef workstation is running MRI Ruby 1.9.3 and gems knife-ec2 (v0.6.4) and knife-windows (v0.5.12). I'm trying to set up a Windows 2008r2 server on…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
0
votes
1 answer

Unable to use knife command on Chef workstation

I want to use knife command on chef workstation. But unable to use it now. I deleted my one account using which, I was using knife command but I am getting this error ERROR: You authenticated successfully to https: as but…
0
votes
2 answers

Chef windows_package not able to do silent install; Asking user inputs

I am using Chef windows_package to install Software called Oxygen in Windows. I am expecting it to install silently without asking any user inputs(take all defaults) but its launching install4j wizard and asking for user inputs like "Please Select…
Sridhar
  • 803
  • 1
  • 12
  • 21
0
votes
1 answer

how to store the downloaded copy of the instalation file in the local system in chef?

I'm trying to store the copy of the installation file in the C: drive this code is working for some application but not all what are the other alternatives. this is for chef for windows server. thank you. windows_package '7zip' do source…
gayathri
  • 3
  • 1
0
votes
1 answer

Chef Client Not Resuming After Restart

I ran the following recipe O:\chef\cookbooks\wincfg>chef-client -L C:\chef\rds_deployment.log -l info -z -o wincfg::rds_deployment The server reboots as expected after installing a Windows feature I see the last lines of my log file…
Jeff
  • 35,755
  • 15
  • 108
  • 220
1
2