This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This is a Vagrant configuration file. It can be used to set up and manage | |
# virtual machines on your local system or in the cloud. See http://downloads.vagrantup.com/ | |
# for downloads and installation instructions, and see http://docs.vagrantup.com/v2/ | |
# for more information and configuring and using Vagrant. | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This is a Vagrant configuration file. It can be used to set up and manage | |
# virtual machines on your local system or in the cloud. See http://downloads.vagrantup.com/ | |
# for downloads and installation instructions, and see http://docs.vagrantup.com/v2/ | |
# for more information and configuring and using Vagrant. | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto eth0 | |
iface eth0 inet dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. Remove client and node from chef server's registry. Run thi from Workstation | |
{ws}$ knife client delete node1 | |
{ws}$ knife node delete node1 | |
1. Login to node | |
{node}$ ssh vagrant@192.168.33.11 | |
2. Browse to /etc/chef on node, and delete everything under it | |
{node}$ rm -rf /etc/chef/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package "apache2" do | |
action :install | |
end | |
service "apache2" do | |
action [ :enable, :start] | |
end | |
cookbook_file "/var/www/index.html" do | |
source "index.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: apache | |
# Recipe:: default | |
# | |
# Copyright 2014, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
498 knife search users "*:*" | |
499 knife search node "*:*" | |
500 ohai | |
501 knife search node "plat*:ubuntu" | |
502 knife search node "*:*" | |
503 knife search node | |
504 knife search node "*:*" | |
505 knife search node "ipaddress:10.*" | |
506 knife search node "ipaddress:10.*" -a platform | |
507 knife search node "ipaddress:10.* AND platform:ubuntu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "base" | |
description "Base Server Role" | |
run_list "recipe[ntp]", "recipe[motd]", "recipe[chef-client]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "mark", | |
"production" : { | |
"comment": "Mark in Production", | |
"uid": 3001, | |
"gid": 0, | |
"home": "/home/mark", | |
"shell": "/bin/zsh" | |
}, |
OlderNewer