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
BUILD FAILED | |
/home/ubuntu/SDA/hbase-lib/build.xml:4: The following error occurred while executing this line: | |
/home/ubuntu/SDA/common.xml:165: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings | |
Cause: The name is undefined. | |
Action: Check the spelling. | |
Action: Check that any custom tasks/types have been declared. | |
Action: Check that any <presetdef>/<macrodef> declarations have taken place. | |
No types or tasks have been defined in this namespace yet |
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
#!/bin/bash | |
BACKUP_DIR=/backups | |
PASS="randompasswordhere" | |
MYSQL_CONFIG=/etc/mysql/my.cnf | |
echo "Creating Backup..." | |
innobackupex --defaults-file=$MYSQL_CONFIG --password=$PASS $BACKUP_DIR/ | |
echo "DONE Creating Backup!" |
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
sub vcl_fetch { | |
set beresp.grace = 300s; | |
if (beresp.http.Set-Cookie) { | |
return(deliver); | |
} | |
if (req.url ~ "\.css$") { | |
set beresp.ttl = 120s; |
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 [email protected] | |
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 | |
# | |
OlderNewer