Questions tagged [chef-server]

17 questions
7
votes
2 answers

Does chef-client use a local cache? If so, can I clear it?

This might be a stupid question. I don't know a lot about chef. I am using chef 11.8.2 on a node. I have a weird problem which might be caused by the chef client caching things rather than downloading from the chef server. Does chef do this? Cache…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
3
votes
0 answers

Chef node not checking in with the server

I've recently moved my clients from one chef server to another, and now none of my nodes are checking in properly. I can manually run 'chef-client' successfully, and I do have the chef-client::default cookbook defined, yet they will not "check…
John S
  • 135
  • 7
3
votes
1 answer

How to manually set up a Chef node?

I have a Chef server running on Ubuntu 14.04 (see Note 1) and I can access the "Chef Manage" website by visiting the IP address (mychefserver.myorg.com) in my browser. I have a workstation running on Mac OS X El Capitan (see Note 2) and I can…
user22a6db72d7249
  • 503
  • 1
  • 7
  • 12
2
votes
1 answer

Chef dynamic inventory like Ansible?

In Ansible, I can use a shell script to provide a list of hosts to be configured, in Chef, I knew Chef Server provide the similar features. However, I don't want to install a heavy server to provide just this feature, are there any workaround so I…
Ryan
  • 5,341
  • 21
  • 71
  • 87
2
votes
2 answers

Is there a way to rename a chef cookbook?

My cookbook conflicts with a community cookbook. There doesn't seem to be a knife option to rename or delete a cookbook. Is there a way to delete a chef cookbook from a server or a way to rename an existing cookbook?
jorfus
  • 715
  • 7
  • 14
2
votes
2 answers

Does a Chef server need to be public?

I have a Chef server running on our local network and tested it with other machines on the same network and everything worked fine. I started up a ec2 instance, and try to bootstrap and it works until it tries to connect to the Chef server. My…
cberks
  • 21
  • 2
2
votes
3 answers

How to reset password for Chef web server without email

I'm running a Chef server in the cloud. I can't log into the "Chef Manage" web interface because I forgot my password. I can still use knife to (for example) update nodes from my workstation using the server. I can still ssh to the server using my…
user22a6db72d7249
  • 503
  • 1
  • 7
  • 12
2
votes
0 answers

Chef Server 12 on Debian Jessy fails with "unable to change to service directory"

While not being officially supported, I want to run Chef Server 12 (12.3.0) on Debian Jessie. After fixing Debian's systemd ego trip as described in chef-cookbooks/chef-server#86, it is installing and running successfully. However, the runit setup…
StephenKing
  • 932
  • 1
  • 8
  • 18
1
vote
0 answers

Chef-server 12.1.0 backup and restore gives me 401

I have a chef server with opscode-manage and I would like to backup everything (config, db etc..) for the restore on an a new server I have backed-up and gunziped the entire postresql (dump) /etc/opscode /var/opt/opscode On the new server I have…
Paulus2
  • 111
  • 1
1
vote
1 answer

Encountered 'internal service error' when uploading cookbooks to Chef server hosted inside a docker container

For some reason in my organization we can't directly use the FQDN of the Chef server. All requests to it should be re-routed. Hence we have to do below setting inside the /etc/opscode/chef-server.rb file. api_fqdn "" This worked…
Ruifeng Ma
  • 181
  • 1
  • 5
0
votes
2 answers

Chef-Server 12 Getting me errors when the node is not time synced

I'm getting this error when the clock on my node is different than 15 minutes from my chef server. Authentication Error: Failed to authenticate to the chef server (http 401). enter code here`The request failed because your clock has drifted by…
FlayRonin
  • 1
  • 3
0
votes
1 answer

What is causing this error ERROR: undefined method `mysql_service' for #?

Basically I want to create a cookbook that installs MySQL 5.7 so I though I would utilize mysql from the supermarket. I started off by creating a fresh cookbook using chef generate cookbook MYSQL Then added depends 'mysql', '~> 8.0' and run a berks…
Dylan
  • 101
  • 4
0
votes
1 answer

Unable to create an admin user with chef-server?

I want to configure chef-server over Centos 7, I installed the chef-server-core, then I added this line to /etc/hosts 192.168.0.4 chef.example.com Then I put this command: chef-server-ctl reconfigure Everything is ok, except when I tried to…
heaprc
  • 163
  • 3
  • 12
0
votes
2 answers

Chef Private Key Could Not Be Loaded from /user.pem

I just finished the install chef-server tutorial at Chef's website, using an ec2 instance for my chef-server (t2.medium Ubuntu 16.04 AMI), and my laptop for my workstation, which also runs Ubuntu 16.04. It appears that I succeeded in setting up a…
user393947
0
votes
1 answer

Unable to connect to chef server

I have a Chef server running on AWS. I am able to connect to it via web browser and see the web ui from my machine which isn't the ec2. But when I bootstrap the node, also a ec2, it fails to connect to the server after 5 attempts. If I copy and the…
cberks
  • 21
  • 2
1
2