Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Former-commit-id: 56a9b10
Former-commit-id: ef7aed0
  • Loading branch information
David Andrew authored and David Andrew committed Oct 29, 2014
2 parents b09ee98 + ff3499f commit 8091650
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
20 changes: 11 additions & 9 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
DEPENDENCIES
apt
create_chef_dir
path: test/fixtures/cookbooks/create_chef_dir
rundeck
path: .
metadata: true
Expand All @@ -11,20 +9,24 @@ GRAPH
iptables (>= 0.0.0)
logrotate (>= 0.0.0)
pacman (>= 0.0.0)
apt (2.4.0)
apt (2.5.3)
build-essential (2.0.6)
create_chef_dir (0.0.1)
iptables (0.13.2)
java (1.26.0)
iptables (0.14.0)
java (1.28.0)
logrotate (1.6.0)
pacman (1.1.1)
rundeck (2.0.5)
apache2 (>= 0.0.0)
java (>= 0.0.0)
runit (>= 0.0.0)
selinux (>= 0.0.0)
sudo (>= 0.0.0)
runit (1.5.11)
runit (1.5.10)
build-essential (>= 0.0.0)
yum (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
selinux (0.8.0)
sudo (2.7.0)
yum (3.2.2)
yum (3.3.1)
yum-epel (0.5.1)
yum (~> 3.0)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This cookbook relies on multiple data bags. See __Data Bag__ below.
* Mac OS X (managed node)

**Notes**: This cookbook has been tested on the listed platforms. It may work on other platforms with or without modification.

In RHEL / CentOS , SELinux is enabled by default, it blocks the apache mod_proxy , disable or add an exception selinux

### Cookbooks
* Java
Expand Down
20 changes: 8 additions & 12 deletions recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
repo = yum_repository "rundeck" do
description "Rundeck - Release"
url "http://dl.bintray.com/rundeck/rundeck-rpm"
gpgcheck false
action :add
end

package "rundeck" do
#version ""
#options package_options
action :install
end
else
Expand Down Expand Up @@ -198,14 +197,13 @@
EOH
end


apache_site "000-default" do
enable false
notifies :reload, "service[apache2]"
%w(default 000-default).each do |site|
apache_site site do
enable false
notifies :reload, "service[apache2]"
end
end


# load up the apache conf
template "apache-config" do
path "#{node['apache']['dir']}/sites-available/rundeck.conf"
source "rundeck.conf.erb"
Expand All @@ -220,17 +218,15 @@
notifies :reload, "service[apache2]"
end

apache_site "rundeck.conf" do
apache_site "rundeck" do
enable true
notifies :reload, "service[apache2]"
end

# ensure rundeck is started
service "rundeckd" do
action :start
end


#load projects
bags = data_bag(node['rundeck']['rundeck_projects_databag'])

projects = {}
Expand Down

0 comments on commit 8091650

Please sign in to comment.