OSDN Git Service

add push-jobs configurations.
authorwhitestar <whitestar@gaea.test>
Fri, 30 Oct 2015 12:47:58 +0000 (21:47 +0900)
committerwhitestar <whitestar@gaea.test>
Fri, 30 Oct 2015 12:47:58 +0000 (21:47 +0900)
environments/test.rb
nodes/localhost-push-jobs-ubuntu.json [new file with mode: 0644]
roles/Berksfile
roles/push-jobs-ubuntu.rb [new file with mode: 0644]

index 5eaafaf..8a8f703 100644 (file)
@@ -1,4 +1,13 @@
 name "test"
 description "The testing environment"
+
 #cookbook_versions  "couchdb" => "= 11.0.0"
-#default_attributes "apache2" => { "listen_ports" => [ "80", "443" ] }
+
+default_attributes(
+  'push_jobs' => {
+    'whitelist' => {
+      'chef-client' => 'chef-client',
+    },
+  },
+)
+
diff --git a/nodes/localhost-push-jobs-ubuntu.json b/nodes/localhost-push-jobs-ubuntu.json
new file mode 100644 (file)
index 0000000..953156b
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "run_list": [
+    "role[push-jobs-ubuntu]"
+  ]
+}
index ab11d43..33f91d7 100644 (file)
@@ -31,6 +31,9 @@ source 'https://supermarket.chef.io'
 cookbook 'apt'
 cookbook 'build-essential'
 cookbook 'berkshelf-api-server', '= 2.1.1'
+cookbook 'chef-client'
+cookbook 'cron'
 cookbook 'java'
+cookbook 'push-jobs'
 cookbook 'yum', '< 3.0'
 
diff --git a/roles/push-jobs-ubuntu.rb b/roles/push-jobs-ubuntu.rb
new file mode 100644 (file)
index 0000000..ef553e0
--- /dev/null
@@ -0,0 +1,20 @@
+name 'push-jobs-ubuntu'
+description 'Chef Push Jobs for Ubuntu'
+
+run_list(
+  'recipe[push-jobs]'
+)
+
+#env_run_lists()
+
+default_attributes(
+  'push_jobs' => {
+    #'package_version' => '1.1.5',
+    'package_url' =>  'https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/precise/opscode-push-jobs-client_1.1.5-1_amd64.deb',
+    # sha256
+    'package_checksum' => 'd7b40ebb18c7c7dbc32322c9bcd721279e707fd1bee3609a37055838afbf67ea',
+  },
+)
+
+#override_attributes()
+