summaryrefslogtreecommitdiff
path: root/chef/examples
diff options
context:
space:
mode:
Diffstat (limited to 'chef/examples')
-rw-r--r--chef/examples/config.rb20
-rw-r--r--chef/examples/config/chef-solo.rb11
-rw-r--r--chef/examples/config/cookbooks/fakefile/attributes/first.rb2
-rw-r--r--chef/examples/config/cookbooks/fakefile/definitions/test.rb13
-rw-r--r--chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt1
-rw-r--r--chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/window.txt1
-rw-r--r--chef/examples/config/cookbooks/fakefile/files/default/remote_test/mycat.txt1
-rw-r--r--chef/examples/config/cookbooks/fakefile/files/default/the_park.txt3
-rw-r--r--chef/examples/config/cookbooks/fakefile/libraries/test.rb7
-rw-r--r--chef/examples/config/cookbooks/fakefile/recipes/default.rb152
-rw-r--r--chef/examples/config/cookbooks/fakefile/templates/default/monkey.erb5
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/attributes/first.rb1
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gembin25600 -> 0 bytes
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gembin61440 -> 0 bytes
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gembin117248 -> 0 bytes
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gembin18432 -> 0 bytes
-rw-r--r--chef/examples/config/cookbooks/rubygems_server/recipes/default.rb8
-rw-r--r--chef/examples/config/cookbooks/servicetest/recipes/default.rb12
-rw-r--r--chef/examples/config/cookbooks/tempfile/attributes/second.rb1
-rw-r--r--chef/examples/config/cookbooks/tempfile/recipes/default.rb24
-rw-r--r--chef/examples/config/nodes/adam.rb14
-rw-r--r--chef/examples/config/nodes/default.rb9
-rw-r--r--chef/examples/config/nodes/junglist.gen.nz.rb14
-rw-r--r--chef/examples/config/nodes/latte.rb14
-rw-r--r--chef/examples/mrepo/Rakefile0
-rw-r--r--chef/examples/node.rb17
-rw-r--r--chef/examples/node.yml134
-rw-r--r--chef/examples/sample_definition.rb82
-rw-r--r--chef/examples/sample_recipe.rb77
-rw-r--r--chef/examples/search_index/segmentsbin16 -> 0 bytes
-rw-r--r--chef/examples/search_index/segments_0bin25 -> 0 bytes
-rw-r--r--chef/examples/search_syntax.rb10
32 files changed, 0 insertions, 633 deletions
diff --git a/chef/examples/config.rb b/chef/examples/config.rb
deleted file mode 100644
index 171554c416..0000000000
--- a/chef/examples/config.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Example config
-#
-
-nodes_from([
- Chef::Node::YAML => {
- :search_path => [ "/etc/chef/nodes" ]
- },
- Chef::Node::PuppetExternalNode => {
- :command => ""
- },
- :rest => {
- :search_url => "http://localhost:3000/nodes/#{node_name}"
- },
- :iclassify => {
- :search_url => "http://localhost:3000/nodes/#{node_name}"
- }
-])
-
-
diff --git a/chef/examples/config/chef-solo.rb b/chef/examples/config/chef-solo.rb
deleted file mode 100644
index 2a85253b37..0000000000
--- a/chef/examples/config/chef-solo.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# Example Chef Solo Config
-
-cookbook_path File.join(File.dirname(__FILE__), "cookbooks")
-node_path File.join(File.dirname(__FILE__), "nodes")
-search_index_path File.join(File.dirname(__FILE__), "..", "search_index")
-log_level :info
-file_store_path "/tmp/chef"
-file_cache_path "/tmp/chef/cache"
-
-Chef::Log::Formatter.show_time = false
diff --git a/chef/examples/config/cookbooks/fakefile/attributes/first.rb b/chef/examples/config/cookbooks/fakefile/attributes/first.rb
deleted file mode 100644
index 927dafe967..0000000000
--- a/chef/examples/config/cookbooks/fakefile/attributes/first.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-Chef::Log.debug("You are the first of fakefile's attributes")
-friends("you said we wuz visiting em") \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/definitions/test.rb b/chef/examples/config/cookbooks/fakefile/definitions/test.rb
deleted file mode 100644
index ce32293943..0000000000
--- a/chef/examples/config/cookbooks/fakefile/definitions/test.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-define :monkey, :eats => "bananna" do
- file "/tmp/monkeynews-#{params[:name]}" do
- owner "root"
- mode 0644
- action :create
- end
-
- file "/tmp/monkeynews-#{params[:name]}-second-#{params[:eats]}" do
- owner "root"
- mode 0644
- notifies :touch, resources(:file => "/tmp/monkeynews-#{params[:name]}"), :immediately
- end
-end \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt b/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt
deleted file mode 100644
index 9664cb3e15..0000000000
--- a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt
+++ /dev/null
@@ -1 +0,0 @@
-Classic rock is awesome.
diff --git a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/window.txt b/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/window.txt
deleted file mode 100644
index 68a3bf17e4..0000000000
--- a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/another/window.txt
+++ /dev/null
@@ -1 +0,0 @@
-appleseed? \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/mycat.txt b/chef/examples/config/cookbooks/fakefile/files/default/remote_test/mycat.txt
deleted file mode 100644
index d4d8511934..0000000000
--- a/chef/examples/config/cookbooks/fakefile/files/default/remote_test/mycat.txt
+++ /dev/null
@@ -1 +0,0 @@
-is a very nice kitty \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/files/default/the_park.txt b/chef/examples/config/cookbooks/fakefile/files/default/the_park.txt
deleted file mode 100644
index c71308a6ca..0000000000
--- a/chef/examples/config/cookbooks/fakefile/files/default/the_park.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Is very pretty on a Saturday at 7:50 in August. Hottest day of the year so far in Seattle.
-
-something \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/libraries/test.rb b/chef/examples/config/cookbooks/fakefile/libraries/test.rb
deleted file mode 100644
index 5a39a18aec..0000000000
--- a/chef/examples/config/cookbooks/fakefile/libraries/test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class Chef
- class Recipe
- def bork
- Chef::Log.debug("Bork bork bork")
- end
- end
-end \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/fakefile/recipes/default.rb b/chef/examples/config/cookbooks/fakefile/recipes/default.rb
deleted file mode 100644
index 709e51b6e3..0000000000
--- a/chef/examples/config/cookbooks/fakefile/recipes/default.rb
+++ /dev/null
@@ -1,152 +0,0 @@
-bork
-
-execute "write-foolio" do
- command <<-EOH
- echo 'monkeypants #{node[:ipaddress]} #{node[:friends]}' > /tmp/foolio
- EOH
- user "daemon"
-end
-
-script "monkeylikesit" do
- code %q{
-print "Woot!\n";
-open(FILE, ">", "/tmp/monkeylikesit") or die "Cannot open monkeylikesit";
-print FILE "You have some interesting hobbies #{node[:ipaddress]}";
-close(FILE);
-}
- interpreter "perl"
-end
-
-perl "foobar" do
- code %q{
-print "Woot!\n";
- }
-end
-
-unless @node[:operatingsystem] == "Darwin"
- package "emacs"
-
- package "emacs" do
- action :remove
- end
-
- package "emacs" do
- version "22.1-0ubuntu10"
- action :install
- end
-
- package "emacs" do
- action :upgrade
- end
-
- package "emacs" do
- action :purge
- end
-end
-
-package "ruby-djbdns" do
- action [ :install, :remove, :upgrade, :purge ]
- provider Chef::Provider::Package::Rubygems
-end
-
-gem_package "ruby-djbdns" do
- action [ :install, :remove, :upgrade, :purge ]
-end
-
-file "/tmp/foo" do
- owner "adam"
- mode 0644
- action :create
- notifies :delete, resources(:file => "/tmp/glen"), :delayed
-end
-
-remote_file "/tmp/the_park.txt" do
- owner "adam"
- mode 0644
- source "the_park.txt"
- action :create
-end
-
-remote_directory "/tmp/remote_test" do
- owner "adam"
- mode 0755
- source "remote_test"
- files_owner "root"
- files_group(node[:operatingsystem] == "Debian" ? "root" : "wheel")
- files_mode 0644
- files_backup false
-end
-
-template "/tmp/foo-template" do
- owner "adam"
- mode 0644
- source "monkey.erb"
- variables({
- :one => 'two',
- :el_che => 'rhymefest',
- :white => {
- :stripes => "are the best",
- :at => "the sleazy rock thing",
- }
- })
-end
-
-link "/tmp/foo" do
- link_type :symbolic
- target_file "/tmp/xmen"
-end
-
-# 0.upto(1000) do |n|
-# file "/tmp/somefile#{n}" do
-# owner "adam"
-# mode 0644
-# action :create
-# end
-# end
-
-directory "/tmp/home" do
- owner "root"
- mode 0755
- action :create
-end
-
-search(:user, "*") do |u|
- directory "/tmp/home/#{u['name']}" do
- if u['name'] == "nobody" && @node[:operatingsystem] == "Darwin"
- owner "root"
- else
- owner "#{u['name']}"
- end
- mode 0755
- action :create
- end
-end
-
-monkey "snoopy" do
- eats "vegetables"
-end
-
-monkey "snack"
-
-# user "katie" do
-# uid 9999
-# gid 100
-# home "/tmp/home/katie"
-# shell "/bin/bash"
-# comment "Katie Bethell"
-# action :create
-# end
-#
-# user "katie" do
-# gid 101
-# action :modify
-# end
-#
-# user "katie" do
-# shell "/home/katie"
-# action :manage
-# end
-#
-# user "katie" do
-# action [ :lock, :unlock, :remove ]
-# end
diff --git a/chef/examples/config/cookbooks/fakefile/templates/default/monkey.erb b/chef/examples/config/cookbooks/fakefile/templates/default/monkey.erb
deleted file mode 100644
index 29c2639381..0000000000
--- a/chef/examples/config/cookbooks/fakefile/templates/default/monkey.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-This is a <%= @one %> with <%= @el_che %>
-
-It was rendered on a system with the ipaddress of <%= @node[:ipaddress] %>
-
-But it's all about the conquest, with <%= @node[:fqdn ] %>
diff --git a/chef/examples/config/cookbooks/rubygems_server/attributes/first.rb b/chef/examples/config/cookbooks/rubygems_server/attributes/first.rb
deleted file mode 100644
index d1b7bd6a23..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/attributes/first.rb
+++ /dev/null
@@ -1 +0,0 @@
-rubygems("are awesome")
diff --git a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem b/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem
deleted file mode 100644
index d3eafbca10..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem
+++ /dev/null
Binary files differ
diff --git a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem b/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem
deleted file mode 100644
index e9bc3c2276..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem
+++ /dev/null
Binary files differ
diff --git a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem b/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem
deleted file mode 100644
index b11cbe00cc..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem
+++ /dev/null
Binary files differ
diff --git a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem b/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem
deleted file mode 100644
index 545f850a71..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem
+++ /dev/null
Binary files differ
diff --git a/chef/examples/config/cookbooks/rubygems_server/recipes/default.rb b/chef/examples/config/cookbooks/rubygems_server/recipes/default.rb
deleted file mode 100644
index 6b60456094..0000000000
--- a/chef/examples/config/cookbooks/rubygems_server/recipes/default.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-remote_directory "/srv/gems" do
- owner "www-data"
- mode 0755
- source "packages"
- files_owner "www-data"
- files_group "www-data"
- files_mode 0644
-end
diff --git a/chef/examples/config/cookbooks/servicetest/recipes/default.rb b/chef/examples/config/cookbooks/servicetest/recipes/default.rb
deleted file mode 100644
index 812b48e19d..0000000000
--- a/chef/examples/config/cookbooks/servicetest/recipes/default.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-service "puppet-client" do
- service_name "puppet"
- pattern "puppetd"
- action :enable
-end
-
-file "/tmp/foo" do
- owner "aj"
- mode 0644
- action :create
- notifies :start, resources(:service => "puppet-client"), :immediate
-end
diff --git a/chef/examples/config/cookbooks/tempfile/attributes/second.rb b/chef/examples/config/cookbooks/tempfile/attributes/second.rb
deleted file mode 100644
index df791b8429..0000000000
--- a/chef/examples/config/cookbooks/tempfile/attributes/second.rb
+++ /dev/null
@@ -1 +0,0 @@
-monkey "poots" \ No newline at end of file
diff --git a/chef/examples/config/cookbooks/tempfile/recipes/default.rb b/chef/examples/config/cookbooks/tempfile/recipes/default.rb
deleted file mode 100644
index b4fa86ac32..0000000000
--- a/chef/examples/config/cookbooks/tempfile/recipes/default.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-file "/tmp/glen" do
- owner "adam"
- mode 0755
- action "create"
-end
-
-file "/tmp/metallica" do
- action [ :create, :touch, :delete ]
-end
-
-directory "/tmp/marginal" do
- owner "adam"
- mode 0755
- action :create
-end
-
-remote_directory "/tmp/rubygems" do
- owner "adam"
- mode 0755
- source "packages"
- files_owner "adam"
- files_group "adam"
- files_mode 0755
-end
diff --git a/chef/examples/config/nodes/adam.rb b/chef/examples/config/nodes/adam.rb
deleted file mode 100644
index c3e8e4bc16..0000000000
--- a/chef/examples/config/nodes/adam.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-##
-# Nodes should have a unique name
-##
-name "adam"
-
-##
-# Nodes can set arbitrary arguments
-##
-owner "Adam Jacob"
-
-##
-# Nodes should have recipes
-##
-recipes "tempfile", "fakefile"
diff --git a/chef/examples/config/nodes/default.rb b/chef/examples/config/nodes/default.rb
deleted file mode 100644
index d365690c60..0000000000
--- a/chef/examples/config/nodes/default.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-##
-# Nodes can set arbitrary arguments
-##
-owner "Adam Jacob"
-
-##
-# Nodes should have recipes
-##
-recipes "tempfile", "fakefile"
diff --git a/chef/examples/config/nodes/junglist.gen.nz.rb b/chef/examples/config/nodes/junglist.gen.nz.rb
deleted file mode 100644
index 70ce7661b5..0000000000
--- a/chef/examples/config/nodes/junglist.gen.nz.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-##
-# Nodes should have a unique name
-##
-name "junglist.gen.nz"
-
-##
-# Nodes can set arbitrary arguments
-##
-owner "AJ Christensen"
-
-##
-# Nodes should have recipes
-##
-recipes "servicetest"
diff --git a/chef/examples/config/nodes/latte.rb b/chef/examples/config/nodes/latte.rb
deleted file mode 100644
index 8987738151..0000000000
--- a/chef/examples/config/nodes/latte.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-##
-# Nodes should have a unique name
-##
-name "latte.local"
-
-##
-# Nodes can set arbitrary arguments
-##
-owner "Adam Jacob"
-
-##
-# Nodes should have recipes
-##
-recipes "tempfile", "fakefile"
diff --git a/chef/examples/mrepo/Rakefile b/chef/examples/mrepo/Rakefile
deleted file mode 100644
index e69de29bb2..0000000000
--- a/chef/examples/mrepo/Rakefile
+++ /dev/null
diff --git a/chef/examples/node.rb b/chef/examples/node.rb
deleted file mode 100644
index ef1e6a73fa..0000000000
--- a/chef/examples/node.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-##
-# Nodes should have a unique name
-##
-name "ops1prod"
-
-##
-# Nodes can set arbitrary arguments
-##
-sunshine "in"
-something "else"
-that "is a cool ass trick"
-
-##
-# Nodes should have recipes
-##
-recipes "operations-master", "operations-monitoring"
-
diff --git a/chef/examples/node.yml b/chef/examples/node.yml
deleted file mode 100644
index d61a14875d..0000000000
--- a/chef/examples/node.yml
+++ /dev/null
@@ -1,134 +0,0 @@
----
-parameters:
- innodb_buffer_pool_size: 150M
- kernel: Linux
- serialnumber: 0123456789
- processorcount: "2"
- operatingsystemrelease: 2.6.18-53.1.4.el5
- tinydns_ipaddress: 208.113.71.77
- rubysitedir: /usr/lib/ruby/site_ruby/1.8
- lsbrelease: ":core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch"
- hardwaremodel: x86_64
- uniqueid: 007f0100
- ipaddress: 208.113.71.76
- swapfree: 2.00 GB
- puppet_class:
- - operations-master
- - base
- - iptables
- - runit
- - puppet-client
- - sudo
- - zsh
- - subversion-client
- - ruby
- - man
- - openssh
- - build-essential
- - rsync-client
- - munin-node
- - resolver
- - iclassify-agent
- - openldap-auth
- - openldap-client
- - nscd
- - perl
- - nagios-nrpe
- - ntp-client
- - ntp
- - postfix
- - emacs
- - centos
- - puppet-server
- - mysql-server
- - djbdns-server
- - djbdns-base
- - djbdns-public-cache
- - openldap-server
- - iclassify-server
- - apache2
- - apache2-module-status
- - apache2-module-alias
- - apache2-module-auth_basic
- - apache2-module-authn_file
- - apache2-module-authz_default
- - apache2-module-authz_groupfile
- - apache2-module-authz_host
- - apache2-module-authz_user
- - apache2-module-autoindex
- - apache2-module-dir
- - apache2-module-env
- - apache2-module-mime
- - apache2-module-negotiation
- - apache2-module-setenvif
- - apache2-module-log_config
- - perlbal
- - mongrel-runit
- - rails-twoohtwo
- - mysql-client
- - java
- - wildcard-cert
- - apache2-module-ldap
- - gems-server
- - operations-monitoring
- - munin-moonin
- - apache2-module-fcgid
- - apache2-module-ssl
- - apache2-module-authnz_ldap
- - nagios-server
- - subversion-server
- - apache2-module-dav
- - apache2-module-dav_svn
- - trac
- - apache2-module-proxy
- - apache2-module-proxy_http
- - apache2-module-rewrite
- - apache2-module-deflate
- - apache2-module-headers
- puppet_env:
- - prod
- - prod
- memorysize: "1.96"
- fqdn: ops1prod.sfo.zoosk.com
- kernelrelease: 2.6.18-53.1.4.el5
- ps: ps -ef
- type: Node
- mongrel_servers: "16"
- hardwareisa: x86_64
- apache_listen_ports:
- - "80"
- - "443"
- domain: sfo.zoosk.com
- lsbdistdescription: CentOS release 5 (Final)
- id: Node:1
- tinydns_internal_ipaddress: 127.0.01
- axfr_ipaddress: 208.113.71.77
- macaddress_eth0: 00:30:48:96:3D:72
- lsbdistrelease: "5"
- memoryfree: 638.67 MB
- manufacturer: Supermicro
- sshrsakey: AAAAB3NzaC1yc2EAAAABIwAAAQEAzZBzuD14E6KJT3YKULXM9jEOIiC/efkn8+rK4yePLwDSNypfClZt8+ThUGlGQVZF0Z1kMa1hLfZD+Puhe9Vp4hMkTBmlvATiWEZduUvkZ7Fh56mnstjmwYoxkvP8FG/ItQtfNJY3UgmtdeeoVYw566P5E9HKKWFUQp5IpZBUpsttVuY/b7ro/ray1lY/bWJ7ykYVwcGWVjsM+W6N0je+mouLcDN3QJAMzMwVuf3MzagKcawvM6qPDJ2Lv6lxRiVn1HZwv+YoPS7+S0/wDl4tZo9+mDb1jdI++af27Q8hKUTjjyjlWUcHG9eDWYjMZPYbY5Qv6FWG6/fEwZ0zu+sVhQ==
- lsbdistcodename: Final
- slapd_type: master
- macaddress_eth1: 00:30:48:96:3D:73
- productname: PDSMi
- mysql_server_id: "1"
- rubyversion: 1.8.5
- hostname: ops1prod
- puppetversion: 0.24.1
- public_dns_cache_ipaddress: 192.168.1.110
- processor0: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
- architecture: x86_64
- facterversion: 1.3.8
- swapsize: 2.00 GB
- operatingsystem: CentOS
- macaddress: 00:30:48:96:3D:72
- processor1: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
- ec2: "false"
- ipaddress_eth0: 208.113.71.76
- mongrel_port_number: "5000"
- lsbdistid: CentOS
- sshdsakey: AAAAB3NzaC1kc3MAAACBANC70lacMCW6+5QtqOAD7Z/GQ7ChywuX332sbZ9tk6PE6HpCy9PoEjs4MZSrYnqeXxXq2XTRwO4e9agf+6z2gzzOZP3QZj2qoVl7WgTVvvgn1c/KbKcO7/wZXKOv2qg6/vzgrgd0wYUp+1Of04uVdbxRshR2QMY7x67bKw3vvDCbAAAAFQCsW+LA/AA2JxmOCRlZC/DAZn/l4wAAAIEAi9Z1DnYg88KV4BQWGCSAdDkJ0O5maUC12GZPQUDKY+AQU+ilS9QBo3Su0Zo9rrlygNrqyVryIbH7fktz81zj410kskktT6JvUsIR5Ep6C/GTZD8+372AsVQQ+LE+Ot3PXPBntVq2uRRum9wRKul2EZ8+uOhh3gZV2l4WdEg/07sAAACANm3CUM/+grYwDg0Uv6dNgcwsQsXHxfSUbPHGVdiEuf7WjQhNgVQffEwGHOS1xvfv2nvbGFnTnTDuIOo45vhBUmbv9s7NuRhn++M8ZwL+pLAq7BbFCeP4y0WvKOTJdupiLrgVH3KGRFP0djpOagueNQr9zcscTJR3eagImkb8aPs=
- ipaddress_eth1: 192.168.1.110
-classes:
-- operations-master
diff --git a/chef/examples/sample_definition.rb b/chef/examples/sample_definition.rb
deleted file mode 100644
index 05a2b2ebf1..0000000000
--- a/chef/examples/sample_definition.rb
+++ /dev/null
@@ -1,82 +0,0 @@
-web_server "monchichi" do
- one "something"
- two "something else"
-end
-
-runit_service "bobo" do
- directory "monkey"
- downif "/bin/false is true"
- templatedir "something"
-end
-
-define :runit_service, :directory => "/etc/sv", :downif => "/bin/false", :templatedir => nil do
- include_recipe "runit"
-
- validate(
- params,
- {
- :directory => { :required => true },
- :downif => { :required => true },
- :templatedir => { :required => false },
- }
- )
-
- file "#{param[:directory]}-#{param[:name]}" do
- path "#{param[:directory]}/#{param[:name]}"
- insure "directory"
- owner "root"
- group "root"
- mode 0755
- end
-
- file "#{param[:directory]}/#{param[:name]}/log" do
- insure "directory"
- owner "root"
- group "root"
- mode 0755
- end
-
- file "#{param[:directory]}/#{param[:name]}/log/main" do
- insure "directory"
- owner "root"
- group "root"
- mode 0755
- end
-
- symlink "/etc/init.d/#{param[:name]}" do
- sv_dir = case node[:lsbdistid]
- when 'CentOS': "/usr/local/bin/sv"
- else: "/usr/bin/sv"
- end
- source_file = sv_dir
- end
-
- symlink "/var/service/#{param[:name]}" do
- source_file "#{param[:directory]}/#{param[:name]}"
- end
-
- service "#{param[:name]}" do
- supports :status => true, :restart => true
- end
-
- template_file "#{param[:directory]}/#{param[:name]}/log/run" do
- content "#{param[:templatedir]}/log-run.erb"
- owner "root"
- group "root"
- mode 755
- notifies resource("service[#{param[:name]}]")
- end
-
- template_file "#{param[:directory]}/#{param[:name]}/run" do
- content "#{param[:templatedir]}/run.erb"
- owner root
- group root
- mode 755
- notifies resource("service[#{param[:name]}]")
- end
-
- exec "#{param[:name]}-down" do
- command "/etc/init.d/#{param[:name]} down"
- only_if "#{downif}"
- end
-end
diff --git a/chef/examples/sample_recipe.rb b/chef/examples/sample_recipe.rb
deleted file mode 100644
index f7620a0b3a..0000000000
--- a/chef/examples/sample_recipe.rb
+++ /dev/null
@@ -1,77 +0,0 @@
-include_recipe "openldap"
-include_recipe "openldap::client"
-include_recipe "openldap::server"
-include_recipe "resolver"
-include_recipe "base"
-
-exec "restart-apache" do
- path "/usr/bin:/usr/local/bin"
- command "/etc/init.d/apache2 restart"
- action :nothing
-end
-
-service "apache2" do
- insure "running"
- has_restart true
-end
-
-file "/etc/nsswitch.conf" do
- owner "root"
- group "root"
- mode 0644
- notifies :restart, resources("service[openldap]"), :immediately
-end
-
-service "apache2" do
- action "enabled"
- subscribes :restart, resources("/etc/nsswitch.conf"), :immediately
-end
-
-file "/etc/ldap.conf" do
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/monkey" do
- insure "present"
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/owl" do
- insure "present"
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/zen" do
- insure "absent"
-end
-
-#
-# file "/srv/monkey" do |f|
-# f.insure = "present"
-# f.owner = "adam"
-# f.group = "adam"
-# f.mode = 0644
-# f.before = resources(:file => "/etc/nsswitch.conf")
-# end
-#
-# file "/etc/ldap-nss.conf" do |f|
-# f.insure = "present"
-# f.owner = "root"
-# f.group = "root"
-# f.mode = 0644
-# f.notifies = :refresh, resources(:file => "/etc/ldap.conf")
-# end
-#
-# file "/etc/coffee.conf" do |f|
-# f.insure = "present"
-# f.owner = "root"
-# f.group = "root"
-# f.mode = 0644
-# f.subscribes = :polio, resources(:file => "/etc/nsswitch.conf")
-# end \ No newline at end of file
diff --git a/chef/examples/search_index/segments b/chef/examples/search_index/segments
deleted file mode 100644
index 01d633b27e..0000000000
--- a/chef/examples/search_index/segments
+++ /dev/null
Binary files differ
diff --git a/chef/examples/search_index/segments_0 b/chef/examples/search_index/segments_0
deleted file mode 100644
index b642403384..0000000000
--- a/chef/examples/search_index/segments_0
+++ /dev/null
Binary files differ
diff --git a/chef/examples/search_syntax.rb b/chef/examples/search_syntax.rb
deleted file mode 100644
index 4be57b7802..0000000000
--- a/chef/examples/search_syntax.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-search(:users, "allowed:#{node[:hostname]} or allowed:#{node[:tags]}") do |u|
- user "#{u['username']}" do
- uid "#{u['uid']}"
- gid "#{u['gid']}"
- username "#{u['username']}"
- homedir "#{u['homedir']}"
- action :create
- end
-end
-