An existing chef node node-1
needs to be renamed node-01
.
knife node edit node-1
- Change the
node_name
tonode-01
.
- Change the
knife node delete node-1
knife client delete node-1
class Node01048 < Formula | |
desc "Platform built on V8 to build network applications" | |
homepage "https://nodejs.org/" | |
url "https://nodejs.org/dist/v0.10.48/node-v0.10.48.tar.xz" | |
sha256 "365a93d9acc076a0d93f087d269f376abeebccad599a9dab72f2f6ed96c8ae6e" | |
revision 2 | |
head "https://github.com/nodejs/node.git", :branch => "v0.10-staging" | |
bottle do | |
sha256 "0053425c1c78f3afc8c7b311d7808d4e0f9ff955ec5edcef972529eabdf05856" => :sierra |
sudo: required | |
dist: trusty | |
addons: | |
apt: | |
sources: | |
- chef-current-trusty | |
packages: | |
- chefdk |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /opt/nginx/conf/nginx.conf | |
# pidfile: /opt/nginx/logs/nginx.pid |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>{{ page.title }}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link href="/stylesheets/bootstrap.css" rel="stylesheet" /> | |
<style type="text/css"> | |
body { | |
padding-top: 60px; |
Chef command warnings concerning already initialized constants
warning: already initialized constant Etc::SC_AIO_LISTIO_MAX
warning: already initialized constant Etc::SC_AIO_MAX
warning: already initialized constant Etc::SC_AIO_PRIO_DELTA_MAX
warning: already initialized constant Etc::SC_ARG_MAX
warning: already initialized constant Etc::SC_ATEXIT_MAX
Installing vsftpd on CentOS | |
yum install vsftpd | |
How to configure vsftpd: | |
Now that you’ve installed vsftpd, follow this procedure to configure it. These steps applies for both the linux variants. | |
Before you get started, stop the vsftpd by typing: |
--- | |
# Commonly used screens these days easily fit more than 80 characters. | |
Layout/LineLength: | |
Max: 120 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: | |
Max: 20 |
#!/usr/bin/env python3 | |
# The contents of this file are subject to the Mozilla Public License | |
# Version 1.1 (the "License"); you may not use this file except in | |
# compliance with the License. You may obtain a copy of the License at | |
# https://www.mozilla.org/MPL/ | |
# | |
# Software distributed under the License is distributed on an "AS IS" | |
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
# License for the specific language governing rights and limitations |