description "Master role applied to katla"
default_attributes(
- :apt => {
- :sources => ["postgresql"]
- },
:db => {
:cluster => "9.5/main"
},
}
},
:sysctl => {
- :ipv6_autoconf => {
- :comment => "Disable IPv6 auto-configuration on internal interface",
- :parameters => {
- "net.ipv6.conf.bond0.autoconf" => "0",
- "net.ipv6.conf.bond0.accept_ra" => "0"
- }
- },
:postgres => {
:comment => "Increase shared memory for postgres",
:parameters => {
run_list(
"role[bytemark]",
- "role[db-master]",
- "role[db-backup]"
+ "role[db-slave]"
)