]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ironbelly.rb
Configure a private git server for chef, restricted to chef clients
[chef.git] / roles / ironbelly.rb
index c22a3c6c4694cdf6a4e562b41fe053212477e453..c831c995cc0826fe72c83aa64ea23d69654106ce 100644 (file)
@@ -5,6 +5,10 @@ default_attributes(
   :apt => {
     :sources => [ "ubuntugis-unstable" ]
   },
+  :git => {
+    :allowed_nodes => "*:*",
+    :backup => "chef-git"
+  },
   :networking => {
     :interfaces => {
       :internal_ipv4 => {
@@ -72,7 +76,8 @@ default_attributes(
           "2001:630:12:500::/64", # ic external
           "127.0.0.0/8",          # localhost
           "::1"                   # localhost
-        ]
+        ],
+        :nodes_allow => "roles:tilecache"
       }
     }
   }
@@ -89,5 +94,6 @@ run_list(
   "role[stats]",
   "role[planet]",
   "recipe[rsyncd]",
-  "recipe[openvpn]"
+  "recipe[openvpn]",
+  "recipe[git::server]"
 )