Questions tagged [chef]

a Ruby based provisioning and configuration management tool

Filter by
Sorted by
Tagged with
3
votes
2answers
1k 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 ...
3
votes
2answers
570 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 ...
3
votes
1answer
840 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: $ ...
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 /...
1
vote
2answers
338 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 ...
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 ...
1
vote
1answer
269 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....
1
vote
3answers
8k 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
390 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
664 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/...
0
votes
1answer
1k 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 ...
0
votes
0answers
24 views

using powershell on Linux with Ansible

In looking at powershell, the general assumption is that it's being used either for or on Windows machines in a heterogeneous network. Strictly within Linux, and only using "core" powershell, looking ...
0
votes
0answers
16 views

Where does Chef store credentials for Active Directory user accounts on Linux hosts?

From a security perspective, I'm looking into how Active Directory user accounts, for which folders are created in /home, are integrated into the Linux host. I would expect the account names of these ...
0
votes
0answers
82 views

Unable to bootstrap a node from chef workstation

I am new to the chef, I have installed 3 devices, In one server I have configured for "Chef-Server-Core", other for "Chef Workstation" for my admin workstation. I want to bootstrap other device which ...
0
votes
0answers
12 views

Can I Use Chef Server to Apply Profiles from macOS Server?

I would like to use Chef server configuration to apply macOS Profiles that have been produced by macOS server. But it seems those profiles are encrypted and won't be able to apply using Chef ...
0
votes
0answers
802 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
135 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
52 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 ...
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 ...
0
votes
0answers
470 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
43 views

Determining source of ulimit change

I have a server built with AWS OpsWOrks, so everything is in configuration. There is a process whose ulimit is set to 4096, as checked from /proc/$PID/limits. This process runs as root. I ran the ...