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
Error executing action `run` on resource 'execute[a2enmod authz_default]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /usr/sbin/a2enmod authz_default ---- | |
STDOUT: | |
STDERR: ERROR: Module authz_default does not exist! |
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
site :opscode | |
metadata | |
cookbook 'nginx-vhosts', path: '../nginx-vhosts' |
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
+deb http://apt.postgresql.org/pub/repos/apt precise-pgdg main 9.3 | |
Recipe: postgresql::client | |
* package[postgresql-client-9.1] action install | |
- install version 9.1.11-1.pgdg12.4+1 of package postgresql-client-9.1 | |
* package[libpq-dev] action install | |
- install version 9.3.2-1.pgdg12.4+1 of package libpq-dev |
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
apt_repository 'git' do | |
uri 'http://ppa.launchpad.net/git-core/ppa/ubuntu' | |
distribution node[:lsb][:codename] | |
components %w[main] | |
keyserver 'keyserver.ubuntu.com' | |
key 'E1DF1F24' | |
action :add | |
end | |
include_recipe 'git' |
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
node.override[:git][:version] = '1.8.5.2' | |
include_recipe 'git' |
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
node.override[:elasticsearch][:version] = '0.90.9' | |
include_recipe 'elasticsearch' |
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
include_recipe 'nginx::default' | |
template "#{node[:nginx][:dir]}/sites-available/#{node[:hostname]}" do | |
source 'hostname.conf.erb' | |
mode '0644' | |
end | |
nginx_site "#{node[:hostname]}" |
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
node.override[:postgresql][:enable_pgdg_apt] = true | |
node.override[:postgresql][:version] = "9.3" | |
node.override[:postgresql][:password] = node[:foo][:database][:password] | |
include_recipe 'postgresql::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
chef@cheftests:~$ sudo chef-client | |
Starting Chef Client, version 11.8.2 | |
resolving cookbooks for run list: ["foo"] | |
Synchronizing Cookbooks: | |
- foo | |
- sshd | |
- fail2ban | |
- yum | |
- yum-epel | |
- ufw |
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
node.override[:firewall][:rules] = [ | |
{ | |
'http' => { | |
'port'=> '80' | |
} | |
} | |
] | |
include_recipe 'ufw' |