--- /dev/null
+name "hostedinnz"
+description "Role applied to all servers at HostedIn.NZ"
+
+default_attributes(
+ :hosted_by => "HostedIn.NZ",
+ :location => "Wellington, New Zealand",
+ :networking => {
+ :nameservers => ["8.8.8.8", "8.8.4.4"],
+ :roles => {
+ :external => {
+ :zone => "osm"
+ }
+ }
+ }
+)
+
+override_attributes(
+ :ntp => {
+ :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "asia.pool.ntp.org"]
+ }
+)
+
+run_list(
+ "role[nz]"
+)
--- /dev/null
+name "tuatara"
+description "Master role applied to tuatara"
+
+default_attributes(
+ :networking => {
+ :interfaces => {
+ :external_ipv4 => {
+ :interface => "eno1",
+ :role => :external,
+ :family => :inet,
+ :address => "103.106.66.202",
+ :prefix => "24",
+ :gateway => "103.106.66.254"
+ }
+ }
+ },
+ :squid => {
+ :cache_mem => "75000 MB",
+ :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
+ },
+ :tilecache => {
+ :tile_parent => "wellington.render.openstreetmap.org",
+ :tile_siblings => [
+ "longma.openstreetmap.org",
+ "storfly-02.openstreetmap.org",
+ "jakelong.openstreetmap.org"
+ ]
+ }
+)
+
+run_list(
+ "role[hostedinnz]",
+ "role[tilecache]"
+)