Created
October 18, 2013 11:33
-
-
Save hughsaunders/7040267 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/git/recipes/server.rb | |
================================================================================ | |
NameError | |
--------- | |
Cannot find a resource for xinetd_service on ubuntu version 12.04 | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/git/recipes/server.rb:49:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/git/recipes/server.rb: | |
42: include_recipe "xinetd" | |
43: | |
44: server_args = "--base-path=#{node["git"]["server"]["base_path"]} --syslog --inetd --verbose" | |
45: if node["git"]["server"]["export_all"] | |
46: server_args += " --export-all" | |
47: end | |
48: | |
49>> xinetd_service "git" do | |
50: disable False | |
51: socket_type "stream" | |
52: wait False | |
53: user nobody | |
54: server value_for_platform_family( | |
55: "debian" => "/usr/lib/git-core/git-daemon", | |
56: "rhel" => "/usr/libexec/git-core/git-daemon" | |
57: ) | |
58: server_args server_args |
This file contains hidden or 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
(d)ahewat1-nb:git hughsaunders$ cat git/metadata.rb | |
name "git" | |
maintainer "Opscode, Inc." | |
maintainer_email "[email protected]" | |
license "Apache 2.0" | |
description "Installs git and/or sets up a Git server daemon" | |
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | |
version "2.7.1" | |
recipe "git", "Installs git" | |
recipe "git::server", "Sets up an xinetd service for git" | |
recipe "git::source", "Installs git from source" | |
%w{ amazon arch centos debian fedora redhat scientific oracle ubuntu windows }.each do |os| | |
supports os | |
end | |
supports "mac_os_x", ">= 10.6.0" | |
%w{ dmg build-essential yum windows xinetd }.each do |cookbook| | |
depends cookbook | |
end | |
depends "runit", ">= 1.0" | |
attribute "git/server/base_path", | |
:display_name => "Git Daemon Base Path", | |
:description => "A directory containing git repositories to be exposed by the git-daemon", | |
:default => "/srv/git", | |
:recipes => ["git::server"] | |
attribute "git/server/export_all", | |
:display_name => "Git Daemon Export All", | |
:description => "Adds the --export-all option to the git-daemon parameters, making all repositories publicly readable even if they lack the \"git-daemon-export-ok\" file", | |
:choice => ["true", "false"], | |
:default => "true", | |
:recipes => ["git::server"] |
This file contains hidden or 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
(d)ahewat1-nb:git hughsaunders$ knife cookbook list |grep xinetd | |
xinetd 0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment