From: Tom Hughes Date: Fri, 15 Mar 2019 16:11:57 +0000 (+0000) Subject: Add role for boitata X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/7f8cb5ed5c29db37b8c9ed7cec704028689525d2?ds=sidebyside Add role for boitata --- diff --git a/roles/boitata.rb b/roles/boitata.rb new file mode 100644 index 000000000..d0fcef8d3 --- /dev/null +++ b/roles/boitata.rb @@ -0,0 +1,43 @@ +name "boitata" +description "Master role applied to boitata" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "ens3", + :role => :external, + :family => :inet, + :address => "200.236.31.207", + :prefix => "25", + :gateway => "200.236.31.254" + }, + :external_ipv6 => { + :interface => "ens3", + :role => :external, + :family => :inet6, + :address => "2801:82:80ff:8002:216:ccff:feaa:21", + :prefix => "64", + :gateway => "fe80::92e2:baff:fe0d:e24" + } + } + }, + :squid => { + :cache_mem => "7500 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "curitiba.render.openstreetmap.org", + :tile_siblings => [ + "cherufe.openstreetmap.org", + "ascalon.openstreetmap.org", + "stormfly-02.openstreetmap.org", + "jakelong.openstreetmap.org" + ] + } +) + +run_list( + "role[c3sl]", + "role[tilecache]" +) diff --git a/roles/br.rb b/roles/br.rb new file mode 100644 index 000000000..3dd061724 --- /dev/null +++ b/roles/br.rb @@ -0,0 +1,10 @@ +name "br" +description "Role applied to all servers located in Brazil" + +override_attributes( + :country => "br" +) + +run_list( + "role[base]" +) diff --git a/roles/c3sl.rb b/roles/c3sl.rb new file mode 100644 index 000000000..2cd7f7d58 --- /dev/null +++ b/roles/c3sl.rb @@ -0,0 +1,25 @@ +name "c3sl" +description "Role applied to all servers at Centro de Computação Científica e Software Livre" + +default_attributes( + :hosted_by => "Centro de Computação Científica e Software Livre, Universidade Federal do Paraná", + :location => "Curitiba, Brazil", + :networking => { + :nameservers => ["200.17.202.3", "200.236.31.1"], + :roles => { + :external => { + :zone => "osm" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.br.pool.ntp.org", "1.br.pool.ntp.org", "america.pool.ntp.org"] + } +) + +run_list( + "role[br]" +)