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
default['myface']['database']['host'] = 'localhost' | |
default['myface']['database']['username'] = 'root' | |
default['myface']['database']['password'] = node['mysql']['server_root_password'] | |
default['myface']['database']['dbname'] = 'myface' | |
default['myface']['database']['seed_file'] = "/tmp/myface-init.sql" |
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
require File.expand_path('../support/helpers', __FILE__) | |
describe 'myface::database' do | |
include Helpers::Myface | |
# Example spec tests can be found at http://git.io/Fahwsw | |
# Verify that MySQL is installed & enabled: | |
it "Enables and starts the mysql daemon" do |
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:: myface | |
# Recipe:: database | |
# | |
# Copyright (C) 2013 Charles Johnson | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
include_recipe "mysql::server" |
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
<!-- | |
Copyright 2013, Opscode, Inc. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, |
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
# Managed by Chef for <%= node['hostname'] %> | |
<VirtualHost *:80> | |
ServerAdmin <%= node['apache']['contact'] %> | |
DocumentRoot /srv/apache/myface | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /srv/apache/myface> |
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:: myface | |
# Recipe:: default | |
# | |
# Copyright (C) 2012 Sean OMeara | |
# | |
# Apache 2 license | |
# | |
user 'myface' |
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:: myface | |
# Recipe:: default | |
# | |
# Copyright (C) 2012 Sean OMeara | |
# | |
# Apache 2 license | |
# | |
user 'myface' |
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
/* A table for myface users */ | |
CREATE TABLE users( | |
id CHAR (32) NOT NULL, | |
PRIMARY KEY(id), | |
user_name VARCHAR(64), | |
url VARCHAR(256), | |
email VARCHAR(128), | |
neck_beard INTEGER | |
); |
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
#------------------------------------------------------------------------ | |
# ISO 6429 character sequences for colors etc | |
# lc = leading character sequence, common for all colors. | |
lc='\[\e[1;' | |
# foregrounds----backgrounds-------------------------------------------------- | |
BLACK=${lc}30m; B_BLACK=${lc}40m | |
RED=${lc}31m; B_RED=${lc}41m | |
GREEN=${lc}32m; B_GREEN=${lc}42m | |
YELLOW=${lc}33m; B_YELLOW=${lc}43m | |
BLUE=${lc}34m; B_BLUE=${lc}44m |
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
$hosts_table = { | |
:dbm => "192.168.86.101", | |
:app1 => "192.168.86.102", | |
:app2 => "192.168.86.103", | |
:lb => "192.168.86.104", | |
} | |
def bootstrap(config, host) | |
config.vm.box = "lucid64" | |
config.vm.network $hosts_table[host] |
NewerOlder