summaryrefslogtreecommitdiff
path: root/chef/spec/data/cookbooks/openldap
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/data/cookbooks/openldap')
-rw-r--r--chef/spec/data/cookbooks/openldap/attributes/default.rb15
-rw-r--r--chef/spec/data/cookbooks/openldap/attributes/smokey.rb1
-rw-r--r--chef/spec/data/cookbooks/openldap/definitions/client.rb5
-rw-r--r--chef/spec/data/cookbooks/openldap/definitions/server.rb5
-rw-r--r--chef/spec/data/cookbooks/openldap/ignore6
-rw-r--r--chef/spec/data/cookbooks/openldap/recipes/default.rb3
-rw-r--r--chef/spec/data/cookbooks/openldap/recipes/gigantor.rb3
-rw-r--r--chef/spec/data/cookbooks/openldap/recipes/one.rb15
-rw-r--r--chef/spec/data/cookbooks/openldap/templates/default/test.erb1
9 files changed, 54 insertions, 0 deletions
diff --git a/chef/spec/data/cookbooks/openldap/attributes/default.rb b/chef/spec/data/cookbooks/openldap/attributes/default.rb
new file mode 100644
index 0000000000..204ae9ed77
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/attributes/default.rb
@@ -0,0 +1,15 @@
+chef_env ||= nil
+case chef_env
+when "prod"
+ ldap_server "ops1prod"
+ ldap_basedn "dc=hjksolutions,dc=com"
+ ldap_replication_password "yes"
+when "corp"
+ ldap_server "ops1prod"
+ ldap_basedn "dc=hjksolutions,dc=com"
+ ldap_replication_password "yougotit"
+else
+ ldap_server "ops1prod"
+ ldap_basedn "dc=hjksolutions,dc=com"
+ ldap_replication_password "forsure"
+end
diff --git a/chef/spec/data/cookbooks/openldap/attributes/smokey.rb b/chef/spec/data/cookbooks/openldap/attributes/smokey.rb
new file mode 100644
index 0000000000..63f5b56c7f
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/attributes/smokey.rb
@@ -0,0 +1 @@
+smokey "robinson" \ No newline at end of file
diff --git a/chef/spec/data/cookbooks/openldap/definitions/client.rb b/chef/spec/data/cookbooks/openldap/definitions/client.rb
new file mode 100644
index 0000000000..ac81831d11
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/definitions/client.rb
@@ -0,0 +1,5 @@
+define :openldap_client, :mothra => "a big monster" do
+ cat "#{params[:name]}" do
+ pretty_kitty true
+ end
+end
diff --git a/chef/spec/data/cookbooks/openldap/definitions/server.rb b/chef/spec/data/cookbooks/openldap/definitions/server.rb
new file mode 100644
index 0000000000..2df437aa84
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/definitions/server.rb
@@ -0,0 +1,5 @@
+define :openldap_server, :mothra => "a big monster" do
+ cat "#{params[:name]}" do
+ pretty_kitty true
+ end
+end
diff --git a/chef/spec/data/cookbooks/openldap/ignore b/chef/spec/data/cookbooks/openldap/ignore
new file mode 100644
index 0000000000..e96f4e7df4
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/ignore
@@ -0,0 +1,6 @@
+#
+# The ignore file allows you to skip files in cookbooks with the same name that appear
+# later in the search path.
+#
+
+recipes/ignoreme.rb \ No newline at end of file
diff --git a/chef/spec/data/cookbooks/openldap/recipes/default.rb b/chef/spec/data/cookbooks/openldap/recipes/default.rb
new file mode 100644
index 0000000000..0ac8a9bb4b
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/recipes/default.rb
@@ -0,0 +1,3 @@
+cat "blanket" do
+ pretty_kitty true
+end
diff --git a/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb b/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb
new file mode 100644
index 0000000000..b450eca7cd
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb
@@ -0,0 +1,3 @@
+cat "blanket" do
+ pretty_kitty false
+end
diff --git a/chef/spec/data/cookbooks/openldap/recipes/one.rb b/chef/spec/data/cookbooks/openldap/recipes/one.rb
new file mode 100644
index 0000000000..e1c3cff92e
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/recipes/one.rb
@@ -0,0 +1,15 @@
+##
+# Nodes should have a unique name
+##
+name "test.example.com default"
+
+##
+# Nodes can set arbitrary arguments
+##
+sunshine "in"
+something "else"
+
+##
+# Nodes should have recipes
+##
+recipes "operations-master", "operations-monitoring"
diff --git a/chef/spec/data/cookbooks/openldap/templates/default/test.erb b/chef/spec/data/cookbooks/openldap/templates/default/test.erb
new file mode 100644
index 0000000000..f39fa7da89
--- /dev/null
+++ b/chef/spec/data/cookbooks/openldap/templates/default/test.erb
@@ -0,0 +1 @@
+We could be diving for pearls!