How to update version of chef client on node
curl -L https://chef.io/chef/install.sh | sudo bash -s -- -v 18.2.7
#!/bin/sh | |
# This is for Redhat 64 bit versions of Linux with `createrepo` installed. If you | |
# do not have createrepo, you can install it with: | |
# yum install -y createrepo | |
# Change DESTDIR path to RPMS directory of your repo | |
DESTDIR="/var/www/repo/rhel/6" | |
for ARCH in x86_64 |
# How to create an RPM repository | |
# This is for Redhat 64 bit versions of Linux. You can create your own RPM repository # to host your custom RPM packages. | |
# | |
# See "How to create an RPM from source with spec file" for more information. | |
# https://gist.github.com/1376973 | |
# Step: 1 | |
# Install createrepo |
If you get the following error, the Mac ulimit is set too low.
/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-config-18.2.7/lib/chef-config/workstation_config_loader.rb:123:in `pwd': Too many open files - getcwd (Errno::EMFILE)
from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-config-18.2.7/lib/chef-config/workstation_config_loader.rb:123:in `locate_local_config'
from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-config-18.2.7/lib/chef-config/workstation_config_loader.rb:55:in `config_location'
from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/chef-config-18.2.7/lib/chef-config/workstation_config_loader.rb:77:in `load'
Install and configure MySQL 5.7 with master-slave replication. The benefits of this include high availability, backups, disaster recovery and reporting.
Enable MySQL repository
yum localinstall -y https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
Modify /etc/sysctl.conf and add | |
vm.overcommit_memory=1 | |
Then restart sysctl by: | |
$ sudo sysctl -p /etc/sysctl.conf |
#!/usr/bin/env ruby | |
# | |
# Ruby script to download a number of files | |
# from individual URLs via HTTP/HTTPS/FTP | |
# specified in an external file. | |
# | |
# Author: Tobias Preuss | |
# Revision: 2013-04-18 16:26 +0100 UTC | |
# License: Creative Commons Attribution-ShareAlike 3.0 Unported |