name "datahata"
description "Role applied to all servers at DataHata"

default_attributes(
  :accounts => {
    :users => {
      :kom => { :status => :administrator }
    }
  },
  :networking => {
    :nameservers => [
      "31.130.200.2"
    ],
    :roles => {
      :external => {
        :zone => "dn"
      }
    }
  }
)

override_attributes(
  :ntp => {
    :servers => ["0.by.pool.ntp.org", "1.by.pool.ntp.org", "europe.pool.ntp.org"]
  }
)

run_list(
  "role[by]"
)

name "datahata"
description "Role applied to all servers at DataHata"

default_attributes(
  :networking => {
    :nameservers => [
      "31.130.200.2"
    ],
    :roles => {
      :external => {
        :zone => "dn"
      }
    }
  }
)

override_attributes(
  :ntp => {
    :servers => ["0.by.pool.ntp.org", "1.by.pool.ntp.org", "europe.pool.ntp.org"]
  }
)

run_list(
  "role[by]"
)

--- 
+++ 
@@ -2,6 +2,11 @@
 description "Role applied to all servers at DataHata"
 
 default_attributes(
+  :accounts => {
+    :users => {
+      :kom => { :status => :administrator }
+    }
+  },
   :networking => {
     :nameservers => [
       "31.130.200.2"
Make komzpa an admin on cmok
