Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chef]

a Ruby based provisioning and configuration management tool

0
votes
0answers
92 views

How to use chsh with ldap authentication

How to use zsh as default when starting an ssh session to a remote chef server using LDAP for authentication? tom@chef:~$ chsh -s /usr/bin/zsh Password: chsh: user 'tom' does not exist in /etc/passwd ...
0
votes
0answers
55 views

systemd: How to run a single command that should exit on boot

I'd like to have systemd run a program after the system is completely booted and ready to go. Eventually, that process may complete and exit with hopefully 0; in some situations, it may need to have a ...
0
votes
0answers
36 views

Chef test shows nginx enabled and running service --status-all doesn't show it at all

I am trying to run a chef verify test and the test is showing nginx is enabled and running using this code: describe service('nginx') do it { should be_enabled } it { should be_running } end It ...
2
votes
2answers
811 views

Use JQ to generate CSV from knife search

JQ looks like a great tool, but I'm struggling with it. Here is what I am trying to do: Extract just the values from this chef knife search and generate a CSV. given this command and output: knife ...
0
votes
1answer
321 views

How to check if symlink can be created on a path?

Context: A ubuntu Virtualbox VM having shared folders from a Windows host. Provisioner: chef-solo Assuming there is a path /tmp/shared_data and I am attempting to created a symlink on it like ...
0
votes
1answer
1k views

Is AWS AMI 'apache' equivalent to Ubuntu 'www-data'?

I'm trying to convert a Chef script that's used in AWS OpsWorks for an Ubuntu system to a script I can use with my AWS OpsWorks setup for my Amazon Linux AMI installation. Their Ubuntu Setup: sudo ...
2
votes
0answers
1k views

GLIBC not loading even after source compilation

While I am installing chef , I am getting below error. [root@centos Tools]# chef-server-ctl reconfigure /opt/opscode/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /...
0
votes
0answers
451 views

Connection timeout error for vagrant up

I have Installed virtualbox-dkms $ sudo apt-get install virtualbox-dkms DKMS: install completed. * Stopping VirtualBox kernel modules ...
0
votes
1answer
561 views

Permission denied

I was trying to create and bootstrap an instance on openstack with chef using this command: sudo knife openstack server create -N jenkins_openstack -f 0eb9c50a-07b9-4fc1-aa33-f6bd66c6bc7b --network-...
0
votes
1answer
1k views

How are chef firewall rules applied to firewalld in CentOS 7?

I am using chef firewall cookbook in the following way: firewall 'default' firewall_rule 'ssh' do port 22 end It configures firewalld internally by writing commands like this to /etc/sysconfig/...
1
vote
3answers
7k views

pass parameters to bash script using chef attributes

I have a bash script ( let's say main.sh ) which I need to integrate with chef. Currently we are using "expect" to pass the parameters to main.sh. Now I need to make script in such a way that the ...
1
vote
3answers
2k views

trying to install chef-client package via local yum repo

I am trying to make chef-11.16.4-1.el6.x86_64.rpm available to our servers via a local yum repo that we've built. it is not available in RHEL Repos, so i had to manually download and save it in our ...
0
votes
1answer
877 views

Multiple environments in Chef?

I am looking for some ideas/guidance to use environments in chef to specify attributes that are specific to each environments like Dev, QA & PROD. As a result we would like to be able to use same ...
1
vote
2answers
322 views

When puppet, chef or ansible are simpler solutions than package manager?

I'm new to above deployment and configuration tools. I have typical need to install and upgrade on a target machine a customized and configured webserver, maybe reverse proxy, database, required ...
3
votes
1answer
823 views

Is it necessary to run a SSH daemon if I use Chef locally?

I want to write a chef cookbook to setup Linux desktop environments. I created a kitchen by knife solo init chef-repo, and created a cookbook hello and a node file localhost.json. Then I run: $ ...
1
vote
1answer
242 views

How to install man command for chef

I want to see manual for chef with command man knife-cookbook. But it looks like manuals are not installed by default install gem install chef. I found the man page of knife cookbook. http://manned....
3
votes
2answers
565 views

Python-friendly machine configuration management systems

Are there machine configuration management systems akin to: Puppet Chef which are natively, or at least intimately, Python-friendly? Any recommendations with supporting evidence and/or backing ...
1
vote
2answers
17k views

How can i free up memory / manage memory on a linux box?

I am running two Ubuntu 12.04 servers (no GUI / desktop) using canonical's cloud images on Amazon EC2. One is a micro with 613MB of RAM and one is a medium with 3.75GB of RAM. I only have opscode's ...